diff --git a/NWaves.DemoForms/AdaptiveFiltersForm.Designer.cs b/NWaves.DemoForms/AdaptiveFiltersForm.Designer.cs
deleted file mode 100644
index dddb82c..0000000
--- a/NWaves.DemoForms/AdaptiveFiltersForm.Designer.cs
+++ /dev/null
@@ -1,247 +0,0 @@
-namespace NWaves.DemoForms
-{
- partial class AdaptiveFiltersForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.adaptButton = new System.Windows.Forms.Button();
- this.weightsListBox = new System.Windows.Forms.ListBox();
- this.linePlot1 = new NWaves.DemoForms.UserControls.LinePlot();
- this.label1 = new System.Windows.Forms.Label();
- this.generateButton = new System.Windows.Forms.Button();
- this.noiseRadioButton = new System.Windows.Forms.RadioButton();
- this.sinRadioButton = new System.Windows.Forms.RadioButton();
- this.label2 = new System.Windows.Forms.Label();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.lmsRadioButton = new System.Windows.Forms.RadioButton();
- this.nlmsRadioButton = new System.Windows.Forms.RadioButton();
- this.lmfRadioButton = new System.Windows.Forms.RadioButton();
- this.rlsRadioButton = new System.Windows.Forms.RadioButton();
- this.muTextBox = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.groupBox1.SuspendLayout();
- this.SuspendLayout();
- //
- // adaptButton
- //
- this.adaptButton.Location = new System.Drawing.Point(112, 72);
- this.adaptButton.Name = "adaptButton";
- this.adaptButton.Size = new System.Drawing.Size(273, 62);
- this.adaptButton.TabIndex = 1;
- this.adaptButton.Text = "Adapt!";
- this.adaptButton.UseVisualStyleBackColor = true;
- this.adaptButton.Click += new System.EventHandler(this.adaptButton_Click);
- //
- // weightsListBox
- //
- this.weightsListBox.FormattingEnabled = true;
- this.weightsListBox.ItemHeight = 16;
- this.weightsListBox.Location = new System.Drawing.Point(653, 304);
- this.weightsListBox.Name = "weightsListBox";
- this.weightsListBox.Size = new System.Drawing.Size(135, 132);
- this.weightsListBox.TabIndex = 2;
- //
- // linePlot1
- //
- this.linePlot1.AutoScroll = true;
- this.linePlot1.BackColor = System.Drawing.Color.White;
- this.linePlot1.ForeColor = System.Drawing.Color.Blue;
- this.linePlot1.Location = new System.Drawing.Point(13, 47);
- this.linePlot1.Name = "linePlot1";
- this.linePlot1.PaddingX = 30;
- this.linePlot1.PaddingY = 20;
- this.linePlot1.Size = new System.Drawing.Size(775, 204);
- this.linePlot1.Stride = 1;
- this.linePlot1.TabIndex = 0;
- this.linePlot1.Thickness = 1;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(13, 13);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(59, 17);
- this.label1.TabIndex = 3;
- this.label1.Text = "Filtered:";
- //
- // generateButton
- //
- this.generateButton.Location = new System.Drawing.Point(34, 341);
- this.generateButton.Name = "generateButton";
- this.generateButton.Size = new System.Drawing.Size(151, 62);
- this.generateButton.TabIndex = 4;
- this.generateButton.Text = "Generate signal";
- this.generateButton.UseVisualStyleBackColor = true;
- this.generateButton.Click += new System.EventHandler(this.generateButton_Click);
- //
- // noiseRadioButton
- //
- this.noiseRadioButton.AutoSize = true;
- this.noiseRadioButton.Checked = true;
- this.noiseRadioButton.Location = new System.Drawing.Point(102, 13);
- this.noiseRadioButton.Name = "noiseRadioButton";
- this.noiseRadioButton.Size = new System.Drawing.Size(65, 21);
- this.noiseRadioButton.TabIndex = 5;
- this.noiseRadioButton.TabStop = true;
- this.noiseRadioButton.Text = "Noise";
- this.noiseRadioButton.UseVisualStyleBackColor = true;
- //
- // sinRadioButton
- //
- this.sinRadioButton.AutoSize = true;
- this.sinRadioButton.Location = new System.Drawing.Point(188, 13);
- this.sinRadioButton.Name = "sinRadioButton";
- this.sinRadioButton.Size = new System.Drawing.Size(83, 21);
- this.sinRadioButton.TabIndex = 6;
- this.sinRadioButton.Text = "Sinusoid";
- this.sinRadioButton.UseVisualStyleBackColor = true;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(686, 274);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(59, 17);
- this.label2.TabIndex = 7;
- this.label2.Text = "Weights";
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.label3);
- this.groupBox1.Controls.Add(this.muTextBox);
- this.groupBox1.Controls.Add(this.rlsRadioButton);
- this.groupBox1.Controls.Add(this.lmfRadioButton);
- this.groupBox1.Controls.Add(this.nlmsRadioButton);
- this.groupBox1.Controls.Add(this.lmsRadioButton);
- this.groupBox1.Controls.Add(this.adaptButton);
- this.groupBox1.Location = new System.Drawing.Point(231, 285);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(406, 153);
- this.groupBox1.TabIndex = 8;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "Adaptive filters";
- //
- // lmsRadioButton
- //
- this.lmsRadioButton.AutoSize = true;
- this.lmsRadioButton.Checked = true;
- this.lmsRadioButton.Location = new System.Drawing.Point(18, 32);
- this.lmsRadioButton.Name = "lmsRadioButton";
- this.lmsRadioButton.Size = new System.Drawing.Size(57, 21);
- this.lmsRadioButton.TabIndex = 2;
- this.lmsRadioButton.TabStop = true;
- this.lmsRadioButton.Text = "LMS";
- this.lmsRadioButton.UseVisualStyleBackColor = true;
- //
- // nlmsRadioButton
- //
- this.nlmsRadioButton.AutoSize = true;
- this.nlmsRadioButton.Location = new System.Drawing.Point(18, 59);
- this.nlmsRadioButton.Name = "nlmsRadioButton";
- this.nlmsRadioButton.Size = new System.Drawing.Size(67, 21);
- this.nlmsRadioButton.TabIndex = 3;
- this.nlmsRadioButton.Text = "NLMS";
- this.nlmsRadioButton.UseVisualStyleBackColor = true;
- //
- // lmfRadioButton
- //
- this.lmfRadioButton.AutoSize = true;
- this.lmfRadioButton.Location = new System.Drawing.Point(18, 86);
- this.lmfRadioButton.Name = "lmfRadioButton";
- this.lmfRadioButton.Size = new System.Drawing.Size(56, 21);
- this.lmfRadioButton.TabIndex = 4;
- this.lmfRadioButton.Text = "LMF";
- this.lmfRadioButton.UseVisualStyleBackColor = true;
- //
- // rlsRadioButton
- //
- this.rlsRadioButton.AutoSize = true;
- this.rlsRadioButton.Location = new System.Drawing.Point(18, 113);
- this.rlsRadioButton.Name = "rlsRadioButton";
- this.rlsRadioButton.Size = new System.Drawing.Size(56, 21);
- this.rlsRadioButton.TabIndex = 5;
- this.rlsRadioButton.Text = "RLS";
- this.rlsRadioButton.UseVisualStyleBackColor = true;
- //
- // muTextBox
- //
- this.muTextBox.Location = new System.Drawing.Point(142, 36);
- this.muTextBox.Name = "muTextBox";
- this.muTextBox.Size = new System.Drawing.Size(53, 22);
- this.muTextBox.TabIndex = 6;
- this.muTextBox.Text = "0,95";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(109, 36);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(27, 17);
- this.label3.TabIndex = 9;
- this.label3.Text = "mu";
- //
- // AdaptiveFiltersForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.sinRadioButton);
- this.Controls.Add(this.noiseRadioButton);
- this.Controls.Add(this.generateButton);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.weightsListBox);
- this.Controls.Add(this.linePlot1);
- this.Name = "AdaptiveFiltersForm";
- this.Text = "AdaptiveFiltersForm";
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private UserControls.LinePlot linePlot1;
- private System.Windows.Forms.Button adaptButton;
- private System.Windows.Forms.ListBox weightsListBox;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Button generateButton;
- private System.Windows.Forms.RadioButton noiseRadioButton;
- private System.Windows.Forms.RadioButton sinRadioButton;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.RadioButton rlsRadioButton;
- private System.Windows.Forms.RadioButton lmfRadioButton;
- private System.Windows.Forms.RadioButton nlmsRadioButton;
- private System.Windows.Forms.RadioButton lmsRadioButton;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.TextBox muTextBox;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/AdaptiveFiltersForm.cs b/NWaves.DemoForms/AdaptiveFiltersForm.cs
deleted file mode 100644
index 9694121..0000000
--- a/NWaves.DemoForms/AdaptiveFiltersForm.cs
+++ /dev/null
@@ -1,70 +0,0 @@
-using NWaves.Filters.Adaptive;
-using NWaves.Filters.Base;
-using NWaves.Signals;
-using NWaves.Signals.Builders;
-using System;
-using System.ComponentModel;
-using System.Linq;
-using System.Windows.Forms;
-
-namespace NWaves.DemoForms
-{
- public partial class AdaptiveFiltersForm : Form
- {
- DiscreteSignal _s;
- DiscreteSignal _noise;
-
- public AdaptiveFiltersForm()
- {
- InitializeComponent();
- }
-
- private void adaptButton_Click(object sender, EventArgs e)
- {
- var mu = float.Parse(muTextBox.Text);
-
- AdaptiveFilter filter;
-
- if (nlmsRadioButton.Checked)
- filter = new NlmsFilter(5, mu);
- else if (lmfRadioButton.Checked)
- filter = new LmfFilter(5, mu);
- else if (rlsRadioButton.Checked)
- filter = new RlsFilter(5, mu);
- else
- filter = new LmsFilter(5, mu);
-
- var a = Enumerable.Range(0, _noise.Length)
- .Select(i => filter.Process(_noise[i], _s[i]))
- .ToArray();
-
- linePlot1.Markline = a;
-
- weightsListBox.DataSource = new BindingList(filter.Kernel);
- }
-
- private void generateButton_Click(object sender, EventArgs e)
- {
- _noise = sinRadioButton.Checked ?
- new SineBuilder()
- .SetParameter("freq", 1000)
- .OfLength(1000)
- .SampledAt(16000)
- .Build()
- :
- new WhiteNoiseBuilder()
- .SetParameter("min", -0.5)
- .SetParameter("max", 0.5)
- .OfLength(1000)
- .SampledAt(16000)
- .Build();
-
- var fir = new FirFilter(new[] { 0.2, 1, -0.5, 0.5, 0.9 });
-
- _s = fir.ApplyTo(_noise);
-
- linePlot1.Stride = 5;
- linePlot1.Line = _s.Samples;
- }
- }
-}
diff --git a/NWaves.DemoForms/AdaptiveFiltersForm.resx b/NWaves.DemoForms/AdaptiveFiltersForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NWaves.DemoForms/AdaptiveFiltersForm.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/AmsForm.Designer.cs b/NWaves.DemoForms/AmsForm.Designer.cs
deleted file mode 100644
index f9b6e2d..0000000
--- a/NWaves.DemoForms/AmsForm.Designer.cs
+++ /dev/null
@@ -1,624 +0,0 @@
-namespace NWaves.DemoForms
-{
- partial class AmsForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.envelopesPanel = new System.Windows.Forms.Panel();
- this.label15 = new System.Windows.Forms.Label();
- this.label14 = new System.Windows.Forms.Label();
- this.label13 = new System.Windows.Forms.Label();
- this.label12 = new System.Windows.Forms.Label();
- this.band4ComboBox = new System.Windows.Forms.ComboBox();
- this.band3ComboBox = new System.Windows.Forms.ComboBox();
- this.band2ComboBox = new System.Windows.Forms.ComboBox();
- this.band1ComboBox = new System.Windows.Forms.ComboBox();
- this.filterbankComboBox = new System.Windows.Forms.ComboBox();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.filterCountTextBox = new System.Windows.Forms.TextBox();
- this.filterbankButton = new System.Windows.Forms.Button();
- this.modulationSpectrumPanel = new System.Windows.Forms.Panel();
- this.lowFreqTextBox = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.highFreqTextBox = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.samplingRateTextBox = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.fftSizeTextBox = new System.Windows.Forms.TextBox();
- this.label6 = new System.Windows.Forms.Label();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.computeButton = new System.Windows.Forms.Button();
- this.longTermHopSizeTextBox = new System.Windows.Forms.TextBox();
- this.label9 = new System.Windows.Forms.Label();
- this.longTermFftSizeTextBox = new System.Windows.Forms.TextBox();
- this.label10 = new System.Windows.Forms.Label();
- this.hopSizeTextBox = new System.Windows.Forms.TextBox();
- this.label7 = new System.Windows.Forms.Label();
- this.analysisFftTextBox = new System.Windows.Forms.TextBox();
- this.label8 = new System.Windows.Forms.Label();
- this.nextButton = new System.Windows.Forms.Button();
- this.infoLabel = new System.Windows.Forms.Label();
- this.prevButton = new System.Windows.Forms.Button();
- this.temporalCheckBox = new System.Windows.Forms.CheckBox();
- this.herzTextBox = new System.Windows.Forms.TextBox();
- this.label16 = new System.Windows.Forms.Label();
- this.label11 = new System.Windows.Forms.Label();
- this.shapeComboBox = new System.Windows.Forms.ComboBox();
- this.overlapCheckBox = new System.Windows.Forms.CheckBox();
- this.filterbankPanel = new NWaves.DemoForms.UserControls.GroupPlot();
- this.menuStrip1.SuspendLayout();
- this.envelopesPanel.SuspendLayout();
- this.groupBox1.SuspendLayout();
- this.SuspendLayout();
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1187, 28);
- this.menuStrip1.TabIndex = 0;
- this.menuStrip1.Text = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
- this.fileToolStripMenuItem.Text = "&File";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(129, 26);
- this.openToolStripMenuItem.Text = "&Open...";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // envelopesPanel
- //
- this.envelopesPanel.BackColor = System.Drawing.Color.White;
- this.envelopesPanel.Controls.Add(this.label15);
- this.envelopesPanel.Controls.Add(this.label14);
- this.envelopesPanel.Controls.Add(this.label13);
- this.envelopesPanel.Controls.Add(this.label12);
- this.envelopesPanel.Controls.Add(this.band4ComboBox);
- this.envelopesPanel.Controls.Add(this.band3ComboBox);
- this.envelopesPanel.Controls.Add(this.band2ComboBox);
- this.envelopesPanel.Controls.Add(this.band1ComboBox);
- this.envelopesPanel.Location = new System.Drawing.Point(12, 319);
- this.envelopesPanel.Name = "envelopesPanel";
- this.envelopesPanel.Size = new System.Drawing.Size(1168, 370);
- this.envelopesPanel.TabIndex = 1;
- //
- // label15
- //
- this.label15.AutoSize = true;
- this.label15.Location = new System.Drawing.Point(1055, 255);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(49, 17);
- this.label15.TabIndex = 7;
- this.label15.Text = "Band#";
- //
- // label14
- //
- this.label14.AutoSize = true;
- this.label14.Location = new System.Drawing.Point(1055, 170);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(49, 17);
- this.label14.TabIndex = 6;
- this.label14.Text = "Band#";
- //
- // label13
- //
- this.label13.AutoSize = true;
- this.label13.Location = new System.Drawing.Point(1055, 89);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(49, 17);
- this.label13.TabIndex = 5;
- this.label13.Text = "Band#";
- //
- // label12
- //
- this.label12.AutoSize = true;
- this.label12.Location = new System.Drawing.Point(1055, 8);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(49, 17);
- this.label12.TabIndex = 4;
- this.label12.Text = "Band#";
- //
- // band4ComboBox
- //
- this.band4ComboBox.FormattingEnabled = true;
- this.band4ComboBox.Location = new System.Drawing.Point(1110, 252);
- this.band4ComboBox.Name = "band4ComboBox";
- this.band4ComboBox.Size = new System.Drawing.Size(52, 24);
- this.band4ComboBox.TabIndex = 3;
- this.band4ComboBox.TextChanged += new System.EventHandler(this.bandComboBox_TextChanged);
- //
- // band3ComboBox
- //
- this.band3ComboBox.FormattingEnabled = true;
- this.band3ComboBox.Location = new System.Drawing.Point(1110, 167);
- this.band3ComboBox.Name = "band3ComboBox";
- this.band3ComboBox.Size = new System.Drawing.Size(52, 24);
- this.band3ComboBox.TabIndex = 2;
- this.band3ComboBox.TextChanged += new System.EventHandler(this.bandComboBox_TextChanged);
- //
- // band2ComboBox
- //
- this.band2ComboBox.FormattingEnabled = true;
- this.band2ComboBox.Location = new System.Drawing.Point(1110, 86);
- this.band2ComboBox.Name = "band2ComboBox";
- this.band2ComboBox.Size = new System.Drawing.Size(52, 24);
- this.band2ComboBox.TabIndex = 1;
- this.band2ComboBox.TextChanged += new System.EventHandler(this.bandComboBox_TextChanged);
- //
- // band1ComboBox
- //
- this.band1ComboBox.FormattingEnabled = true;
- this.band1ComboBox.Location = new System.Drawing.Point(1110, 5);
- this.band1ComboBox.Name = "band1ComboBox";
- this.band1ComboBox.Size = new System.Drawing.Size(52, 24);
- this.band1ComboBox.TabIndex = 0;
- this.band1ComboBox.TextChanged += new System.EventHandler(this.bandComboBox_TextChanged);
- //
- // filterbankComboBox
- //
- this.filterbankComboBox.FormattingEnabled = true;
- this.filterbankComboBox.Items.AddRange(new object[] {
- "Herz",
- "Mel",
- "Bark",
- "Critical bands",
- "ERB",
- "Octave bands"});
- this.filterbankComboBox.Location = new System.Drawing.Point(184, 42);
- this.filterbankComboBox.Name = "filterbankComboBox";
- this.filterbankComboBox.Size = new System.Drawing.Size(92, 24);
- this.filterbankComboBox.TabIndex = 2;
- this.filterbankComboBox.Text = "Mel";
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(104, 45);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(74, 17);
- this.label1.TabIndex = 3;
- this.label1.Text = "Filter bank";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(13, 45);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(35, 17);
- this.label2.TabIndex = 5;
- this.label2.Text = "Size";
- //
- // filterCountTextBox
- //
- this.filterCountTextBox.Location = new System.Drawing.Point(54, 43);
- this.filterCountTextBox.Name = "filterCountTextBox";
- this.filterCountTextBox.Size = new System.Drawing.Size(38, 22);
- this.filterCountTextBox.TabIndex = 6;
- this.filterCountTextBox.Text = "13";
- //
- // filterbankButton
- //
- this.filterbankButton.Location = new System.Drawing.Point(372, 78);
- this.filterbankButton.Name = "filterbankButton";
- this.filterbankButton.Size = new System.Drawing.Size(240, 51);
- this.filterbankButton.TabIndex = 7;
- this.filterbankButton.Text = ">>";
- this.filterbankButton.UseVisualStyleBackColor = true;
- this.filterbankButton.Click += new System.EventHandler(this.filterbankButton_Click);
- //
- // modulationSpectrumPanel
- //
- this.modulationSpectrumPanel.BackColor = System.Drawing.Color.White;
- this.modulationSpectrumPanel.Location = new System.Drawing.Point(865, 65);
- this.modulationSpectrumPanel.Name = "modulationSpectrumPanel";
- this.modulationSpectrumPanel.Size = new System.Drawing.Size(315, 248);
- this.modulationSpectrumPanel.TabIndex = 8;
- //
- // lowFreqTextBox
- //
- this.lowFreqTextBox.Location = new System.Drawing.Point(105, 78);
- this.lowFreqTextBox.Name = "lowFreqTextBox";
- this.lowFreqTextBox.Size = new System.Drawing.Size(70, 22);
- this.lowFreqTextBox.TabIndex = 10;
- this.lowFreqTextBox.Text = "200";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(13, 82);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(62, 17);
- this.label3.TabIndex = 9;
- this.label3.Text = "LowFreq";
- //
- // highFreqTextBox
- //
- this.highFreqTextBox.Location = new System.Drawing.Point(105, 107);
- this.highFreqTextBox.Name = "highFreqTextBox";
- this.highFreqTextBox.Size = new System.Drawing.Size(70, 22);
- this.highFreqTextBox.TabIndex = 12;
- this.highFreqTextBox.Text = "3800";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(13, 110);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(66, 17);
- this.label4.TabIndex = 11;
- this.label4.Text = "HighFreq";
- //
- // samplingRateTextBox
- //
- this.samplingRateTextBox.Location = new System.Drawing.Point(282, 106);
- this.samplingRateTextBox.Name = "samplingRateTextBox";
- this.samplingRateTextBox.Size = new System.Drawing.Size(70, 22);
- this.samplingRateTextBox.TabIndex = 16;
- this.samplingRateTextBox.Text = "16000";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(181, 109);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(95, 17);
- this.label5.TabIndex = 15;
- this.label5.Text = "Sampling rate";
- //
- // fftSizeTextBox
- //
- this.fftSizeTextBox.Location = new System.Drawing.Point(282, 78);
- this.fftSizeTextBox.Name = "fftSizeTextBox";
- this.fftSizeTextBox.Size = new System.Drawing.Size(70, 22);
- this.fftSizeTextBox.TabIndex = 14;
- this.fftSizeTextBox.Text = "512";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(181, 82);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(62, 17);
- this.label6.TabIndex = 13;
- this.label6.Text = "FFT size";
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.computeButton);
- this.groupBox1.Controls.Add(this.longTermHopSizeTextBox);
- this.groupBox1.Controls.Add(this.label9);
- this.groupBox1.Controls.Add(this.longTermFftSizeTextBox);
- this.groupBox1.Controls.Add(this.label10);
- this.groupBox1.Controls.Add(this.hopSizeTextBox);
- this.groupBox1.Controls.Add(this.label7);
- this.groupBox1.Controls.Add(this.analysisFftTextBox);
- this.groupBox1.Controls.Add(this.label8);
- this.groupBox1.ForeColor = System.Drawing.Color.MidnightBlue;
- this.groupBox1.Location = new System.Drawing.Point(621, 60);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(238, 253);
- this.groupBox1.TabIndex = 28;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "Extractor parameters";
- //
- // computeButton
- //
- this.computeButton.Location = new System.Drawing.Point(22, 185);
- this.computeButton.Name = "computeButton";
- this.computeButton.Size = new System.Drawing.Size(193, 58);
- this.computeButton.TabIndex = 36;
- this.computeButton.Text = ">>";
- this.computeButton.UseVisualStyleBackColor = true;
- this.computeButton.Click += new System.EventHandler(this.computeButton_Click);
- //
- // longTermHopSizeTextBox
- //
- this.longTermHopSizeTextBox.Location = new System.Drawing.Point(156, 146);
- this.longTermHopSizeTextBox.Name = "longTermHopSizeTextBox";
- this.longTermHopSizeTextBox.Size = new System.Drawing.Size(59, 22);
- this.longTermHopSizeTextBox.TabIndex = 35;
- this.longTermHopSizeTextBox.Text = "32";
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Location = new System.Drawing.Point(19, 146);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(130, 17);
- this.label9.TabIndex = 34;
- this.label9.Text = "Long-term hop size";
- //
- // longTermFftSizeTextBox
- //
- this.longTermFftSizeTextBox.Location = new System.Drawing.Point(156, 111);
- this.longTermFftSizeTextBox.Name = "longTermFftSizeTextBox";
- this.longTermFftSizeTextBox.Size = new System.Drawing.Size(59, 22);
- this.longTermFftSizeTextBox.TabIndex = 33;
- this.longTermFftSizeTextBox.Text = "64";
- //
- // label10
- //
- this.label10.AutoSize = true;
- this.label10.Location = new System.Drawing.Point(19, 111);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(131, 17);
- this.label10.TabIndex = 32;
- this.label10.Text = "Long-term FFT size";
- //
- // hopSizeTextBox
- //
- this.hopSizeTextBox.Location = new System.Drawing.Point(156, 76);
- this.hopSizeTextBox.Name = "hopSizeTextBox";
- this.hopSizeTextBox.Size = new System.Drawing.Size(59, 22);
- this.hopSizeTextBox.TabIndex = 31;
- this.hopSizeTextBox.Text = "0,03125";
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(19, 76);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(87, 17);
- this.label7.TabIndex = 30;
- this.label7.Text = "Overlap size";
- //
- // analysisFftTextBox
- //
- this.analysisFftTextBox.Location = new System.Drawing.Point(156, 42);
- this.analysisFftTextBox.Name = "analysisFftTextBox";
- this.analysisFftTextBox.Size = new System.Drawing.Size(59, 22);
- this.analysisFftTextBox.TabIndex = 29;
- this.analysisFftTextBox.Text = "0,0625";
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(20, 42);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(86, 17);
- this.label8.TabIndex = 28;
- this.label8.Text = "Window size";
- //
- // nextButton
- //
- this.nextButton.BackColor = System.Drawing.Color.Transparent;
- this.nextButton.FlatAppearance.BorderColor = System.Drawing.Color.Black;
- this.nextButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.nextButton.Location = new System.Drawing.Point(1142, 31);
- this.nextButton.Name = "nextButton";
- this.nextButton.Size = new System.Drawing.Size(38, 34);
- this.nextButton.TabIndex = 29;
- this.nextButton.Text = ">";
- this.nextButton.UseVisualStyleBackColor = false;
- this.nextButton.Click += new System.EventHandler(this.nextButton_Click);
- //
- // infoLabel
- //
- this.infoLabel.AutoSize = true;
- this.infoLabel.Location = new System.Drawing.Point(1040, 40);
- this.infoLabel.Name = "infoLabel";
- this.infoLabel.Size = new System.Drawing.Size(62, 17);
- this.infoLabel.TabIndex = 30;
- this.infoLabel.Text = "10x1024";
- //
- // prevButton
- //
- this.prevButton.BackColor = System.Drawing.Color.Transparent;
- this.prevButton.FlatAppearance.BorderColor = System.Drawing.Color.Black;
- this.prevButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.prevButton.Location = new System.Drawing.Point(1108, 31);
- this.prevButton.Name = "prevButton";
- this.prevButton.Size = new System.Drawing.Size(38, 34);
- this.prevButton.TabIndex = 31;
- this.prevButton.Text = "<";
- this.prevButton.UseVisualStyleBackColor = false;
- this.prevButton.Click += new System.EventHandler(this.prevButton_Click);
- //
- // temporalCheckBox
- //
- this.temporalCheckBox.AutoSize = true;
- this.temporalCheckBox.Location = new System.Drawing.Point(865, 38);
- this.temporalCheckBox.Name = "temporalCheckBox";
- this.temporalCheckBox.Size = new System.Drawing.Size(104, 21);
- this.temporalCheckBox.TabIndex = 32;
- this.temporalCheckBox.Text = "time plot for";
- this.temporalCheckBox.UseVisualStyleBackColor = true;
- this.temporalCheckBox.CheckedChanged += new System.EventHandler(this.temporalCheckBox_CheckedChanged);
- //
- // herzTextBox
- //
- this.herzTextBox.Location = new System.Drawing.Point(965, 38);
- this.herzTextBox.Name = "herzTextBox";
- this.herzTextBox.Size = new System.Drawing.Size(27, 22);
- this.herzTextBox.TabIndex = 33;
- this.herzTextBox.Text = "4";
- //
- // label16
- //
- this.label16.AutoSize = true;
- this.label16.Location = new System.Drawing.Point(994, 40);
- this.label16.Name = "label16";
- this.label16.Size = new System.Drawing.Size(25, 17);
- this.label16.TabIndex = 34;
- this.label16.Text = "Hz";
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Location = new System.Drawing.Point(369, 45);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(49, 17);
- this.label11.TabIndex = 36;
- this.label11.Text = "Shape";
- //
- // shapeComboBox
- //
- this.shapeComboBox.FormattingEnabled = true;
- this.shapeComboBox.Items.AddRange(new object[] {
- "Triangular",
- "Rectangular",
- "Trapezoidal",
- "BiQuad"});
- this.shapeComboBox.Location = new System.Drawing.Point(443, 42);
- this.shapeComboBox.Name = "shapeComboBox";
- this.shapeComboBox.Size = new System.Drawing.Size(169, 24);
- this.shapeComboBox.TabIndex = 35;
- this.shapeComboBox.Text = "Triangular";
- //
- // overlapCheckBox
- //
- this.overlapCheckBox.AutoSize = true;
- this.overlapCheckBox.Location = new System.Drawing.Point(283, 43);
- this.overlapCheckBox.Name = "overlapCheckBox";
- this.overlapCheckBox.Size = new System.Drawing.Size(77, 21);
- this.overlapCheckBox.TabIndex = 37;
- this.overlapCheckBox.Text = "overlap";
- this.overlapCheckBox.UseVisualStyleBackColor = true;
- //
- // filterbankPanel
- //
- this.filterbankPanel.AutoScroll = true;
- this.filterbankPanel.BackColor = System.Drawing.Color.White;
- this.filterbankPanel.Gain = 100;
- this.filterbankPanel.Groups = null;
- this.filterbankPanel.Location = new System.Drawing.Point(12, 138);
- this.filterbankPanel.Name = "filterbankPanel";
- this.filterbankPanel.Size = new System.Drawing.Size(600, 175);
- this.filterbankPanel.Stride = 2;
- this.filterbankPanel.TabIndex = 38;
- //
- // AmsForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1187, 701);
- this.Controls.Add(this.filterbankPanel);
- this.Controls.Add(this.overlapCheckBox);
- this.Controls.Add(this.label11);
- this.Controls.Add(this.shapeComboBox);
- this.Controls.Add(this.label16);
- this.Controls.Add(this.herzTextBox);
- this.Controls.Add(this.temporalCheckBox);
- this.Controls.Add(this.prevButton);
- this.Controls.Add(this.infoLabel);
- this.Controls.Add(this.nextButton);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.samplingRateTextBox);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.fftSizeTextBox);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.highFreqTextBox);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.lowFreqTextBox);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.modulationSpectrumPanel);
- this.Controls.Add(this.filterbankButton);
- this.Controls.Add(this.filterCountTextBox);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.filterbankComboBox);
- this.Controls.Add(this.envelopesPanel);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "AmsForm";
- this.Text = "AmsForm";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.envelopesPanel.ResumeLayout(false);
- this.envelopesPanel.PerformLayout();
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private System.Windows.Forms.Panel envelopesPanel;
- private System.Windows.Forms.ComboBox filterbankComboBox;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.TextBox filterCountTextBox;
- private System.Windows.Forms.Button filterbankButton;
- private System.Windows.Forms.Panel modulationSpectrumPanel;
- private System.Windows.Forms.TextBox lowFreqTextBox;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.TextBox highFreqTextBox;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.TextBox samplingRateTextBox;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.TextBox fftSizeTextBox;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.Button computeButton;
- private System.Windows.Forms.TextBox longTermHopSizeTextBox;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.TextBox longTermFftSizeTextBox;
- private System.Windows.Forms.Label label10;
- private System.Windows.Forms.TextBox hopSizeTextBox;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.TextBox analysisFftTextBox;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.ComboBox band4ComboBox;
- private System.Windows.Forms.ComboBox band3ComboBox;
- private System.Windows.Forms.ComboBox band2ComboBox;
- private System.Windows.Forms.ComboBox band1ComboBox;
- private System.Windows.Forms.Label label15;
- private System.Windows.Forms.Label label14;
- private System.Windows.Forms.Label label13;
- private System.Windows.Forms.Label label12;
- private System.Windows.Forms.Button nextButton;
- private System.Windows.Forms.Label infoLabel;
- private System.Windows.Forms.Button prevButton;
- private System.Windows.Forms.CheckBox temporalCheckBox;
- private System.Windows.Forms.TextBox herzTextBox;
- private System.Windows.Forms.Label label16;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.ComboBox shapeComboBox;
- private System.Windows.Forms.CheckBox overlapCheckBox;
- private UserControls.GroupPlot filterbankPanel;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/AmsForm.cs b/NWaves.DemoForms/AmsForm.cs
deleted file mode 100644
index f04d9cc..0000000
--- a/NWaves.DemoForms/AmsForm.cs
+++ /dev/null
@@ -1,320 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.IO;
-using System.Linq;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.FeatureExtractors;
-using NWaves.FeatureExtractors.Options;
-using NWaves.Filters.Fda;
-using NWaves.Signals;
-using NWaves.Windows;
-using SciColorMaps;
-
-namespace NWaves.DemoForms
-{
- public partial class AmsForm : Form
- {
- private DiscreteSignal _signal;
- private AmsExtractor _extractor;
-
- private List _features;
- private int _featIndex;
-
- private float[][] _filterbank;
-
- public AmsForm()
- {
- InitializeComponent();
-
- var filterCount = int.Parse(filterCountTextBox.Text);
- band1ComboBox.DataSource = Enumerable.Range(1, filterCount).ToArray();
- band2ComboBox.DataSource = Enumerable.Range(1, filterCount).ToArray();
- band3ComboBox.DataSource = Enumerable.Range(1, filterCount).ToArray();
- band4ComboBox.DataSource = Enumerable.Range(1, filterCount).ToArray();
- band1ComboBox.Text = "1";
- band2ComboBox.Text = "2";
- band3ComboBox.Text = "3";
- band4ComboBox.Text = "4";
- }
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(ofd.FileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _signal = waveFile[Channels.Left];
- }
- }
-
- private void filterbankButton_Click(object sender, EventArgs e)
- {
- var filterCount = int.Parse(filterCountTextBox.Text);
- var samplingRate = int.Parse(samplingRateTextBox.Text);
- var fftSize = int.Parse(fftSizeTextBox.Text);
- var lowFreq = float.Parse(lowFreqTextBox.Text);
- var highFreq = float.Parse(highFreqTextBox.Text);
-
- (double, double, double)[] bands;
-
- switch (filterbankComboBox.Text)
- {
- case "Mel":
- bands = FilterBanks.MelBands(filterCount, samplingRate, lowFreq, highFreq, overlapCheckBox.Checked);
- break;
- case "Bark":
- bands = FilterBanks.BarkBands(filterCount, samplingRate, lowFreq, highFreq, overlapCheckBox.Checked);
- break;
- case "Critical bands":
- bands = FilterBanks.CriticalBands(filterCount, samplingRate, lowFreq, highFreq);
- break;
- case "Octave bands":
- bands = FilterBanks.OctaveBands(filterCount, samplingRate, lowFreq, highFreq, overlapCheckBox.Checked);
- break;
- case "ERB":
- bands = null;
- _filterbank = FilterBanks.Erb(filterCount, fftSize, samplingRate, lowFreq, highFreq);
-
- // ====================================================
- // =================== ! SQUARE ! ====================
-
- //foreach (var filter in _filterbank)
- //{
- // for (var j = 0; j < filter.Length; j++)
- // {
- // var squared = filter[j] * filter[j];
- // filter[j] = squared;
- // }
- //}
-
- // normalization coefficient (for plotting)
- var scaleCoeff = (int)(1.0 / _filterbank.Max(f => f.Max()));
- filterbankPanel.Gain = 100 * scaleCoeff;
-
-
- break;
- default:
- bands = FilterBanks.HerzBands(filterCount, samplingRate, lowFreq, highFreq, overlapCheckBox.Checked);
- break;
- }
-
- if (bands != null)
- {
- switch (shapeComboBox.Text)
- {
- case "Triangular":
- _filterbank = FilterBanks.Triangular(fftSize, samplingRate, bands);
- break;
- case "Trapezoidal":
- _filterbank = FilterBanks.Trapezoidal(fftSize, samplingRate, bands);
- break;
- case "BiQuad":
- _filterbank = FilterBanks.BiQuad(fftSize, samplingRate, bands);
- break;
- default:
- _filterbank = FilterBanks.Rectangular(fftSize, samplingRate, bands);
- break;
- }
- }
-
- band1ComboBox.DataSource = Enumerable.Range(1, filterCount).ToArray();
- band2ComboBox.DataSource = Enumerable.Range(1, filterCount).ToArray();
- band3ComboBox.DataSource = Enumerable.Range(1, filterCount).ToArray();
- band4ComboBox.DataSource = Enumerable.Range(1, filterCount).ToArray();
- band1ComboBox.Text = "1";
- band2ComboBox.Text = "2";
- band3ComboBox.Text = "3";
- band4ComboBox.Text = "4";
-
- filterbankPanel.Groups = _filterbank;
- }
-
- private void computeButton_Click(object sender, EventArgs e)
- {
- var frameDuration = double.Parse(analysisFftTextBox.Text);
- var hopDuration = double.Parse(hopSizeTextBox.Text);
- var modulationFftSize = int.Parse(longTermFftSizeTextBox.Text);
- var modulationHopSize = int.Parse(longTermHopSizeTextBox.Text);
-
- // ===== test modulation spectrum for Mfcc features =====
- //
- //var mfccExtractor = new MfccExtractor(
- // new MfccOptions
- // {
- // SamplingRate = _signal.SamplingRate,
- // FeatureCount = 13,
- // FrameDuration = frameDuration,
- // HopDuration = hopDuration
- // });
- //var vectors = mfccExtractor.ComputeFrom(_signal);
- ////FeaturePostProcessing.NormalizeMean(vectors);
-
- //var options = new AmsOptions
- //{
- // SamplingRate = _signal.SamplingRate,
- // FrameDuration = frameDuration,
- // HopDuration = hopDuration,
- // ModulationFftSize = modulationFftSize,
- // ModulationHopSize = modulationHopSize,
- // Featuregram = vectors
- //};
- //_extractor = new AmsExtractor(options);
-
-
- var options = new AmsOptions
- {
- SamplingRate = _signal.SamplingRate,
- FrameDuration = frameDuration,
- HopDuration = hopDuration,
- ModulationFftSize = modulationFftSize,
- ModulationHopSize = modulationHopSize,
- FilterBank = _filterbank,
- Window = WindowType.Hamming
- };
-
- _extractor = new AmsExtractor(options);
- _features = _extractor.ComputeFrom(_signal);
-
- _featIndex = 0;
-
- infoLabel.Text = $"{_features.Count}x{_features[0].Length}";
-
- DrawEnvelopes(_extractor.Envelopes);
- DrawModulationSpectrum(_extractor.MakeSpectrum2D(_features[_featIndex]));
- }
-
- private void nextButton_Click(object sender, EventArgs e)
- {
- if (_featIndex < _features.Count - 1) _featIndex++;
- DrawModulationSpectrum(_extractor.MakeSpectrum2D(_features[_featIndex]));
- }
-
- private void temporalCheckBox_CheckedChanged(object sender, EventArgs e)
- {
- if (temporalCheckBox.Checked)
- {
- DrawModulationSpectraHerz(
- _extractor.VectorsAtHerz(
- _features, float.Parse(herzTextBox.Text)));
- }
- else
- {
- DrawModulationSpectrum(
- _extractor.MakeSpectrum2D(_features[_featIndex]));
- }
- }
-
- private void prevButton_Click(object sender, EventArgs e)
- {
- if (_featIndex > 0) _featIndex--;
- DrawModulationSpectrum(_extractor.MakeSpectrum2D(_features[_featIndex]));
- }
-
- private void bandComboBox_TextChanged(object sender, EventArgs e)
- {
- if (_extractor == null)
- {
- return;
- }
-
- DrawEnvelopes(_extractor.Envelopes);
- }
-
- #region drawing
-
- private void DrawEnvelopes(float[][] envelopes)
- {
- var g = envelopesPanel.CreateGraphics();
- g.Clear(Color.White);
-
- var xOffset = 10;
- var offsets = Enumerable.Range(0, 4).Select(i => 80 + i * 80).ToArray();
-
- var blackPen = new Pen(Color.Black);
- var pen = new Pen(Color.Blue);
-
- var envNo = new []
- {
- int.Parse(band1ComboBox.Text),
- int.Parse(band2ComboBox.Text),
- int.Parse(band3ComboBox.Text),
- int.Parse(band4ComboBox.Text)
- };
-
- var stride = 2;
- for (var i = 0; i < 4; i++)
- {
- var en = envNo[i] - 1;
-
- g.DrawLine(blackPen, xOffset, offsets[i], envelopesPanel.Width - xOffset, offsets[i]);
- g.DrawLine(blackPen, xOffset, offsets[i] - 70, xOffset, offsets[i]);
-
- var x = stride;
- for (var j = 1; j < envelopes[en].Length; j++)
- {
- g.DrawLine(pen,
- xOffset + x - stride, (float)-envelopes[en][j - 1] * 1.5f + offsets[i],
- xOffset + x, (float)-envelopes[en][j] * 1.5f + offsets[i]);
- x += stride;
- }
- }
-
- pen.Dispose();
- }
-
- private void DrawModulationSpectrum(float[][] spectrum)
- {
- var minValue = spectrum.SelectMany(s => s).Min();
- var maxValue = spectrum.SelectMany(s => s).Max();
-
- var cmap = new MirrorColorMap(new ColorMap("bone", minValue, maxValue));
-
- var g = modulationSpectrumPanel.CreateGraphics();
- g.Clear(Color.White);
-
- var spectrumBitmap = new Bitmap(spectrum[0].Length, spectrum.Length);
-
- for (var i = 0; i < spectrum.Length; i++)
- {
- for (var j = 0; j < spectrum[i].Length; j++)
- {
- spectrumBitmap.SetPixel(j, spectrum.Length - 1 - i, cmap.GetColor(spectrum[i][j]));
- }
- }
-
- g.DrawImage(spectrumBitmap, 25, 25, modulationSpectrumPanel.Width - 25, modulationSpectrumPanel.Height - 25);
- }
-
- private void DrawModulationSpectraHerz(List spectra)
- {
- var minValue = spectra.SelectMany(s => s).Min();
- var maxValue = spectra.SelectMany(s => s).Max();
-
- var cmap = new ColorMap("blues", minValue, maxValue);
-
- var g = modulationSpectrumPanel.CreateGraphics();
- g.Clear(Color.White);
-
- var spectrumBitmap = new Bitmap(spectra.Count, spectra[0].Length);
-
- for (var i = 0; i < spectra.Count; i++)
- {
- for (var j = 0; j < spectra[i].Length; j++)
- {
- spectrumBitmap.SetPixel(i, spectra[i].Length - 1 - j, cmap.GetColor(spectra[i][j]));
- }
- }
-
- g.DrawImage(spectrumBitmap, 25, 25, modulationSpectrumPanel.Width - 25, modulationSpectrumPanel.Height - 25);
- }
-
- #endregion
- }
-}
diff --git a/NWaves.DemoForms/AmsForm.resx b/NWaves.DemoForms/AmsForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/AmsForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/App.config b/NWaves.DemoForms/App.config
deleted file mode 100644
index 8d23437..0000000
--- a/NWaves.DemoForms/App.config
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/NWaves.DemoForms/EffectsForm.Designer.cs b/NWaves.DemoForms/EffectsForm.Designer.cs
deleted file mode 100644
index 0ca7a3c..0000000
--- a/NWaves.DemoForms/EffectsForm.Designer.cs
+++ /dev/null
@@ -1,828 +0,0 @@
-using NWaves.DemoForms.UserControls;
-
-namespace NWaves.DemoForms
-{
- partial class EffectsForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.playFilteredSignalButton = new System.Windows.Forms.Button();
- this.playSignalButton = new System.Windows.Forms.Button();
- this.label6 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.spectrogramAfterFilteringPanel = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.spectrogramBeforeFilteringPanel = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.stopButton = new System.Windows.Forms.Button();
- this.stopFilteredButton = new System.Windows.Forms.Button();
- this.applyEffectButton = new System.Windows.Forms.Button();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.label2 = new System.Windows.Forms.Label();
- this.widthTextBox = new System.Windows.Forms.TextBox();
- this.flangerRadioButton = new System.Windows.Forms.RadioButton();
- this.label18 = new System.Windows.Forms.Label();
- this.dryTextBox = new System.Windows.Forms.TextBox();
- this.label19 = new System.Windows.Forms.Label();
- this.wetTextBox = new System.Windows.Forms.TextBox();
- this.label17 = new System.Windows.Forms.Label();
- this.label16 = new System.Windows.Forms.Label();
- this.hopSizeTextBox = new System.Windows.Forms.TextBox();
- this.winSizeTextBox = new System.Windows.Forms.TextBox();
- this.tsmComboBox = new System.Windows.Forms.ComboBox();
- this.pitchShiftCheckBox = new System.Windows.Forms.CheckBox();
- this.delayRadioButton = new System.Windows.Forms.RadioButton();
- this.label15 = new System.Windows.Forms.Label();
- this.pitchShiftTextBox = new System.Windows.Forms.TextBox();
- this.pitchShiftRadioButton = new System.Windows.Forms.RadioButton();
- this.label13 = new System.Windows.Forms.Label();
- this.label14 = new System.Windows.Forms.Label();
- this.lfoQTextBox = new System.Windows.Forms.TextBox();
- this.lfoFreqTextBox = new System.Windows.Forms.TextBox();
- this.label11 = new System.Windows.Forms.Label();
- this.label12 = new System.Windows.Forms.Label();
- this.maxFreqTextBox = new System.Windows.Forms.TextBox();
- this.minFreqTextBox = new System.Windows.Forms.TextBox();
- this.phaserRadioButton = new System.Windows.Forms.RadioButton();
- this.label9 = new System.Windows.Forms.Label();
- this.label10 = new System.Windows.Forms.Label();
- this.tremoloDepthTextBox = new System.Windows.Forms.TextBox();
- this.tremoloFrequencyTextBox = new System.Windows.Forms.TextBox();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.echoDecayTextBox = new System.Windows.Forms.TextBox();
- this.echoDelayTextBox = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.distTextBox = new System.Windows.Forms.TextBox();
- this.qTextBox = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.distortionGainTextBox = new System.Windows.Forms.TextBox();
- this.wahwahRadioButton = new System.Windows.Forms.RadioButton();
- this.echoRadioButton = new System.Windows.Forms.RadioButton();
- this.tubeDistortionRadioButton = new System.Windows.Forms.RadioButton();
- this.distortionRadioButton = new System.Windows.Forms.RadioButton();
- this.overdriveRadioButton = new System.Windows.Forms.RadioButton();
- this.tremoloRadioButton = new System.Windows.Forms.RadioButton();
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.signalAfterFilteringPanel = new NWaves.DemoForms.UserControls.SignalPlot();
- this.signalBeforeFilteringPanel = new NWaves.DemoForms.UserControls.SignalPlot();
- this.groupBox1.SuspendLayout();
- this.menuStrip1.SuspendLayout();
- this.SuspendLayout();
- //
- // playFilteredSignalButton
- //
- this.playFilteredSignalButton.Location = new System.Drawing.Point(831, 291);
- this.playFilteredSignalButton.Name = "playFilteredSignalButton";
- this.playFilteredSignalButton.Size = new System.Drawing.Size(59, 26);
- this.playFilteredSignalButton.TabIndex = 27;
- this.playFilteredSignalButton.Text = "Play";
- this.playFilteredSignalButton.UseVisualStyleBackColor = true;
- this.playFilteredSignalButton.Click += new System.EventHandler(this.playFilteredSignalButton_Click);
- //
- // playSignalButton
- //
- this.playSignalButton.Location = new System.Drawing.Point(347, 291);
- this.playSignalButton.Name = "playSignalButton";
- this.playSignalButton.Size = new System.Drawing.Size(59, 26);
- this.playSignalButton.TabIndex = 26;
- this.playSignalButton.Text = "Play";
- this.playSignalButton.UseVisualStyleBackColor = true;
- this.playSignalButton.Click += new System.EventHandler(this.playSignalButton_Click);
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(477, 296);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(77, 17);
- this.label6.TabIndex = 25;
- this.label6.Text = "After effect";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(12, 296);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(89, 17);
- this.label5.TabIndex = 24;
- this.label5.Text = "Before effect";
- //
- // spectrogramAfterFilteringPanel
- //
- this.spectrogramAfterFilteringPanel.AutoScroll = true;
- this.spectrogramAfterFilteringPanel.BackColor = System.Drawing.Color.White;
- this.spectrogramAfterFilteringPanel.ColorMapName = "magma";
- this.spectrogramAfterFilteringPanel.Location = new System.Drawing.Point(480, 476);
- this.spectrogramAfterFilteringPanel.Markline = null;
- this.spectrogramAfterFilteringPanel.MarklineThickness = 0;
- this.spectrogramAfterFilteringPanel.Name = "spectrogramAfterFilteringPanel";
- this.spectrogramAfterFilteringPanel.Size = new System.Drawing.Size(475, 152);
- this.spectrogramAfterFilteringPanel.Spectrogram = null;
- this.spectrogramAfterFilteringPanel.TabIndex = 23;
- //
- // spectrogramBeforeFilteringPanel
- //
- this.spectrogramBeforeFilteringPanel.AutoScroll = true;
- this.spectrogramBeforeFilteringPanel.BackColor = System.Drawing.Color.White;
- this.spectrogramBeforeFilteringPanel.ColorMapName = "magma";
- this.spectrogramBeforeFilteringPanel.Location = new System.Drawing.Point(13, 475);
- this.spectrogramBeforeFilteringPanel.Markline = null;
- this.spectrogramBeforeFilteringPanel.MarklineThickness = 0;
- this.spectrogramBeforeFilteringPanel.Name = "spectrogramBeforeFilteringPanel";
- this.spectrogramBeforeFilteringPanel.Size = new System.Drawing.Size(461, 153);
- this.spectrogramBeforeFilteringPanel.Spectrogram = null;
- this.spectrogramBeforeFilteringPanel.TabIndex = 22;
- //
- // stopButton
- //
- this.stopButton.Location = new System.Drawing.Point(412, 291);
- this.stopButton.Name = "stopButton";
- this.stopButton.Size = new System.Drawing.Size(59, 26);
- this.stopButton.TabIndex = 28;
- this.stopButton.Text = "Stop";
- this.stopButton.UseVisualStyleBackColor = true;
- this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
- //
- // stopFilteredButton
- //
- this.stopFilteredButton.Location = new System.Drawing.Point(896, 291);
- this.stopFilteredButton.Name = "stopFilteredButton";
- this.stopFilteredButton.Size = new System.Drawing.Size(59, 26);
- this.stopFilteredButton.TabIndex = 29;
- this.stopFilteredButton.Text = "Stop";
- this.stopFilteredButton.UseVisualStyleBackColor = true;
- this.stopFilteredButton.Click += new System.EventHandler(this.stopButton_Click);
- //
- // applyEffectButton
- //
- this.applyEffectButton.Location = new System.Drawing.Point(15, 247);
- this.applyEffectButton.Name = "applyEffectButton";
- this.applyEffectButton.Size = new System.Drawing.Size(940, 38);
- this.applyEffectButton.TabIndex = 30;
- this.applyEffectButton.Text = "Apply!";
- this.applyEffectButton.UseVisualStyleBackColor = true;
- this.applyEffectButton.Click += new System.EventHandler(this.applyEffectButton_Click);
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.label2);
- this.groupBox1.Controls.Add(this.widthTextBox);
- this.groupBox1.Controls.Add(this.flangerRadioButton);
- this.groupBox1.Controls.Add(this.label18);
- this.groupBox1.Controls.Add(this.dryTextBox);
- this.groupBox1.Controls.Add(this.label19);
- this.groupBox1.Controls.Add(this.wetTextBox);
- this.groupBox1.Controls.Add(this.label17);
- this.groupBox1.Controls.Add(this.label16);
- this.groupBox1.Controls.Add(this.hopSizeTextBox);
- this.groupBox1.Controls.Add(this.winSizeTextBox);
- this.groupBox1.Controls.Add(this.tsmComboBox);
- this.groupBox1.Controls.Add(this.pitchShiftCheckBox);
- this.groupBox1.Controls.Add(this.delayRadioButton);
- this.groupBox1.Controls.Add(this.label15);
- this.groupBox1.Controls.Add(this.pitchShiftTextBox);
- this.groupBox1.Controls.Add(this.pitchShiftRadioButton);
- this.groupBox1.Controls.Add(this.label13);
- this.groupBox1.Controls.Add(this.label14);
- this.groupBox1.Controls.Add(this.lfoQTextBox);
- this.groupBox1.Controls.Add(this.lfoFreqTextBox);
- this.groupBox1.Controls.Add(this.label11);
- this.groupBox1.Controls.Add(this.label12);
- this.groupBox1.Controls.Add(this.maxFreqTextBox);
- this.groupBox1.Controls.Add(this.minFreqTextBox);
- this.groupBox1.Controls.Add(this.phaserRadioButton);
- this.groupBox1.Controls.Add(this.label9);
- this.groupBox1.Controls.Add(this.label10);
- this.groupBox1.Controls.Add(this.tremoloDepthTextBox);
- this.groupBox1.Controls.Add(this.tremoloFrequencyTextBox);
- this.groupBox1.Controls.Add(this.label7);
- this.groupBox1.Controls.Add(this.label8);
- this.groupBox1.Controls.Add(this.echoDecayTextBox);
- this.groupBox1.Controls.Add(this.echoDelayTextBox);
- this.groupBox1.Controls.Add(this.label3);
- this.groupBox1.Controls.Add(this.label4);
- this.groupBox1.Controls.Add(this.distTextBox);
- this.groupBox1.Controls.Add(this.qTextBox);
- this.groupBox1.Controls.Add(this.label1);
- this.groupBox1.Controls.Add(this.distortionGainTextBox);
- this.groupBox1.Controls.Add(this.wahwahRadioButton);
- this.groupBox1.Controls.Add(this.echoRadioButton);
- this.groupBox1.Controls.Add(this.tubeDistortionRadioButton);
- this.groupBox1.Controls.Add(this.distortionRadioButton);
- this.groupBox1.Controls.Add(this.overdriveRadioButton);
- this.groupBox1.Controls.Add(this.tremoloRadioButton);
- this.groupBox1.Location = new System.Drawing.Point(13, 31);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(942, 210);
- this.groupBox1.TabIndex = 31;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "Sound Effects";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(597, 95);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(44, 17);
- this.label2.TabIndex = 47;
- this.label2.Text = "Width";
- //
- // widthTextBox
- //
- this.widthTextBox.Location = new System.Drawing.Point(647, 93);
- this.widthTextBox.Name = "widthTextBox";
- this.widthTextBox.Size = new System.Drawing.Size(41, 22);
- this.widthTextBox.TabIndex = 46;
- this.widthTextBox.Text = "0,003";
- //
- // flangerRadioButton
- //
- this.flangerRadioButton.AutoSize = true;
- this.flangerRadioButton.Location = new System.Drawing.Point(387, 90);
- this.flangerRadioButton.Name = "flangerRadioButton";
- this.flangerRadioButton.Size = new System.Drawing.Size(77, 21);
- this.flangerRadioButton.TabIndex = 45;
- this.flangerRadioButton.Text = "Flanger";
- this.flangerRadioButton.UseVisualStyleBackColor = true;
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.label18.Location = new System.Drawing.Point(835, 56);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(42, 25);
- this.label18.TabIndex = 44;
- this.label18.Text = "Dry";
- //
- // dryTextBox
- //
- this.dryTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.dryTextBox.Location = new System.Drawing.Point(883, 56);
- this.dryTextBox.Name = "dryTextBox";
- this.dryTextBox.Size = new System.Drawing.Size(49, 30);
- this.dryTextBox.TabIndex = 43;
- this.dryTextBox.Text = "0,2";
- this.dryTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // label19
- //
- this.label19.AutoSize = true;
- this.label19.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.label19.Location = new System.Drawing.Point(827, 19);
- this.label19.Name = "label19";
- this.label19.Size = new System.Drawing.Size(48, 25);
- this.label19.TabIndex = 42;
- this.label19.Text = "Wet";
- //
- // wetTextBox
- //
- this.wetTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.wetTextBox.Location = new System.Drawing.Point(883, 19);
- this.wetTextBox.Name = "wetTextBox";
- this.wetTextBox.Size = new System.Drawing.Size(49, 30);
- this.wetTextBox.TabIndex = 41;
- this.wetTextBox.Text = "0,8";
- this.wetTextBox.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
- //
- // label17
- //
- this.label17.AutoSize = true;
- this.label17.Location = new System.Drawing.Point(851, 174);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(34, 17);
- this.label17.TabIndex = 40;
- this.label17.Text = "Hop";
- //
- // label16
- //
- this.label16.AutoSize = true;
- this.label16.Location = new System.Drawing.Point(766, 174);
- this.label16.Name = "label16";
- this.label16.Size = new System.Drawing.Size(32, 17);
- this.label16.TabIndex = 39;
- this.label16.Text = "Win";
- //
- // hopSizeTextBox
- //
- this.hopSizeTextBox.Location = new System.Drawing.Point(891, 172);
- this.hopSizeTextBox.Name = "hopSizeTextBox";
- this.hopSizeTextBox.Size = new System.Drawing.Size(41, 22);
- this.hopSizeTextBox.TabIndex = 38;
- this.hopSizeTextBox.Text = "128";
- //
- // winSizeTextBox
- //
- this.winSizeTextBox.Location = new System.Drawing.Point(804, 172);
- this.winSizeTextBox.Name = "winSizeTextBox";
- this.winSizeTextBox.Size = new System.Drawing.Size(41, 22);
- this.winSizeTextBox.TabIndex = 37;
- this.winSizeTextBox.Text = "512";
- //
- // tsmComboBox
- //
- this.tsmComboBox.FormattingEnabled = true;
- this.tsmComboBox.Items.AddRange(new object[] {
- "Phase Vocoder",
- "Phase Vocoder (Phase Locking)",
- "WSOLA",
- "Paul stretch"});
- this.tsmComboBox.Location = new System.Drawing.Point(687, 142);
- this.tsmComboBox.Name = "tsmComboBox";
- this.tsmComboBox.Size = new System.Drawing.Size(245, 24);
- this.tsmComboBox.TabIndex = 36;
- this.tsmComboBox.Text = "Phase Vocoder";
- //
- // pitchShiftCheckBox
- //
- this.pitchShiftCheckBox.AutoSize = true;
- this.pitchShiftCheckBox.Location = new System.Drawing.Point(583, 159);
- this.pitchShiftCheckBox.Name = "pitchShiftCheckBox";
- this.pitchShiftCheckBox.Size = new System.Drawing.Size(91, 21);
- this.pitchShiftCheckBox.TabIndex = 35;
- this.pitchShiftCheckBox.Text = "Pitch shift";
- this.pitchShiftCheckBox.UseVisualStyleBackColor = true;
- //
- // delayRadioButton
- //
- this.delayRadioButton.AutoSize = true;
- this.delayRadioButton.Location = new System.Drawing.Point(7, 172);
- this.delayRadioButton.Name = "delayRadioButton";
- this.delayRadioButton.Size = new System.Drawing.Size(65, 21);
- this.delayRadioButton.TabIndex = 34;
- this.delayRadioButton.Text = "Delay";
- this.delayRadioButton.UseVisualStyleBackColor = true;
- //
- // label15
- //
- this.label15.AutoSize = true;
- this.label15.Location = new System.Drawing.Point(493, 163);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(23, 17);
- this.label15.TabIndex = 33;
- this.label15.Text = "by";
- //
- // pitchShiftTextBox
- //
- this.pitchShiftTextBox.Location = new System.Drawing.Point(530, 158);
- this.pitchShiftTextBox.Name = "pitchShiftTextBox";
- this.pitchShiftTextBox.Size = new System.Drawing.Size(41, 22);
- this.pitchShiftTextBox.TabIndex = 32;
- this.pitchShiftTextBox.Text = "1,2";
- //
- // pitchShiftRadioButton
- //
- this.pitchShiftRadioButton.AutoSize = true;
- this.pitchShiftRadioButton.Location = new System.Drawing.Point(387, 161);
- this.pitchShiftRadioButton.Name = "pitchShiftRadioButton";
- this.pitchShiftRadioButton.Size = new System.Drawing.Size(107, 21);
- this.pitchShiftRadioButton.TabIndex = 31;
- this.pitchShiftRadioButton.Text = "Time stretch";
- this.pitchShiftRadioButton.UseVisualStyleBackColor = true;
- //
- // label13
- //
- this.label13.AutoSize = true;
- this.label13.Location = new System.Drawing.Point(598, 68);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(19, 17);
- this.label13.TabIndex = 30;
- this.label13.Text = "Q";
- //
- // label14
- //
- this.label14.AutoSize = true;
- this.label14.Location = new System.Drawing.Point(486, 68);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(37, 17);
- this.label14.TabIndex = 29;
- this.label14.Text = "Freq";
- //
- // lfoQTextBox
- //
- this.lfoQTextBox.Location = new System.Drawing.Point(647, 65);
- this.lfoQTextBox.Name = "lfoQTextBox";
- this.lfoQTextBox.Size = new System.Drawing.Size(41, 22);
- this.lfoQTextBox.TabIndex = 28;
- this.lfoQTextBox.Text = "0,5";
- //
- // lfoFreqTextBox
- //
- this.lfoFreqTextBox.Location = new System.Drawing.Point(530, 65);
- this.lfoFreqTextBox.Name = "lfoFreqTextBox";
- this.lfoFreqTextBox.Size = new System.Drawing.Size(54, 22);
- this.lfoFreqTextBox.TabIndex = 27;
- this.lfoFreqTextBox.Text = "1,2";
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Location = new System.Drawing.Point(598, 40);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(33, 17);
- this.label11.TabIndex = 26;
- this.label11.Text = "Max";
- //
- // label12
- //
- this.label12.AutoSize = true;
- this.label12.Location = new System.Drawing.Point(486, 40);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(30, 17);
- this.label12.TabIndex = 25;
- this.label12.Text = "Min";
- //
- // maxFreqTextBox
- //
- this.maxFreqTextBox.Location = new System.Drawing.Point(647, 37);
- this.maxFreqTextBox.Name = "maxFreqTextBox";
- this.maxFreqTextBox.Size = new System.Drawing.Size(41, 22);
- this.maxFreqTextBox.TabIndex = 24;
- this.maxFreqTextBox.Text = "2000";
- //
- // minFreqTextBox
- //
- this.minFreqTextBox.Location = new System.Drawing.Point(530, 37);
- this.minFreqTextBox.Name = "minFreqTextBox";
- this.minFreqTextBox.Size = new System.Drawing.Size(54, 22);
- this.minFreqTextBox.TabIndex = 23;
- this.minFreqTextBox.Text = "300";
- //
- // phaserRadioButton
- //
- this.phaserRadioButton.AutoSize = true;
- this.phaserRadioButton.Location = new System.Drawing.Point(387, 38);
- this.phaserRadioButton.Name = "phaserRadioButton";
- this.phaserRadioButton.Size = new System.Drawing.Size(74, 21);
- this.phaserRadioButton.TabIndex = 22;
- this.phaserRadioButton.Text = "Phaser";
- this.phaserRadioButton.UseVisualStyleBackColor = true;
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Location = new System.Drawing.Point(257, 40);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(41, 17);
- this.label9.TabIndex = 21;
- this.label9.Text = "Index";
- //
- // label10
- //
- this.label10.AutoSize = true;
- this.label10.Location = new System.Drawing.Point(145, 40);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(37, 17);
- this.label10.TabIndex = 20;
- this.label10.Text = "Freq";
- //
- // tremoloDepthTextBox
- //
- this.tremoloDepthTextBox.Location = new System.Drawing.Point(306, 37);
- this.tremoloDepthTextBox.Name = "tremoloDepthTextBox";
- this.tremoloDepthTextBox.Size = new System.Drawing.Size(41, 22);
- this.tremoloDepthTextBox.TabIndex = 19;
- this.tremoloDepthTextBox.Text = "0,5";
- //
- // tremoloFrequencyTextBox
- //
- this.tremoloFrequencyTextBox.Location = new System.Drawing.Point(189, 37);
- this.tremoloFrequencyTextBox.Name = "tremoloFrequencyTextBox";
- this.tremoloFrequencyTextBox.Size = new System.Drawing.Size(54, 22);
- this.tremoloFrequencyTextBox.TabIndex = 18;
- this.tremoloFrequencyTextBox.Text = "10";
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(256, 163);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(48, 17);
- this.label7.TabIndex = 17;
- this.label7.Text = "Decay";
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(145, 163);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(44, 17);
- this.label8.TabIndex = 16;
- this.label8.Text = "Delay";
- //
- // echoDecayTextBox
- //
- this.echoDecayTextBox.Location = new System.Drawing.Point(306, 160);
- this.echoDecayTextBox.Name = "echoDecayTextBox";
- this.echoDecayTextBox.Size = new System.Drawing.Size(41, 22);
- this.echoDecayTextBox.TabIndex = 15;
- this.echoDecayTextBox.Text = "0,5";
- //
- // echoDelayTextBox
- //
- this.echoDelayTextBox.Location = new System.Drawing.Point(189, 160);
- this.echoDelayTextBox.Name = "echoDelayTextBox";
- this.echoDelayTextBox.Size = new System.Drawing.Size(54, 22);
- this.echoDelayTextBox.TabIndex = 14;
- this.echoDelayTextBox.Text = "0,18";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(257, 121);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(32, 17);
- this.label3.TabIndex = 13;
- this.label3.Text = "Dist";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(145, 121);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(19, 17);
- this.label4.TabIndex = 12;
- this.label4.Text = "Q";
- //
- // distTextBox
- //
- this.distTextBox.Location = new System.Drawing.Point(306, 118);
- this.distTextBox.Name = "distTextBox";
- this.distTextBox.Size = new System.Drawing.Size(41, 22);
- this.distTextBox.TabIndex = 11;
- this.distTextBox.Text = "5";
- //
- // qTextBox
- //
- this.qTextBox.Location = new System.Drawing.Point(189, 118);
- this.qTextBox.Name = "qTextBox";
- this.qTextBox.Size = new System.Drawing.Size(54, 22);
- this.qTextBox.TabIndex = 10;
- this.qTextBox.Text = "-0,2";
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(145, 94);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(38, 17);
- this.label1.TabIndex = 8;
- this.label1.Text = "Gain";
- //
- // distortionGainTextBox
- //
- this.distortionGainTextBox.Location = new System.Drawing.Point(189, 91);
- this.distortionGainTextBox.Name = "distortionGainTextBox";
- this.distortionGainTextBox.Size = new System.Drawing.Size(54, 22);
- this.distortionGainTextBox.TabIndex = 6;
- this.distortionGainTextBox.Text = "20";
- //
- // wahwahRadioButton
- //
- this.wahwahRadioButton.AutoSize = true;
- this.wahwahRadioButton.Location = new System.Drawing.Point(387, 64);
- this.wahwahRadioButton.Name = "wahwahRadioButton";
- this.wahwahRadioButton.Size = new System.Drawing.Size(87, 21);
- this.wahwahRadioButton.TabIndex = 5;
- this.wahwahRadioButton.Text = "WahWah";
- this.wahwahRadioButton.UseVisualStyleBackColor = true;
- //
- // echoRadioButton
- //
- this.echoRadioButton.AutoSize = true;
- this.echoRadioButton.Location = new System.Drawing.Point(7, 145);
- this.echoRadioButton.Name = "echoRadioButton";
- this.echoRadioButton.Size = new System.Drawing.Size(61, 21);
- this.echoRadioButton.TabIndex = 4;
- this.echoRadioButton.Text = "Echo";
- this.echoRadioButton.UseVisualStyleBackColor = true;
- //
- // tubeDistortionRadioButton
- //
- this.tubeDistortionRadioButton.AutoSize = true;
- this.tubeDistortionRadioButton.Location = new System.Drawing.Point(7, 118);
- this.tubeDistortionRadioButton.Name = "tubeDistortionRadioButton";
- this.tubeDistortionRadioButton.Size = new System.Drawing.Size(126, 21);
- this.tubeDistortionRadioButton.TabIndex = 3;
- this.tubeDistortionRadioButton.Text = "Tube Distortion";
- this.tubeDistortionRadioButton.UseVisualStyleBackColor = true;
- //
- // distortionRadioButton
- //
- this.distortionRadioButton.AutoSize = true;
- this.distortionRadioButton.Location = new System.Drawing.Point(7, 91);
- this.distortionRadioButton.Name = "distortionRadioButton";
- this.distortionRadioButton.Size = new System.Drawing.Size(89, 21);
- this.distortionRadioButton.TabIndex = 2;
- this.distortionRadioButton.Text = "Distortion";
- this.distortionRadioButton.UseVisualStyleBackColor = true;
- //
- // overdriveRadioButton
- //
- this.overdriveRadioButton.AutoSize = true;
- this.overdriveRadioButton.Location = new System.Drawing.Point(7, 64);
- this.overdriveRadioButton.Name = "overdriveRadioButton";
- this.overdriveRadioButton.Size = new System.Drawing.Size(91, 21);
- this.overdriveRadioButton.TabIndex = 1;
- this.overdriveRadioButton.Text = "Overdrive";
- this.overdriveRadioButton.UseVisualStyleBackColor = true;
- //
- // tremoloRadioButton
- //
- this.tremoloRadioButton.AutoSize = true;
- this.tremoloRadioButton.Checked = true;
- this.tremoloRadioButton.Location = new System.Drawing.Point(7, 37);
- this.tremoloRadioButton.Name = "tremoloRadioButton";
- this.tremoloRadioButton.Size = new System.Drawing.Size(81, 21);
- this.tremoloRadioButton.TabIndex = 0;
- this.tremoloRadioButton.TabStop = true;
- this.tremoloRadioButton.Text = "Tremolo";
- this.tremoloRadioButton.UseVisualStyleBackColor = true;
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(970, 28);
- this.menuStrip1.TabIndex = 32;
- this.menuStrip1.Text = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem,
- this.saveAsToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(46, 24);
- this.fileToolStripMenuItem.Text = "&File";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
- this.openToolStripMenuItem.Text = "&Open...";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // saveAsToolStripMenuItem
- //
- this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
- this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(152, 26);
- this.saveAsToolStripMenuItem.Text = "&Save As...";
- this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveAsToolStripMenuItem_Click);
- //
- // signalAfterFilteringPanel
- //
- this.signalAfterFilteringPanel.AutoScroll = true;
- this.signalAfterFilteringPanel.BackColor = System.Drawing.Color.White;
- this.signalAfterFilteringPanel.ForeColor = System.Drawing.Color.Blue;
- this.signalAfterFilteringPanel.Gain = 1F;
- this.signalAfterFilteringPanel.Location = new System.Drawing.Point(480, 316);
- this.signalAfterFilteringPanel.Name = "signalAfterFilteringPanel";
- this.signalAfterFilteringPanel.PaddingX = 24;
- this.signalAfterFilteringPanel.PaddingY = 5;
- this.signalAfterFilteringPanel.Signal = null;
- this.signalAfterFilteringPanel.Size = new System.Drawing.Size(475, 153);
- this.signalAfterFilteringPanel.Stride = 256;
- this.signalAfterFilteringPanel.TabIndex = 21;
- //
- // signalBeforeFilteringPanel
- //
- this.signalBeforeFilteringPanel.AutoScroll = true;
- this.signalBeforeFilteringPanel.BackColor = System.Drawing.Color.White;
- this.signalBeforeFilteringPanel.ForeColor = System.Drawing.Color.Blue;
- this.signalBeforeFilteringPanel.Gain = 1F;
- this.signalBeforeFilteringPanel.Location = new System.Drawing.Point(13, 316);
- this.signalBeforeFilteringPanel.Name = "signalBeforeFilteringPanel";
- this.signalBeforeFilteringPanel.PaddingX = 24;
- this.signalBeforeFilteringPanel.PaddingY = 5;
- this.signalBeforeFilteringPanel.Signal = null;
- this.signalBeforeFilteringPanel.Size = new System.Drawing.Size(461, 153);
- this.signalBeforeFilteringPanel.Stride = 256;
- this.signalBeforeFilteringPanel.TabIndex = 20;
- //
- // EffectsForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(970, 640);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.applyEffectButton);
- this.Controls.Add(this.stopFilteredButton);
- this.Controls.Add(this.stopButton);
- this.Controls.Add(this.playFilteredSignalButton);
- this.Controls.Add(this.playSignalButton);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.spectrogramAfterFilteringPanel);
- this.Controls.Add(this.signalAfterFilteringPanel);
- this.Controls.Add(this.spectrogramBeforeFilteringPanel);
- this.Controls.Add(this.signalBeforeFilteringPanel);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "EffectsForm";
- this.Text = "EffectsForm";
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Button playFilteredSignalButton;
- private System.Windows.Forms.Button playSignalButton;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Label label5;
- private SpectrogramPlot spectrogramAfterFilteringPanel;
- private SpectrogramPlot spectrogramBeforeFilteringPanel;
- private System.Windows.Forms.Button stopButton;
- private System.Windows.Forms.Button stopFilteredButton;
- private System.Windows.Forms.Button applyEffectButton;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private System.Windows.Forms.RadioButton wahwahRadioButton;
- private System.Windows.Forms.RadioButton echoRadioButton;
- private System.Windows.Forms.RadioButton tubeDistortionRadioButton;
- private System.Windows.Forms.RadioButton distortionRadioButton;
- private System.Windows.Forms.RadioButton overdriveRadioButton;
- private System.Windows.Forms.RadioButton tremoloRadioButton;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.TextBox distortionGainTextBox;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.TextBox distTextBox;
- private System.Windows.Forms.TextBox qTextBox;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.Label label10;
- private System.Windows.Forms.TextBox tremoloDepthTextBox;
- private System.Windows.Forms.TextBox tremoloFrequencyTextBox;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.TextBox echoDecayTextBox;
- private System.Windows.Forms.TextBox echoDelayTextBox;
- private System.Windows.Forms.Label label13;
- private System.Windows.Forms.Label label14;
- private System.Windows.Forms.TextBox lfoQTextBox;
- private System.Windows.Forms.TextBox lfoFreqTextBox;
- private System.Windows.Forms.Label label11;
- private System.Windows.Forms.Label label12;
- private System.Windows.Forms.TextBox maxFreqTextBox;
- private System.Windows.Forms.TextBox minFreqTextBox;
- private System.Windows.Forms.RadioButton phaserRadioButton;
- private System.Windows.Forms.RadioButton delayRadioButton;
- private System.Windows.Forms.Label label15;
- private System.Windows.Forms.TextBox pitchShiftTextBox;
- private System.Windows.Forms.RadioButton pitchShiftRadioButton;
- private System.Windows.Forms.CheckBox pitchShiftCheckBox;
- private SignalPlot signalAfterFilteringPanel;
- private SignalPlot signalBeforeFilteringPanel;
- private System.Windows.Forms.ComboBox tsmComboBox;
- private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem;
- private System.Windows.Forms.Label label17;
- private System.Windows.Forms.Label label16;
- private System.Windows.Forms.TextBox hopSizeTextBox;
- private System.Windows.Forms.TextBox winSizeTextBox;
- private System.Windows.Forms.Label label18;
- private System.Windows.Forms.TextBox dryTextBox;
- private System.Windows.Forms.Label label19;
- private System.Windows.Forms.TextBox wetTextBox;
- private System.Windows.Forms.RadioButton flangerRadioButton;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.TextBox widthTextBox;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/EffectsForm.cs b/NWaves.DemoForms/EffectsForm.cs
deleted file mode 100644
index 6a39114..0000000
--- a/NWaves.DemoForms/EffectsForm.cs
+++ /dev/null
@@ -1,217 +0,0 @@
-using System;
-using System.IO;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.Effects;
-using NWaves.Effects.Base;
-using NWaves.Filters.Base;
-using NWaves.Operations;
-using NWaves.Operations.Tsm;
-using NWaves.Signals;
-using NWaves.Signals.Builders;
-using NWaves.Transforms;
-
-namespace NWaves.DemoForms
-{
- public partial class EffectsForm : Form
- {
- private DiscreteSignal _signal;
- private DiscreteSignal _filteredSignal;
-
- private readonly Stft _stft = new Stft(256, fftSize: 256);
-
- private string _waveFileName;
- private short _bitDepth;
-
- private readonly MemoryStreamPlayer _player = new MemoryStreamPlayer();
-
-
- public EffectsForm()
- {
- InitializeComponent();
-
- signalBeforeFilteringPanel.Gain = 80;
- signalAfterFilteringPanel.Gain = 80;
- }
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- _waveFileName = ofd.FileName;
-
- using (var stream = new FileStream(_waveFileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _bitDepth = waveFile.WaveFmt.BitsPerSample;
- _signal = waveFile[Channels.Average];
- }
-
- signalBeforeFilteringPanel.Signal = _signal;
- spectrogramBeforeFilteringPanel.Spectrogram = _stft.Spectrogram(_signal);
- }
-
- private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var sfd = new SaveFileDialog();
- if (sfd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(sfd.FileName, FileMode.Create))
- {
- var waveFile = new WaveFile(_filteredSignal, _bitDepth);
- waveFile.SaveTo(stream);
- }
- }
-
- private void applyEffectButton_Click(object sender, EventArgs e)
- {
- AudioEffect effect;
-
- var fs = _signal.SamplingRate;
-
- var winSize = int.Parse(winSizeTextBox.Text);
- var hopSize = int.Parse(hopSizeTextBox.Text);
- var tsm = (TsmAlgorithm)tsmComboBox.SelectedIndex;
-
- var shift = float.Parse(pitchShiftTextBox.Text);
-
- if (tremoloRadioButton.Checked)
- {
- var freq = float.Parse(tremoloFrequencyTextBox.Text);
- var depth = float.Parse(tremoloDepthTextBox.Text);
- effect = new TremoloEffect(fs, depth, freq);
- }
- else if (overdriveRadioButton.Checked)
- {
- var gain = float.Parse(distortionGainTextBox.Text);
- effect = new DistortionEffect(DistortionMode.SoftClipping, gain, -12);
- }
- else if (distortionRadioButton.Checked)
- {
- var gain = float.Parse(distortionGainTextBox.Text);
- effect = new DistortionEffect(DistortionMode.Exponential, gain, -12);
- }
- else if (tubeDistortionRadioButton.Checked)
- {
- var gain = float.Parse(distortionGainTextBox.Text);
- var dist = float.Parse(distTextBox.Text);
- var q = float.Parse(qTextBox.Text);
- effect = new TubeDistortionEffect(gain, -12, q, dist);
- }
- else if (echoRadioButton.Checked)
- {
- var delay = float.Parse(echoDelayTextBox.Text);
- var decay = float.Parse(echoDecayTextBox.Text);
- effect = new EchoEffect(fs, delay, decay);
- }
- else if (delayRadioButton.Checked)
- {
- var delay = float.Parse(echoDelayTextBox.Text);
- var decay = float.Parse(echoDecayTextBox.Text);
- effect = new DelayEffect(fs, delay, decay);
- }
- else if (wahwahRadioButton.Checked)
- {
- var lfoFrequency = float.Parse(lfoFreqTextBox.Text);
- var minFrequency = float.Parse(minFreqTextBox.Text);
- var maxFrequency = float.Parse(maxFreqTextBox.Text);
- var q = float.Parse(lfoQTextBox.Text);
- effect = new WahwahEffect(fs, lfoFrequency, minFrequency, maxFrequency, q);
- //effect = new AutowahEffect(fs, minFrequency, maxFrequency, q);
- }
- else if (flangerRadioButton.Checked)
- {
- var lfoFrequency = float.Parse(lfoFreqTextBox.Text);
- var width = float.Parse(widthTextBox.Text);
- effect = new FlangerEffect(fs, lfoFrequency, width);//, 0.7f, 0.5f);
- //effect = new VibratoEffect(fs, lfoFrequency, width);
- //effect = new ChorusEffect(fs, new[] { 1f, 1f, 1f, 1f }, new[] { 0.004f, 0.0042f, 0.0045f, 0.0038f });
- }
- else if (pitchShiftRadioButton.Checked)
- {
- //effect = pitchShiftCheckBox.Checked ? new PitchShiftVocoderEffect(fs, shift, winSize, hopSize) : null;
- effect = pitchShiftCheckBox.Checked ? new PitchShiftEffect(shift, winSize, hopSize, tsm) : null;
- //effect = pitchShiftCheckBox.Checked ? new WhisperEffect(hopSize, winSize) : null;
- //effect = new MorphEffect(hopSize, winSize);
- }
- else
- {
- var lfoFrequency = float.Parse(lfoFreqTextBox.Text);
- var minFrequency = float.Parse(minFreqTextBox.Text);
- var maxFrequency = float.Parse(maxFreqTextBox.Text);
- var q = float.Parse(lfoQTextBox.Text);
-
- var lfo = new SawtoothBuilder()
- .SetParameter("freq", lfoFrequency)
- .SetParameter("min", minFrequency)
- .SetParameter("max", maxFrequency)
- .SampledAt(_signal.SamplingRate);
-
- effect = new PhaserEffect(fs, lfo, q);
- }
-
- if (effect != null)
- {
- effect.Wet = float.Parse(wetTextBox.Text);
- effect.Dry = float.Parse(dryTextBox.Text);
-
- _filteredSignal = effect.ApplyTo(_signal, FilteringMethod.Auto);
-
-
- //DiscreteSignal morph;
- //using (var stream = new FileStream(@"D:\Docs\Research\DATABASE\Dictor1\wav\21.wav", FileMode.Open))
- //{
- // var waveFile = new WaveFile(stream);
- // morph = waveFile[Channels.Average];
- //}
-
- //if (morph.SamplingRate != _signal.SamplingRate)
- //{
- // morph = Operation.Resample(morph, _signal.SamplingRate);
- //}
-
- //var eff = new MorphEffect(hopSize /*50*/, winSize/*256*/)
- //{
- // Wet = effect.Wet,
- // Dry = effect.Dry
- //};
-
- //_filteredSignal = eff.ApplyTo(_signal, morph);
- }
- else
- {
- _filteredSignal = //Operation.TimeStretch(_signal, shift, tsm);
- Operation.TimeStretch(_signal, shift, winSize, hopSize, tsm);
- }
-
- signalAfterFilteringPanel.Signal = _filteredSignal;
- spectrogramAfterFilteringPanel.Spectrogram = _stft.Spectrogram(_filteredSignal.Samples);
- }
-
- #region playback
-
- private async void playSignalButton_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_waveFileName);
- }
-
- private async void playFilteredSignalButton_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_filteredSignal, _bitDepth);
- }
-
- private void stopButton_Click(object sender, EventArgs e)
- {
- _player.Stop();
- }
-
- #endregion
- }
-}
diff --git a/NWaves.DemoForms/EffectsForm.resx b/NWaves.DemoForms/EffectsForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/EffectsForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/FeaturesForm.Designer.cs b/NWaves.DemoForms/FeaturesForm.Designer.cs
deleted file mode 100644
index 549435b..0000000
--- a/NWaves.DemoForms/FeaturesForm.Designer.cs
+++ /dev/null
@@ -1,180 +0,0 @@
-using NWaves.DemoForms.UserControls;
-
-namespace NWaves.DemoForms
-{
- partial class FeaturesForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.featuresListView = new System.Windows.Forms.ListView();
- this.spectrumPictureBox = new System.Windows.Forms.PictureBox();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.peaksListBox = new System.Windows.Forms.ListBox();
- this.featureLabel = new System.Windows.Forms.Label();
- this.spectrogramPlot = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.menuStrip1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.spectrumPictureBox)).BeginInit();
- this.SuspendLayout();
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1183, 28);
- this.menuStrip1.TabIndex = 0;
- this.menuStrip1.Text = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
- this.fileToolStripMenuItem.Text = "&File";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(129, 26);
- this.openToolStripMenuItem.Text = "&Open...";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // featuresListView
- //
- this.featuresListView.FullRowSelect = true;
- this.featuresListView.GridLines = true;
- this.featuresListView.Location = new System.Drawing.Point(12, 37);
- this.featuresListView.Name = "featuresListView";
- this.featuresListView.Size = new System.Drawing.Size(680, 319);
- this.featuresListView.TabIndex = 5;
- this.featuresListView.UseCompatibleStateImageBehavior = false;
- this.featuresListView.View = System.Windows.Forms.View.Details;
- this.featuresListView.ColumnClick += new System.Windows.Forms.ColumnClickEventHandler(this.featuresListView_ColumnClick);
- this.featuresListView.SelectedIndexChanged += new System.EventHandler(this.featuresListView_SelectedIndexChanged);
- //
- // spectrumPictureBox
- //
- this.spectrumPictureBox.BackColor = System.Drawing.SystemColors.Window;
- this.spectrumPictureBox.Location = new System.Drawing.Point(698, 37);
- this.spectrumPictureBox.Name = "spectrumPictureBox";
- this.spectrumPictureBox.Size = new System.Drawing.Size(473, 233);
- this.spectrumPictureBox.TabIndex = 6;
- this.spectrumPictureBox.TabStop = false;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(557, 365);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(135, 17);
- this.label1.TabIndex = 7;
- this.label1.Text = "Click column header";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(886, 280);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(110, 17);
- this.label2.TabIndex = 8;
- this.label2.Text = "Harmonic peaks";
- //
- // peaksListBox
- //
- this.peaksListBox.Font = new System.Drawing.Font("Courier New", 10.8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.peaksListBox.FormattingEnabled = true;
- this.peaksListBox.ItemHeight = 20;
- this.peaksListBox.Location = new System.Drawing.Point(698, 320);
- this.peaksListBox.Name = "peaksListBox";
- this.peaksListBox.Size = new System.Drawing.Size(473, 324);
- this.peaksListBox.TabIndex = 9;
- //
- // featureLabel
- //
- this.featureLabel.AutoSize = true;
- this.featureLabel.Location = new System.Drawing.Point(15, 365);
- this.featureLabel.Name = "featureLabel";
- this.featureLabel.Size = new System.Drawing.Size(0, 17);
- this.featureLabel.TabIndex = 10;
- //
- // spectrogramPlot
- //
- this.spectrogramPlot.AutoScroll = true;
- this.spectrogramPlot.BackColor = System.Drawing.Color.Black;
- this.spectrogramPlot.ColorMapName = "magma";
- this.spectrogramPlot.Location = new System.Drawing.Point(12, 386);
- this.spectrogramPlot.Markline = null;
- this.spectrogramPlot.Name = "spectrogramPlot";
- this.spectrogramPlot.Size = new System.Drawing.Size(680, 258);
- this.spectrogramPlot.Spectrogram = null;
- this.spectrogramPlot.TabIndex = 11;
- //
- // FeaturesForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1183, 652);
- this.Controls.Add(this.spectrogramPlot);
- this.Controls.Add(this.featureLabel);
- this.Controls.Add(this.peaksListBox);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.spectrumPictureBox);
- this.Controls.Add(this.featuresListView);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "FeaturesForm";
- this.Text = "FeaturesForm";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.spectrumPictureBox)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private System.Windows.Forms.ListView featuresListView;
- private System.Windows.Forms.PictureBox spectrumPictureBox;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.ListBox peaksListBox;
- private System.Windows.Forms.Label featureLabel;
- private SpectrogramPlot spectrogramPlot;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/FeaturesForm.cs b/NWaves.DemoForms/FeaturesForm.cs
deleted file mode 100644
index 8696e49..0000000
--- a/NWaves.DemoForms/FeaturesForm.cs
+++ /dev/null
@@ -1,223 +0,0 @@
-using System;
-using System.Linq;
-using System.Collections.Generic;
-using System.IO;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.FeatureExtractors;
-using NWaves.FeatureExtractors.Base;
-using NWaves.FeatureExtractors.Multi;
-using NWaves.FeatureExtractors.Options;
-using NWaves.Signals;
-using NWaves.Features;
-using System.Drawing;
-using NWaves.Transforms;
-
-namespace NWaves.DemoForms
-{
- public partial class FeaturesForm : Form
- {
- private DiscreteSignal _signal;
- private float[][] _vectors;
-
- private int _frameSize = 512;
- private int _hopSize = 128;
-
- private Stft _stft;
-
- public FeaturesForm()
- {
- InitializeComponent();
- }
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(ofd.FileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _signal = waveFile[Channels.Left];
- }
-
- _stft = new Stft(_frameSize, _hopSize);
-
- var frameDuration = (double) _frameSize / _signal.SamplingRate;
- var hopDuration = (double) _hopSize / _signal.SamplingRate;
-
- var freqs = new[] { 300f, 600, 1000, 2000, 4000, 7000 };
-
- var pitchOptions = new PitchOptions
- {
- SamplingRate = _signal.SamplingRate,
- FrameDuration = frameDuration,
- HopDuration = hopDuration,
- HighFrequency = 900/*Hz*/
- };
-
- var pitchExtractor = new PitchExtractor(pitchOptions);
- var pitchTrack = pitchExtractor.ParallelComputeFrom(_signal)
- .Select(p => p[0])
- .ToArray();
-
- var options = new MultiFeatureOptions
- {
- SamplingRate = _signal.SamplingRate,
- FrameDuration = frameDuration,
- HopDuration = hopDuration
- };
-
- var tdExtractor = new TimeDomainFeaturesExtractor(options);
- tdExtractor.AddFeature("pitch_zcr", (signal, start, end) => Pitch.FromZeroCrossingsSchmitt(signal, start, end));
-
- var mpeg7Extractor = new Mpeg7SpectralFeaturesExtractor(options);
- mpeg7Extractor.IncludeHarmonicFeatures("all");
- mpeg7Extractor.SetPitchTrack(pitchTrack);
-
- options.FeatureList = "sc+sn";
- options.Frequencies = freqs;
- var spectralExtractor = new SpectralFeaturesExtractor(options);
- //spectralExtractor.AddFeature("pitch_hss", (spectrum, fs) => Pitch.FromHss(spectrum, _signal.SamplingRate));
-
- var tdVectors = tdExtractor.ParallelComputeFrom(_signal);
- var spectralVectors = spectralExtractor.ParallelComputeFrom(_signal);
- var mpeg7Vectors = mpeg7Extractor.ComputeFrom(_signal);
-
- _vectors = FeaturePostProcessing.Join(tdVectors, spectralVectors, mpeg7Vectors);
-
- //FeaturePostProcessing.NormalizeMean(_vectors);
- //FeaturePostProcessing.AddDeltas(_vectors);
-
- var descriptions = tdExtractor.FeatureDescriptions
- .Concat(spectralExtractor.FeatureDescriptions)
- .Concat(mpeg7Extractor.FeatureDescriptions)
- .ToList();
-
- FillFeaturesList(_vectors, descriptions, tdExtractor.TimeMarkers(_vectors.Length));
-
- spectrogramPlot.ColorMapName = "afmhot";
- spectrogramPlot.MarklineThickness = 2;
- spectrogramPlot.Spectrogram = _stft.Spectrogram(_signal);
- }
-
- private void FillFeaturesList(IList featureVectors,
- IList featureDescriptions,
- IList timeMarkers)
- {
- featuresListView.Clear();
- featuresListView.Columns.Add("time", 50);
-
- foreach (var feat in featureDescriptions)
- {
- featuresListView.Columns.Add(feat, 70);
- }
-
- for (var i = 0; i < featureVectors.Count; i++)
- {
- var item = new ListViewItem { Text = timeMarkers[i].ToString("F4") };
- item.SubItems.AddRange(featureVectors[i].Select(f => f.ToString("F4")).ToArray());
-
- featuresListView.Items.Add(item);
- }
- }
-
- private void featuresListView_ColumnClick(object sender, ColumnClickEventArgs e)
- {
- if (e.Column == 0)
- {
- return;
- }
-
- featureLabel.Text = featuresListView.Columns[e.Column].Text;
-
- var max = _vectors.Select(v => v[e.Column - 1]).Max();
- var min = _vectors.Select(v => v[e.Column - 1]).Min();
-
- var height = spectrogramPlot.Height;
-
- spectrogramPlot.Markline = _vectors.Select(v => height * (v[e.Column - 1] - min) / (max - min)).ToArray();
-
- //featurePlotPanel.Stride = 1;
- //featurePlotPanel.Line = _vectors.Select(v => v.Features[e.Column - 1]).ToArray();
- }
-
-
- // TODO: remove this )))
-
- private void featuresListView_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (featuresListView.SelectedItems.Count == 0)
- {
- return;
- }
-
- var pos = featuresListView.SelectedIndices[0];
-
- var fft = new Fft(512);
-
- var spectrum = fft.PowerSpectrum(_signal[pos * _hopSize, pos * _hopSize + _frameSize]).Samples;
-
- var peaks = new int[10];
- var freqs = new float[10];
-
-
- Harmonic.Peaks(spectrum, peaks, freqs, _signal.SamplingRate);
-
-
- peaksListBox.Items.Clear();
- for (var p = 0; p < peaks.Length; p++)
- {
- peaksListBox.Items.Add($"peak #{p+1,-2} : {freqs[p],-7} Hz");
- }
-
-
- _spectrumImage = new Bitmap(512, spectrumPictureBox.Height);
-
- var g = Graphics.FromImage(_spectrumImage);
- g.Clear(Color.White);
-
- var pen = new Pen(ForeColor);
- var redpen = new Pen(Color.Red, 2);
-
- var i = 1;
- var Stride = 4;
- var PaddingX = 5;
- var PaddingY = 5;
-
- var x = PaddingX + Stride;
-
- var min = spectrum.Min();
- var max = spectrum.Max();
-
- var height = _spectrumImage.Height;
- var gain = max - min < 1e-6 ? 1 : (height - 2 * PaddingY) / (max - min);
-
- var offset = (int)(height - PaddingY + min * gain);
-
- for (; i < spectrum.Length; i++)
- {
- g.DrawLine(pen, x - Stride, -spectrum[i - 1] * gain + offset,
- x, -spectrum[i ] * gain + offset);
- x += Stride;
- }
-
- for (i = 0; i < peaks.Length; i++)
- {
- g.DrawLine(redpen, PaddingX + peaks[i] * Stride, PaddingY + offset,
- PaddingX + peaks[i] * Stride, -PaddingY - spectrum[peaks[i]] * gain + offset);
- }
-
- pen.Dispose();
- redpen.Dispose();
- g.Dispose();
-
- spectrumPictureBox.Image = _spectrumImage;
- }
-
- Bitmap _spectrumImage;
- }
-}
diff --git a/NWaves.DemoForms/FeaturesForm.resx b/NWaves.DemoForms/FeaturesForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/FeaturesForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/FiltersForm.Designer.cs b/NWaves.DemoForms/FiltersForm.Designer.cs
deleted file mode 100644
index 35f3dbd..0000000
--- a/NWaves.DemoForms/FiltersForm.Designer.cs
+++ /dev/null
@@ -1,659 +0,0 @@
-using NWaves.DemoForms.UserControls;
-
-namespace NWaves.DemoForms
-{
- partial class FiltersForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.saveAsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
- this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.filterToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.autoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.overlapAddToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.overlapSaveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.differenceEquationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.framebyFrameToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.resampleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.interpolateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.decimateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.customToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.resampleTextBox = new System.Windows.Forms.ToolStripTextBox();
- this.analyzeFilterButton = new System.Windows.Forms.Button();
- this.filterTypesComboBox = new System.Windows.Forms.ComboBox();
- this.filterParamsDataGrid = new System.Windows.Forms.DataGridView();
- this.Param = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Value = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.numeratorListBox = new System.Windows.Forms.ListBox();
- this.denominatorListBox = new System.Windows.Forms.ListBox();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.playSignalButton = new System.Windows.Forms.Button();
- this.playFilteredSignalButton = new System.Windows.Forms.Button();
- this.orderNumeratorTextBox = new System.Windows.Forms.TextBox();
- this.orderDenominatorTextBox = new System.Windows.Forms.TextBox();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.changeOrderButton = new System.Windows.Forms.Button();
- this.phaseViewComboBox = new System.Windows.Forms.ComboBox();
- this.spectrogramAfterFilteringPanel = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.signalAfterFilteringPanel = new NWaves.DemoForms.UserControls.SignalPlot();
- this.spectrogramBeforeFilteringPanel = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.signalBeforeFilteringPanel = new NWaves.DemoForms.UserControls.SignalPlot();
- this.poleZeroPanel = new NWaves.DemoForms.UserControls.PoleZeroPlot();
- this.phaseResponsePanel = new NWaves.DemoForms.UserControls.LinePlot();
- this.magnitudeResponsePanel = new NWaves.DemoForms.UserControls.LinePlot();
- this.label9 = new System.Windows.Forms.Label();
- this.zpIterationsTextBox = new System.Windows.Forms.TextBox();
- this.menuStrip1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.filterParamsDataGrid)).BeginInit();
- this.SuspendLayout();
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem,
- this.filterToolStripMenuItem,
- this.resampleToolStripMenuItem,
- this.resampleTextBox});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1001, 31);
- this.menuStrip1.TabIndex = 5;
- this.menuStrip1.Text = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem,
- this.saveAsToolStripMenuItem,
- this.toolStripSeparator1,
- this.exitToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 27);
- this.fileToolStripMenuItem.Text = "&File";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(142, 26);
- this.openToolStripMenuItem.Text = "&Open";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // saveAsToolStripMenuItem
- //
- this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
- this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(142, 26);
- this.saveAsToolStripMenuItem.Text = "&Save as...";
- this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveAsToolStripMenuItem_Click);
- //
- // toolStripSeparator1
- //
- this.toolStripSeparator1.Name = "toolStripSeparator1";
- this.toolStripSeparator1.Size = new System.Drawing.Size(139, 6);
- //
- // exitToolStripMenuItem
- //
- this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
- this.exitToolStripMenuItem.Size = new System.Drawing.Size(142, 26);
- this.exitToolStripMenuItem.Text = "&Exit";
- this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
- //
- // filterToolStripMenuItem
- //
- this.filterToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.autoToolStripMenuItem,
- this.overlapAddToolStripMenuItem,
- this.overlapSaveToolStripMenuItem,
- this.differenceEquationToolStripMenuItem,
- this.framebyFrameToolStripMenuItem});
- this.filterToolStripMenuItem.Name = "filterToolStripMenuItem";
- this.filterToolStripMenuItem.Size = new System.Drawing.Size(54, 27);
- this.filterToolStripMenuItem.Text = "Fi<er";
- //
- // autoToolStripMenuItem
- //
- this.autoToolStripMenuItem.Name = "autoToolStripMenuItem";
- this.autoToolStripMenuItem.Size = new System.Drawing.Size(265, 26);
- this.autoToolStripMenuItem.Text = "Auto";
- this.autoToolStripMenuItem.Click += new System.EventHandler(this.autoToolStripMenuItem_Click);
- //
- // overlapAddToolStripMenuItem
- //
- this.overlapAddToolStripMenuItem.Name = "overlapAddToolStripMenuItem";
- this.overlapAddToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.A)));
- this.overlapAddToolStripMenuItem.Size = new System.Drawing.Size(265, 26);
- this.overlapAddToolStripMenuItem.Text = "Overlap-&Add";
- this.overlapAddToolStripMenuItem.Click += new System.EventHandler(this.overlapAddToolStripMenuItem_Click);
- //
- // overlapSaveToolStripMenuItem
- //
- this.overlapSaveToolStripMenuItem.Name = "overlapSaveToolStripMenuItem";
- this.overlapSaveToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.S)));
- this.overlapSaveToolStripMenuItem.Size = new System.Drawing.Size(265, 26);
- this.overlapSaveToolStripMenuItem.Text = "Overlap-&Save";
- this.overlapSaveToolStripMenuItem.Click += new System.EventHandler(this.overlapSaveToolStripMenuItem_Click);
- //
- // differenceEquationToolStripMenuItem
- //
- this.differenceEquationToolStripMenuItem.Name = "differenceEquationToolStripMenuItem";
- this.differenceEquationToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Alt | System.Windows.Forms.Keys.D)));
- this.differenceEquationToolStripMenuItem.Size = new System.Drawing.Size(265, 26);
- this.differenceEquationToolStripMenuItem.Text = "Difference &Equation";
- this.differenceEquationToolStripMenuItem.Click += new System.EventHandler(this.differenceEquationToolStripMenuItem_Click);
- //
- // framebyFrameToolStripMenuItem
- //
- this.framebyFrameToolStripMenuItem.Name = "framebyFrameToolStripMenuItem";
- this.framebyFrameToolStripMenuItem.Size = new System.Drawing.Size(265, 26);
- this.framebyFrameToolStripMenuItem.Text = "Frame-by-Frame";
- this.framebyFrameToolStripMenuItem.Click += new System.EventHandler(this.framebyFrameToolStripMenuItem_Click);
- //
- // resampleToolStripMenuItem
- //
- this.resampleToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.interpolateToolStripMenuItem,
- this.decimateToolStripMenuItem,
- this.customToolStripMenuItem});
- this.resampleToolStripMenuItem.Name = "resampleToolStripMenuItem";
- this.resampleToolStripMenuItem.Size = new System.Drawing.Size(86, 27);
- this.resampleToolStripMenuItem.Text = "&Resample";
- //
- // interpolateToolStripMenuItem
- //
- this.interpolateToolStripMenuItem.Name = "interpolateToolStripMenuItem";
- this.interpolateToolStripMenuItem.Size = new System.Drawing.Size(157, 26);
- this.interpolateToolStripMenuItem.Text = "&Interpolate";
- this.interpolateToolStripMenuItem.Click += new System.EventHandler(this.interpolateToolStripMenuItem_Click);
- //
- // decimateToolStripMenuItem
- //
- this.decimateToolStripMenuItem.Name = "decimateToolStripMenuItem";
- this.decimateToolStripMenuItem.Size = new System.Drawing.Size(157, 26);
- this.decimateToolStripMenuItem.Text = "&Decimate";
- this.decimateToolStripMenuItem.Click += new System.EventHandler(this.decimateToolStripMenuItem_Click);
- //
- // customToolStripMenuItem
- //
- this.customToolStripMenuItem.Name = "customToolStripMenuItem";
- this.customToolStripMenuItem.Size = new System.Drawing.Size(157, 26);
- this.customToolStripMenuItem.Text = "&Custom";
- this.customToolStripMenuItem.Click += new System.EventHandler(this.customToolStripMenuItem_Click);
- //
- // resampleTextBox
- //
- this.resampleTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.resampleTextBox.Name = "resampleTextBox";
- this.resampleTextBox.Size = new System.Drawing.Size(50, 27);
- this.resampleTextBox.Text = "2";
- //
- // analyzeFilterButton
- //
- this.analyzeFilterButton.Location = new System.Drawing.Point(13, 338);
- this.analyzeFilterButton.Name = "analyzeFilterButton";
- this.analyzeFilterButton.Size = new System.Drawing.Size(189, 52);
- this.analyzeFilterButton.TabIndex = 6;
- this.analyzeFilterButton.Text = "Analyze filter";
- this.analyzeFilterButton.UseVisualStyleBackColor = true;
- this.analyzeFilterButton.Click += new System.EventHandler(this.buttonAnalyzeFilter_Click);
- //
- // filterTypesComboBox
- //
- this.filterTypesComboBox.FormattingEnabled = true;
- this.filterTypesComboBox.Items.AddRange(new object[] {
- "Custom IIR",
- "Custom FIR",
- "BiQuad LP",
- "BiQuad HP",
- "BiQuad BP",
- "BiQuad notch",
- "BiQuad allpass",
- "BiQuad peaking",
- "BiQuad lowshelf",
- "BiQuad highshelf",
- "One-pole LP",
- "One-pole HP",
- "Comb feed-forward",
- "Comb feed-back",
- "Moving average",
- "Moving average recursive",
- "Savitzky-Golay",
- "Pre-emphasis",
- "De-emphasis",
- "DC removal",
- "RASTA",
- "Butterworth",
- "Chebyshev-I",
- "Chebyshev-II",
- "Elliptic",
- "Bessel",
- "Thiran",
- "Equiripple LP",
- "Equiripple BS",
- "Custom LP/HP",
- "Custom BP/BR"});
- this.filterTypesComboBox.Location = new System.Drawing.Point(12, 50);
- this.filterTypesComboBox.Name = "filterTypesComboBox";
- this.filterTypesComboBox.Size = new System.Drawing.Size(190, 24);
- this.filterTypesComboBox.TabIndex = 7;
- this.filterTypesComboBox.Text = "Custom IIR";
- this.filterTypesComboBox.SelectedIndexChanged += new System.EventHandler(this.filterTypesComboBox_SelectedIndexChanged);
- //
- // filterParamsDataGrid
- //
- this.filterParamsDataGrid.AllowUserToAddRows = false;
- this.filterParamsDataGrid.AllowUserToDeleteRows = false;
- this.filterParamsDataGrid.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.filterParamsDataGrid.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.Param,
- this.Value});
- this.filterParamsDataGrid.Location = new System.Drawing.Point(13, 108);
- this.filterParamsDataGrid.Name = "filterParamsDataGrid";
- this.filterParamsDataGrid.RowTemplate.Height = 24;
- this.filterParamsDataGrid.Size = new System.Drawing.Size(189, 224);
- this.filterParamsDataGrid.TabIndex = 8;
- //
- // Param
- //
- this.Param.HeaderText = "Param";
- this.Param.Name = "Param";
- this.Param.ReadOnly = true;
- this.Param.Width = 80;
- //
- // Value
- //
- this.Value.HeaderText = "Value";
- this.Value.Name = "Value";
- this.Value.Width = 65;
- //
- // numeratorListBox
- //
- this.numeratorListBox.FormattingEnabled = true;
- this.numeratorListBox.ItemHeight = 16;
- this.numeratorListBox.Location = new System.Drawing.Point(797, 290);
- this.numeratorListBox.Name = "numeratorListBox";
- this.numeratorListBox.Size = new System.Drawing.Size(75, 100);
- this.numeratorListBox.TabIndex = 10;
- //
- // denominatorListBox
- //
- this.denominatorListBox.FormattingEnabled = true;
- this.denominatorListBox.ItemHeight = 16;
- this.denominatorListBox.Location = new System.Drawing.Point(913, 290);
- this.denominatorListBox.Name = "denominatorListBox";
- this.denominatorListBox.Size = new System.Drawing.Size(76, 100);
- this.denominatorListBox.TabIndex = 11;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(399, 31);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(143, 17);
- this.label1.TabIndex = 12;
- this.label1.Text = "Frequency Response";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(830, 31);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(99, 17);
- this.label2.TabIndex = 13;
- this.label2.Text = "Pole-Zero Plot";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(775, 290);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(16, 17);
- this.label3.TabIndex = 14;
- this.label3.Text = "b";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(891, 290);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(16, 17);
- this.label4.TabIndex = 15;
- this.label4.Text = "a";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(12, 407);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(100, 17);
- this.label5.TabIndex = 16;
- this.label5.Text = "Before filtering";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(511, 407);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(88, 17);
- this.label6.TabIndex = 17;
- this.label6.Text = "After filtering";
- //
- // playSignalButton
- //
- this.playSignalButton.Location = new System.Drawing.Point(118, 402);
- this.playSignalButton.Name = "playSignalButton";
- this.playSignalButton.Size = new System.Drawing.Size(59, 26);
- this.playSignalButton.TabIndex = 18;
- this.playSignalButton.Text = "Play";
- this.playSignalButton.UseVisualStyleBackColor = true;
- this.playSignalButton.Click += new System.EventHandler(this.playSignalButton_Click);
- //
- // playFilteredSignalButton
- //
- this.playFilteredSignalButton.Location = new System.Drawing.Point(605, 402);
- this.playFilteredSignalButton.Name = "playFilteredSignalButton";
- this.playFilteredSignalButton.Size = new System.Drawing.Size(59, 26);
- this.playFilteredSignalButton.TabIndex = 19;
- this.playFilteredSignalButton.Text = "Play";
- this.playFilteredSignalButton.UseVisualStyleBackColor = true;
- this.playFilteredSignalButton.Click += new System.EventHandler(this.playFilteredSignalButton_Click);
- //
- // orderNumeratorTextBox
- //
- this.orderNumeratorTextBox.Location = new System.Drawing.Point(36, 80);
- this.orderNumeratorTextBox.Name = "orderNumeratorTextBox";
- this.orderNumeratorTextBox.Size = new System.Drawing.Size(29, 22);
- this.orderNumeratorTextBox.TabIndex = 20;
- this.orderNumeratorTextBox.Text = "2";
- //
- // orderDenominatorTextBox
- //
- this.orderDenominatorTextBox.Location = new System.Drawing.Point(92, 80);
- this.orderDenominatorTextBox.Name = "orderDenominatorTextBox";
- this.orderDenominatorTextBox.Size = new System.Drawing.Size(30, 22);
- this.orderDenominatorTextBox.TabIndex = 21;
- this.orderDenominatorTextBox.Text = "2";
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(70, 81);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(16, 17);
- this.label7.TabIndex = 22;
- this.label7.Text = "a";
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(16, 81);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(16, 17);
- this.label8.TabIndex = 23;
- this.label8.Text = "b";
- //
- // changeOrderButton
- //
- this.changeOrderButton.Location = new System.Drawing.Point(135, 79);
- this.changeOrderButton.Name = "changeOrderButton";
- this.changeOrderButton.Size = new System.Drawing.Size(67, 23);
- this.changeOrderButton.TabIndex = 24;
- this.changeOrderButton.Text = "Change";
- this.changeOrderButton.UseVisualStyleBackColor = true;
- this.changeOrderButton.Click += new System.EventHandler(this.changeOrderButton_Click);
- //
- // phaseViewComboBox
- //
- this.phaseViewComboBox.FormattingEnabled = true;
- this.phaseViewComboBox.Items.AddRange(new object[] {
- "Phase",
- "Phase unwrapped",
- "Group delay",
- "Phase delay"});
- this.phaseViewComboBox.Location = new System.Drawing.Point(219, 217);
- this.phaseViewComboBox.Name = "phaseViewComboBox";
- this.phaseViewComboBox.Size = new System.Drawing.Size(538, 24);
- this.phaseViewComboBox.TabIndex = 25;
- this.phaseViewComboBox.Text = "Phase unwrapped";
- this.phaseViewComboBox.SelectedIndexChanged += new System.EventHandler(this.phaseViewComboBox_SelectedIndexChanged);
- //
- // spectrogramAfterFilteringPanel
- //
- this.spectrogramAfterFilteringPanel.AutoScroll = true;
- this.spectrogramAfterFilteringPanel.BackColor = System.Drawing.Color.White;
- this.spectrogramAfterFilteringPanel.ColorMapName = "magma";
- this.spectrogramAfterFilteringPanel.Location = new System.Drawing.Point(499, 566);
- this.spectrogramAfterFilteringPanel.Markline = null;
- this.spectrogramAfterFilteringPanel.MarklineThickness = 0;
- this.spectrogramAfterFilteringPanel.Name = "spectrogramAfterFilteringPanel";
- this.spectrogramAfterFilteringPanel.Size = new System.Drawing.Size(490, 149);
- this.spectrogramAfterFilteringPanel.Spectrogram = null;
- this.spectrogramAfterFilteringPanel.TabIndex = 9;
- //
- // signalAfterFilteringPanel
- //
- this.signalAfterFilteringPanel.AutoScroll = true;
- this.signalAfterFilteringPanel.BackColor = System.Drawing.SystemColors.Window;
- this.signalAfterFilteringPanel.ForeColor = System.Drawing.Color.Blue;
- this.signalAfterFilteringPanel.Gain = 1F;
- this.signalAfterFilteringPanel.Location = new System.Drawing.Point(499, 427);
- this.signalAfterFilteringPanel.Name = "signalAfterFilteringPanel";
- this.signalAfterFilteringPanel.PaddingX = 24;
- this.signalAfterFilteringPanel.PaddingY = 5;
- this.signalAfterFilteringPanel.Signal = null;
- this.signalAfterFilteringPanel.Size = new System.Drawing.Size(490, 133);
- this.signalAfterFilteringPanel.Stride = 256;
- this.signalAfterFilteringPanel.TabIndex = 4;
- //
- // spectrogramBeforeFilteringPanel
- //
- this.spectrogramBeforeFilteringPanel.AutoScroll = true;
- this.spectrogramBeforeFilteringPanel.BackColor = System.Drawing.Color.White;
- this.spectrogramBeforeFilteringPanel.ColorMapName = "magma";
- this.spectrogramBeforeFilteringPanel.Location = new System.Drawing.Point(13, 566);
- this.spectrogramBeforeFilteringPanel.Markline = null;
- this.spectrogramBeforeFilteringPanel.MarklineThickness = 0;
- this.spectrogramBeforeFilteringPanel.Name = "spectrogramBeforeFilteringPanel";
- this.spectrogramBeforeFilteringPanel.Size = new System.Drawing.Size(480, 148);
- this.spectrogramBeforeFilteringPanel.Spectrogram = null;
- this.spectrogramBeforeFilteringPanel.TabIndex = 4;
- //
- // signalBeforeFilteringPanel
- //
- this.signalBeforeFilteringPanel.AutoScroll = true;
- this.signalBeforeFilteringPanel.BackColor = System.Drawing.SystemColors.Window;
- this.signalBeforeFilteringPanel.ForeColor = System.Drawing.Color.Blue;
- this.signalBeforeFilteringPanel.Gain = 1F;
- this.signalBeforeFilteringPanel.Location = new System.Drawing.Point(13, 427);
- this.signalBeforeFilteringPanel.Name = "signalBeforeFilteringPanel";
- this.signalBeforeFilteringPanel.PaddingX = 24;
- this.signalBeforeFilteringPanel.PaddingY = 5;
- this.signalBeforeFilteringPanel.Signal = null;
- this.signalBeforeFilteringPanel.Size = new System.Drawing.Size(480, 133);
- this.signalBeforeFilteringPanel.Stride = 256;
- this.signalBeforeFilteringPanel.TabIndex = 3;
- //
- // poleZeroPanel
- //
- this.poleZeroPanel.AutoScroll = true;
- this.poleZeroPanel.BackColor = System.Drawing.SystemColors.Window;
- this.poleZeroPanel.Location = new System.Drawing.Point(772, 50);
- this.poleZeroPanel.Name = "poleZeroPanel";
- this.poleZeroPanel.Poles = null;
- this.poleZeroPanel.Size = new System.Drawing.Size(217, 202);
- this.poleZeroPanel.TabIndex = 2;
- this.poleZeroPanel.Zeros = null;
- //
- // phaseResponsePanel
- //
- this.phaseResponsePanel.AutoScroll = true;
- this.phaseResponsePanel.BackColor = System.Drawing.SystemColors.Window;
- this.phaseResponsePanel.ForeColor = System.Drawing.Color.Blue;
- this.phaseResponsePanel.Location = new System.Drawing.Point(219, 247);
- this.phaseResponsePanel.Name = "phaseResponsePanel";
- this.phaseResponsePanel.PaddingX = 30;
- this.phaseResponsePanel.PaddingY = 20;
- this.phaseResponsePanel.Size = new System.Drawing.Size(538, 143);
- this.phaseResponsePanel.Stride = 1;
- this.phaseResponsePanel.TabIndex = 1;
- this.phaseResponsePanel.Thickness = 1;
- //
- // magnitudeResponsePanel
- //
- this.magnitudeResponsePanel.AutoScroll = true;
- this.magnitudeResponsePanel.BackColor = System.Drawing.SystemColors.Window;
- this.magnitudeResponsePanel.ForeColor = System.Drawing.Color.Blue;
- this.magnitudeResponsePanel.Location = new System.Drawing.Point(219, 50);
- this.magnitudeResponsePanel.Name = "magnitudeResponsePanel";
- this.magnitudeResponsePanel.PaddingX = 30;
- this.magnitudeResponsePanel.PaddingY = 20;
- this.magnitudeResponsePanel.Size = new System.Drawing.Size(538, 149);
- this.magnitudeResponsePanel.Stride = 1;
- this.magnitudeResponsePanel.TabIndex = 0;
- this.magnitudeResponsePanel.Thickness = 1;
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Location = new System.Drawing.Point(773, 257);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(131, 17);
- this.label9.TabIndex = 26;
- this.label9.Text = "Zero/pole iterations";
- //
- // zpIterationsTextBox
- //
- this.zpIterationsTextBox.Location = new System.Drawing.Point(910, 256);
- this.zpIterationsTextBox.Name = "zpIterationsTextBox";
- this.zpIterationsTextBox.Size = new System.Drawing.Size(79, 22);
- this.zpIterationsTextBox.TabIndex = 27;
- //
- // FiltersForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1001, 729);
- this.Controls.Add(this.zpIterationsTextBox);
- this.Controls.Add(this.label9);
- this.Controls.Add(this.phaseViewComboBox);
- this.Controls.Add(this.changeOrderButton);
- this.Controls.Add(this.label8);
- this.Controls.Add(this.label7);
- this.Controls.Add(this.orderDenominatorTextBox);
- this.Controls.Add(this.orderNumeratorTextBox);
- this.Controls.Add(this.playFilteredSignalButton);
- this.Controls.Add(this.playSignalButton);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.analyzeFilterButton);
- this.Controls.Add(this.denominatorListBox);
- this.Controls.Add(this.numeratorListBox);
- this.Controls.Add(this.spectrogramAfterFilteringPanel);
- this.Controls.Add(this.signalAfterFilteringPanel);
- this.Controls.Add(this.filterParamsDataGrid);
- this.Controls.Add(this.filterTypesComboBox);
- this.Controls.Add(this.spectrogramBeforeFilteringPanel);
- this.Controls.Add(this.signalBeforeFilteringPanel);
- this.Controls.Add(this.poleZeroPanel);
- this.Controls.Add(this.phaseResponsePanel);
- this.Controls.Add(this.magnitudeResponsePanel);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "FiltersForm";
- this.Text = "FiltersForm";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.filterParamsDataGrid)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private LinePlot magnitudeResponsePanel;
- private LinePlot phaseResponsePanel;
- private PoleZeroPlot poleZeroPanel;
- private SignalPlot signalBeforeFilteringPanel;
- private SpectrogramPlot spectrogramBeforeFilteringPanel;
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem saveAsToolStripMenuItem;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
- private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
- private System.Windows.Forms.Button analyzeFilterButton;
- private System.Windows.Forms.ComboBox filterTypesComboBox;
- private System.Windows.Forms.DataGridView filterParamsDataGrid;
- private SignalPlot signalAfterFilteringPanel;
- private SpectrogramPlot spectrogramAfterFilteringPanel;
- private System.Windows.Forms.DataGridViewTextBoxColumn Param;
- private System.Windows.Forms.DataGridViewTextBoxColumn Value;
- private System.Windows.Forms.ListBox numeratorListBox;
- private System.Windows.Forms.ListBox denominatorListBox;
- private System.Windows.Forms.ToolStripMenuItem filterToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem overlapAddToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem overlapSaveToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem differenceEquationToolStripMenuItem;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Button playSignalButton;
- private System.Windows.Forms.Button playFilteredSignalButton;
- private System.Windows.Forms.TextBox orderNumeratorTextBox;
- private System.Windows.Forms.TextBox orderDenominatorTextBox;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.Button changeOrderButton;
- private System.Windows.Forms.ToolStripMenuItem resampleToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem interpolateToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem decimateToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem customToolStripMenuItem;
- private System.Windows.Forms.ToolStripTextBox resampleTextBox;
- private System.Windows.Forms.ComboBox phaseViewComboBox;
- private System.Windows.Forms.ToolStripMenuItem framebyFrameToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem autoToolStripMenuItem;
- private System.Windows.Forms.Label label9;
- private System.Windows.Forms.TextBox zpIterationsTextBox;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/FiltersForm.cs b/NWaves.DemoForms/FiltersForm.cs
deleted file mode 100644
index 74389a9..0000000
--- a/NWaves.DemoForms/FiltersForm.cs
+++ /dev/null
@@ -1,942 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.IO;
-using System.Windows.Forms;
-using NWaves.Signals;
-using NWaves.Audio;
-using NWaves.Filters;
-using NWaves.Filters.Base;
-using NWaves.Filters.BiQuad;
-using NWaves.Filters.Fda;
-using NWaves.Operations;
-using NWaves.Transforms;
-using NWaves.Utils;
-using HighPassFilter = NWaves.Filters.BiQuad.HighPassFilter;
-using LowPassFilter = NWaves.Filters.BiQuad.LowPassFilter;
-using System.Linq;
-
-namespace NWaves.DemoForms
-{
- public partial class FiltersForm : Form
- {
- private LtiFilter _filter;
-
- private DiscreteSignal _signal;
- private DiscreteSignal _filteredSignal;
-
- private readonly Stft _stft = new Stft(256);
-
- private string _waveFileName;
- private short _bitDepth;
-
- private readonly MemoryStreamPlayer _player = new MemoryStreamPlayer();
-
-
- public FiltersForm()
- {
- InitializeComponent();
-
- magnitudeResponsePanel.Stride = 2;
- magnitudeResponsePanel.Thickness = 2;
- magnitudeResponsePanel.ForeColor = Color.SeaGreen;
- phaseResponsePanel.Stride = 1;
- phaseResponsePanel.Thickness = 2;
- phaseResponsePanel.ForeColor = Color.SeaGreen;
-
- signalBeforeFilteringPanel.Gain = 80;
- signalAfterFilteringPanel.Gain = 80;
-
- zpIterationsTextBox.Text = MathUtils.PolyRootsIterations.ToString();
- }
-
- private void buttonAnalyzeFilter_Click(object sender, EventArgs e)
- {
- Cursor.Current = Cursors.WaitCursor;
-
- switch (filterTypesComboBox.Text)
- {
- case "Custom IIR":
- AnalyzeCustomIirFilter();
- break;
- case "Custom FIR":
- AnalyzeCustomFirFilter();
- break;
- case "BiQuad LP":
- case "BiQuad HP":
- case "BiQuad BP":
- case "BiQuad notch":
- case "BiQuad allpass":
- case "BiQuad peaking":
- case "BiQuad lowshelf":
- case "BiQuad highshelf":
- AnalyzeBiQuadFilter(filterTypesComboBox.Text);
- break;
- case "One-pole LP":
- _filter = new Filters.OnePole.LowPassFilter(0.25);
- break;
- case "One-pole HP":
- _filter = new Filters.OnePole.HighPassFilter(0.25);
- break;
- case "Comb feed-forward":
- _filter = new CombFeedforwardFilter(500);
- break;
- case "Comb feed-back":
- _filter = new CombFeedbackFilter(1800);
- break;
- case "Moving average":
- AnalyzeMovingAverageFilter();
- break;
- case "Moving average recursive":
- AnalyzeRecursiveMovingAverageFilter();
- break;
- case "Savitzky-Golay":
- AnalyzeSavitzkyGolayFilter();
- break;
- case "Pre-emphasis":
- AnalyzePreemphasisFilter();
- break;
- case "De-emphasis":
- _filter = new DeEmphasisFilter();
- break;
- case "DC removal":
- _filter = new DcRemovalFilter();
- break;
- case "RASTA":
- _filter = new RastaFilter();
- break;
- case "Butterworth":
- AnalyzeButterworthFilter();
- break;
- case "Elliptic":
- AnalyzeEllipticFilter();
- break;
- case "Chebyshev-I":
- AnalyzeChebyshevIFilter();
- break;
- case "Chebyshev-II":
- AnalyzeChebyshevIIFilter();
- break;
- case "Bessel":
- AnalyzeBesselFilter();
- break;
- case "Thiran":
- AnalyzeThiranFilter();
- break;
- case "Equiripple LP":
- AnalyzeEquirippleLpFilter();
- break;
- case "Equiripple BS":
- AnalyzeEquirippleBsFilter();
- break;
- case "Custom LP/HP":
- AnalyzeCustomLpFilter();
- break;
- case "Custom BP/BR":
- AnalyzeCustomBandpassFilter();
- break;
- }
-
- // we can load TF from csv file:
-
- //using (var csv = new FileStream("fir.csv", FileMode.Open))
- //{
- // _filter = new FirFilter(TransferFunction.FromCsv(csv));
- //}
-
- var tf = _filter.Tf;
-
- // we can save TF to csv file:
-
- //using (var csv = new FileStream("fir.csv", FileMode.Create))
- //{
- // tf.ToCsv(csv);
- //}
-
- magnitudeResponsePanel.Line = tf.FrequencyResponse().Magnitude.ToFloats();
- UpdatePhaseResponse();
-
- // adjust this if you need finer precision:
- tf.CalculateZpIterations = int.Parse(zpIterationsTextBox.Text);
-
- if (tf.Numerator.Length + tf.Denominator.Length < 70)
- {
- poleZeroPanel.Zeros = tf.Zeros;
- poleZeroPanel.Poles = tf.Poles;
- }
-
- numeratorListBox.DataSource = tf.Numerator;
- denominatorListBox.DataSource = tf.Denominator;
-
- Cursor.Current = Cursors.Default;
- }
-
- private void filterTypesComboBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- switch (filterTypesComboBox.Text)
- {
- case "Custom IIR":
- orderNumeratorTextBox.Enabled = true;
- orderDenominatorTextBox.Enabled = true;
- changeOrderButton.Enabled = true;
- break;
- case "Custom FIR":
- orderNumeratorTextBox.Enabled = true;
- orderDenominatorTextBox.Enabled = false;
- changeOrderButton.Enabled = true;
- orderDenominatorTextBox.Text = "0";
- break;
- default:
- orderNumeratorTextBox.Enabled = false;
- orderDenominatorTextBox.Enabled = false;
- changeOrderButton.Enabled = false;
- break;
- }
-
- filterParamsDataGrid.RowCount = 0;
- }
-
- private void phaseViewComboBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- UpdatePhaseResponse();
- }
-
- private void changeOrderButton_Click(object sender, EventArgs e)
- {
- var b = int.Parse(orderNumeratorTextBox.Text) + 1;
- var a = int.Parse(orderDenominatorTextBox.Text) + 1;
-
- filterParamsDataGrid.RowCount = b + a;
-
- var pos = 0;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "b0";
- filterParamsDataGrid.Rows[0].Cells[1].Value = 1;
- pos++;
- for (var i = 1; i < b; i++, pos++)
- {
- filterParamsDataGrid.Rows[pos].Cells[0].Value = "b" + i;
- filterParamsDataGrid.Rows[pos].Cells[1].Value = 0;
- }
- filterParamsDataGrid.Rows[pos].Cells[0].Value = "a0";
- filterParamsDataGrid.Rows[pos].Cells[1].Value = 1;
- pos++;
- for (var i = 1; i < a; i++, pos++)
- {
- filterParamsDataGrid.Rows[pos].Cells[0].Value = "a" + i;
- filterParamsDataGrid.Rows[pos].Cells[1].Value = 0;
- }
- }
-
- private void UpdatePhaseResponse()
- {
- var tf = _filter.Tf;
-
- var fr = tf.FrequencyResponse();
-
- switch (phaseViewComboBox.Text)
- {
- case "Phase unwrapped":
- phaseResponsePanel.Line = fr.PhaseUnwrapped.ToFloats();
- break;
- case "Group delay":
- phaseResponsePanel.Line = tf.GroupDelay(256).ToFloats();
- // or like this:
- // fr.GroupDelay.ToFloats();
- break;
- case "Phase delay":
- phaseResponsePanel.Line = tf.PhaseDelay(256).ToFloats();
- // or like this:
- // fr.PhaseDelay.ToFloats();
- break;
- default:
- phaseResponsePanel.Line = fr.Phase.ToFloats();
- break;
- }
- }
-
- #region filter analysis
-
- private void AnalyzeCustomIirFilter()
- {
- var b = new List();
- var a = new List();
-
- if (filterParamsDataGrid.RowCount == 0)
- {
- b.AddRange(new[] { 1, -0.4, 0.6 });
- a.AddRange(new[] { 1, 0.4, 0.2 });
- }
- else
- {
- for (var i = 0; i < filterParamsDataGrid.RowCount; i++)
- {
- var param = filterParamsDataGrid.Rows[i].Cells[0].Value;
- if (param.ToString().StartsWith("b"))
- {
- b.Add(Convert.ToSingle(filterParamsDataGrid.Rows[i].Cells[1].Value));
- }
- else
- {
- a.Add(Convert.ToSingle(filterParamsDataGrid.Rows[i].Cells[1].Value));
- }
- }
- }
-
- // lose some precision:
-
- _filter = new IirFilter(b, a);
-
- // double precision:
-
- // _filter = new IirFilter(new TransferFunction(b.ToArray(), a.ToArray()));
-
- filterParamsDataGrid.RowCount = a.Count + b.Count;
- var pos = 0;
- for (var i = 0; i < b.Count; i++, pos++)
- {
- filterParamsDataGrid.Rows[pos].Cells[0].Value = "b" + i;
- filterParamsDataGrid.Rows[pos].Cells[1].Value = b[i];
- }
- for (var i = 0; i < a.Count; i++, pos++)
- {
- filterParamsDataGrid.Rows[pos].Cells[0].Value = "a" + i;
- filterParamsDataGrid.Rows[pos].Cells[1].Value = a[i];
- }
- }
-
- private void AnalyzeCustomFirFilter()
- {
- var b = new List();
-
- var size = filterParamsDataGrid.RowCount;
- if (size == 0)
- {
- b.AddRange(new []{ 1, 0.4, -0.6 });
- }
- else
- {
- for (var i = 0; i < filterParamsDataGrid.RowCount; i++)
- {
- var param = filterParamsDataGrid.Rows[i].Cells[0].Value;
- if (param.ToString().StartsWith("b"))
- {
- b.Add(Convert.ToDouble(filterParamsDataGrid.Rows[i].Cells[1].Value));
- }
- }
- }
-
- _filter = new FirFilter(b);
-
- filterParamsDataGrid.RowCount = b.Count + 1;
- for (var i = 0; i < b.Count; i++)
- {
- filterParamsDataGrid.Rows[i].Cells[0].Value = "b" + i;
- filterParamsDataGrid.Rows[i].Cells[1].Value = b[i];
- }
- filterParamsDataGrid.Rows[b.Count].Cells[0].Value = "a0";
- filterParamsDataGrid.Rows[b.Count].Cells[1].Value = 1.0;
- }
-
- private void AnalyzeBiQuadFilter(string filterType)
- {
- var freq = 0.1;
- var q = 1.0;
- var gain = 9.0;
-
- for (var i = 0; i < filterParamsDataGrid.RowCount; i++)
- {
- if (filterParamsDataGrid.Rows[i].Cells[0].Value.ToString() == "freq")
- {
- freq = Convert.ToDouble(filterParamsDataGrid.Rows[i].Cells[1].Value);
- }
- if (filterParamsDataGrid.Rows[i].Cells[0].Value.ToString() == "q")
- {
- q = Convert.ToDouble(filterParamsDataGrid.Rows[i].Cells[1].Value);
- }
- if (filterParamsDataGrid.Rows[i].Cells[0].Value.ToString() == "gain")
- {
- gain = Convert.ToDouble(filterParamsDataGrid.Rows[i].Cells[1].Value);
- }
- }
-
- string[] parameters = { "freq", "q" };
- double[] values = { freq, q };
-
- switch (filterType)
- {
- case "BiQuad LP":
- _filter = new LowPassFilter(freq, q);
- break;
- case "BiQuad HP":
- _filter = new HighPassFilter(freq, q);
- break;
- case "BiQuad BP":
- _filter = new Filters.BiQuad.BandPassFilter(freq, q);
- break;
- case "BiQuad notch":
- _filter = new NotchFilter(freq, q);
- break;
- case "BiQuad allpass":
- _filter = new AllPassFilter(freq, q);
- break;
- case "BiQuad peaking":
- _filter = new PeakFilter(freq, q, gain);
- parameters = new[] { "freq", "q", "gain" };
- values = new[] { freq, q, gain };
- break;
- case "BiQuad lowshelf":
- _filter = new LowShelfFilter(freq, q, gain);
- parameters = new[] { "freq", "q", "gain" };
- values = new[] { freq, q, gain };
- break;
- case "BiQuad highshelf":
- _filter = new HighShelfFilter(freq, q, gain);
- parameters = new[] { "freq", "q", "gain" };
- values = new[] { freq, q, gain };
- break;
- }
-
- filterParamsDataGrid.RowCount = parameters.Length;
- for (var i = 0; i < parameters.Length; i++)
- {
- filterParamsDataGrid.Rows[i].Cells[0].Value = parameters[i];
- filterParamsDataGrid.Rows[i].Cells[1].Value = values[i];
- }
- orderNumeratorTextBox.Text = "2";
- orderDenominatorTextBox.Text = "2";
- }
-
- private void AnalyzeMovingAverageFilter()
- {
- var size = 3;
- if (filterParamsDataGrid.RowCount > 0)
- {
- size = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (size - 1).ToString();
- orderDenominatorTextBox.Text = "0";
-
- _filter = new MovingAverageFilter(size);
-
- filterParamsDataGrid.RowCount = 1;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "size";
- filterParamsDataGrid.Rows[0].Cells[1].Value = size;
- }
-
- private void AnalyzeRecursiveMovingAverageFilter()
- {
- var size = 3;
- if (filterParamsDataGrid.RowCount > 0)
- {
- size = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (size - 1).ToString();
- orderDenominatorTextBox.Text = "0";
-
- _filter = new MovingAverageRecursiveFilter(size);
-
- filterParamsDataGrid.RowCount = 1;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "size";
- filterParamsDataGrid.Rows[0].Cells[1].Value = size;
- }
-
- private void AnalyzeSavitzkyGolayFilter()
- {
- var size = 9;
- if (filterParamsDataGrid.RowCount > 0)
- {
- size = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (size - 1).ToString();
- orderDenominatorTextBox.Text = "0";
-
- _filter = new SavitzkyGolayFilter(size);
-
- filterParamsDataGrid.RowCount = 1;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "size";
- filterParamsDataGrid.Rows[0].Cells[1].Value = size;
- }
-
- private void AnalyzePreemphasisFilter()
- {
- var pre = 0.95;
- if (filterParamsDataGrid.RowCount > 0)
- {
- pre = Convert.ToDouble(filterParamsDataGrid.Rows[0].Cells[1].Value);
- }
-
- _filter = new PreEmphasisFilter(pre);
-
- filterParamsDataGrid.RowCount = 1;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "a";
- filterParamsDataGrid.Rows[0].Cells[1].Value = pre.ToString("F2");
- orderNumeratorTextBox.Text = "1";
- orderDenominatorTextBox.Text = "0";
- }
-
- private void AnalyzeButterworthFilter()
- {
- var order = 5;
- var freq = 0.1;
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- freq = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- _filter = new Filters.Butterworth.BandPassFilter(freq, 0.4, order);
-
- filterParamsDataGrid.RowCount = 2;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "freq";
- filterParamsDataGrid.Rows[1].Cells[1].Value = freq;
- }
-
- private void AnalyzeEllipticFilter()
- {
- var order = 4;
- var freq = 0.15;
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- freq = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- // example how to convert linear scale specifications to decibel scale:
-
- var deltaPass = 0.96;
- var deltaStop = 0.04;
-
- var ripplePassDb = Utils.Scale.ToDecibel(1 / deltaPass);
- var attenuateDb = Utils.Scale.ToDecibel(1 / deltaStop);
-
- _filter = new Filters.Elliptic.LowPassFilter(freq, order, ripplePassDb, attenuateDb);
-
- filterParamsDataGrid.RowCount = 2;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "freq";
- filterParamsDataGrid.Rows[1].Cells[1].Value = freq;
- }
-
- private void AnalyzeChebyshevIFilter()
- {
- var order = 6;
- var freq = 0.2;
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- freq = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- _filter = new Filters.ChebyshevI.HighPassFilter(freq, order);
-
- filterParamsDataGrid.RowCount = 2;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "freq";
- filterParamsDataGrid.Rows[1].Cells[1].Value = freq;
- }
-
- private void AnalyzeChebyshevIIFilter()
- {
- var order = 4;
- var freq = 0.25;
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- freq = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- _filter = new Filters.ChebyshevII.BandStopFilter(freq, 0.4, order);
-
- filterParamsDataGrid.RowCount = 2;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "freq";
- filterParamsDataGrid.Rows[1].Cells[1].Value = freq;
- }
-
- private void AnalyzeBesselFilter()
- {
- var order = 4;
- var freq = 0.15;
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- freq = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- _filter = new Filters.Bessel.LowPassFilter(freq, order);
-
- filterParamsDataGrid.RowCount = 2;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "freq";
- filterParamsDataGrid.Rows[1].Cells[1].Value = freq;
- }
-
- private void AnalyzeThiranFilter()
- {
- var order = 10;
- var delta = 10.3;
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- delta = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- _filter = new ThiranFilter(order, order + delta);
-
- filterParamsDataGrid.RowCount = 2;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "delta";
- filterParamsDataGrid.Rows[1].Cells[1].Value = delta;
- }
-
- private void AnalyzeEquirippleLpFilter()
- {
- var order = 47;
- var fp = 0.15;
- var fa = 0.18;
- var ripplePass = 1.0; // dB
- var rippleStop = 42.0; // dB
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- fp = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- fa = Convert.ToDouble(filterParamsDataGrid.Rows[2].Cells[1].Value);
- ripplePass = Convert.ToDouble(filterParamsDataGrid.Rows[3].Cells[1].Value);
- rippleStop = Convert.ToDouble(filterParamsDataGrid.Rows[4].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- var wp = Remez.DbToPassbandWeight(ripplePass);
- var wa = Remez.DbToStopbandWeight(rippleStop);
-
- _filter = new FirFilter(DesignFilter.FirEquirippleLp(order, fp, fa, wp, wa));
-
- filterParamsDataGrid.RowCount = 5;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "fp";
- filterParamsDataGrid.Rows[1].Cells[1].Value = fp;
- filterParamsDataGrid.Rows[2].Cells[0].Value = "fa";
- filterParamsDataGrid.Rows[2].Cells[1].Value = fa;
- filterParamsDataGrid.Rows[3].Cells[0].Value = "rp";
- filterParamsDataGrid.Rows[3].Cells[1].Value = ripplePass;
- filterParamsDataGrid.Rows[4].Cells[0].Value = "rs";
- filterParamsDataGrid.Rows[4].Cells[1].Value = rippleStop;
- }
-
- private void AnalyzeEquirippleBsFilter()
- {
- var order = 51;
- var fp1 = 0.19;
- var fa1 = 0.21;
- var fa2 = 0.39;
- var fp2 = 0.41;
- var ripplePass1 = 1.0;
- var rippleStop = 24.0;
- var ripplePass2 = 3.0;
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- fp1 = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- fa1 = Convert.ToDouble(filterParamsDataGrid.Rows[2].Cells[1].Value);
- fa2 = Convert.ToDouble(filterParamsDataGrid.Rows[3].Cells[1].Value);
- fp2 = Convert.ToDouble(filterParamsDataGrid.Rows[4].Cells[1].Value);
- ripplePass1 = Convert.ToDouble(filterParamsDataGrid.Rows[5].Cells[1].Value);
- rippleStop = Convert.ToDouble(filterParamsDataGrid.Rows[6].Cells[1].Value);
- ripplePass2 = Convert.ToDouble(filterParamsDataGrid.Rows[7].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- var freqs = new[] { 0, fp1, fa1, fa2, fp2, 0.5 };
-
- var weights = new[]
- {
- Remez.DbToPassbandWeight(ripplePass1),
- Remez.DbToStopbandWeight(rippleStop),
- Remez.DbToPassbandWeight(ripplePass2),
- };
-
- var remez = new Remez(order, freqs, new double[] { 1, 0, 1 }, weights);
-
- _filter = new FirFilter(remez.Design());
-
- var extrema = string.Join("\t", Enumerable.Range(0, remez.K).Select(e => remez.ExtremalFrequencies[e].ToString("F5")));
- var message = $"Iterations: {remez.Iterations}\n\nEstimated order: {Remez.EstimateOrder(freqs, weights)}\n\nExtrema:\n{extrema}";
- MessageBox.Show(message);
-
- filterParamsDataGrid.RowCount = 8;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "fp1";
- filterParamsDataGrid.Rows[1].Cells[1].Value = fp1;
- filterParamsDataGrid.Rows[2].Cells[0].Value = "fa1";
- filterParamsDataGrid.Rows[2].Cells[1].Value = fa1;
- filterParamsDataGrid.Rows[3].Cells[0].Value = "fa2";
- filterParamsDataGrid.Rows[3].Cells[1].Value = fa2;
- filterParamsDataGrid.Rows[4].Cells[0].Value = "fp2";
- filterParamsDataGrid.Rows[4].Cells[1].Value = fp2;
- filterParamsDataGrid.Rows[5].Cells[0].Value = "rp1";
- filterParamsDataGrid.Rows[5].Cells[1].Value = ripplePass1;
- filterParamsDataGrid.Rows[6].Cells[0].Value = "rs";
- filterParamsDataGrid.Rows[6].Cells[1].Value = rippleStop;
- filterParamsDataGrid.Rows[7].Cells[0].Value = "rp2";
- filterParamsDataGrid.Rows[7].Cells[1].Value = ripplePass2;
- }
-
- private void AnalyzeCustomLpFilter()
- {
- var order = 23;
- var freq = 0.22;
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- freq = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- _filter = new FirFilter(DesignFilter.FirWinLp(order, freq));
-
- // for double precision and FDA:
-
- //var tf = new TransferFunction(DesignFilter.FirWinLp(order, freq));
- //_filter = new FirFilter(tf);
-
- filterParamsDataGrid.RowCount = 2;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "freq";
- filterParamsDataGrid.Rows[1].Cells[1].Value = freq;
- }
-
- private void AnalyzeCustomBandpassFilter()
- {
- var order = 231;
- var freq1 = 0.06;
- var freq2 = 0.2;
-
- if (filterParamsDataGrid.RowCount > 0)
- {
- order = Convert.ToInt32(filterParamsDataGrid.Rows[0].Cells[1].Value);
- freq1 = Convert.ToDouble(filterParamsDataGrid.Rows[1].Cells[1].Value);
- freq2 = Convert.ToDouble(filterParamsDataGrid.Rows[2].Cells[1].Value);
- }
-
- orderNumeratorTextBox.Text = (order - 1).ToString();
- orderDenominatorTextBox.Text = (order - 1).ToString();
-
- //_filter = new FirFilter(DesignFilter.FirWinBp(order, freq1, freq2));
-
- // for double precision and FDA:
-
- var tf = new TransferFunction(DesignFilter.FirWinBp(order, freq1, freq2));
- _filter = new FirFilter(tf);
-
- filterParamsDataGrid.RowCount = 3;
- filterParamsDataGrid.Rows[0].Cells[0].Value = "order";
- filterParamsDataGrid.Rows[0].Cells[1].Value = order;
- filterParamsDataGrid.Rows[1].Cells[0].Value = "freq1";
- filterParamsDataGrid.Rows[1].Cells[1].Value = freq1;
- filterParamsDataGrid.Rows[2].Cells[0].Value = "freq2";
- filterParamsDataGrid.Rows[2].Cells[1].Value = freq2;
- }
-
- #endregion
-
- #region filtering
-
- private void autoToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_signal == null) return;
-
- _filteredSignal = _filter.ApplyTo(_signal);
- signalAfterFilteringPanel.Signal = _filteredSignal;
- spectrogramAfterFilteringPanel.Spectrogram = _stft.Spectrogram(_filteredSignal);
- }
-
- private void overlapAddToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_signal == null) return;
-
- _filteredSignal = _filter.ApplyTo(_signal, FilteringMethod.OverlapAdd);
- signalAfterFilteringPanel.Signal = _filteredSignal;
- spectrogramAfterFilteringPanel.Spectrogram = _stft.Spectrogram(_filteredSignal);
- }
-
- private void overlapSaveToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_signal == null) return;
-
- _filteredSignal = _filter.ApplyTo(_signal, FilteringMethod.OverlapSave);
- signalAfterFilteringPanel.Signal = _filteredSignal;
- spectrogramAfterFilteringPanel.Spectrogram = _stft.Spectrogram(_filteredSignal);
- }
-
- private void differenceEquationToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_signal == null) return;
-
- _filteredSignal = _filter.ApplyTo(_signal, FilteringMethod.DifferenceEquation);
- signalAfterFilteringPanel.Signal = _filteredSignal;
- spectrogramAfterFilteringPanel.Spectrogram = _stft.Spectrogram(_filteredSignal);
- }
-
- private void framebyFrameToolStripMenuItem_Click(object sender, EventArgs e)
- {
-#if DEBUG
- if (_signal == null) return;
-
- _filter.Reset();
-
- _filteredSignal = _filter.ProcessChunks(_signal);
- //_filteredSignal = _filter.ProcessChunks(_signal, method: FilteringMethod.OverlapAdd);
- signalAfterFilteringPanel.Signal = _filteredSignal;
- spectrogramAfterFilteringPanel.Spectrogram = _stft.Spectrogram(_filteredSignal);
-#endif
- }
-
-#endregion
-
-#region resampling
-
- private void interpolateToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_signal == null) return;
-
- var factor = int.Parse(resampleTextBox.Text);
-
- _filteredSignal = Operation.Interpolate(_signal, factor);
- signalAfterFilteringPanel.Signal = _filteredSignal;
- spectrogramAfterFilteringPanel.Spectrogram = _stft.Spectrogram(_filteredSignal);
- }
-
- private void decimateToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_signal == null) return;
-
- var factor = int.Parse(resampleTextBox.Text);
-
- _filteredSignal = Operation.Decimate(_signal, factor);
- signalAfterFilteringPanel.Signal = _filteredSignal;
- spectrogramAfterFilteringPanel.Spectrogram = _stft.Spectrogram(_filteredSignal);
- }
-
- private void customToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_signal == null) return;
-
- Cursor.Current = Cursors.WaitCursor;
-
- var rate = int.Parse(resampleTextBox.Text);
-
- _filteredSignal = Operation.Resample(_signal, rate);
- signalAfterFilteringPanel.Signal = _filteredSignal;
- spectrogramAfterFilteringPanel.Spectrogram = _stft.Spectrogram(_filteredSignal);
-
- Cursor.Current = Cursors.Default;
- }
-
-#endregion
-
-#region File menu
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- _waveFileName = ofd.FileName;
-
- using (var stream = new FileStream(_waveFileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _bitDepth = waveFile.WaveFmt.BitsPerSample;
- _signal = waveFile[Channels.Left];
- }
-
- signalBeforeFilteringPanel.Signal = _signal;
- spectrogramBeforeFilteringPanel.Spectrogram = _stft.Spectrogram(_signal);
- }
-
- private void saveAsToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var sfd = new SaveFileDialog();
- if (sfd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(sfd.FileName, FileMode.Create))
- {
- var waveFile = new WaveFile(_filteredSignal, _bitDepth);
- waveFile.SaveTo(stream);
- }
- }
-
- private void exitToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Close();
- }
-
-#endregion
-
-#region playback
-
- private async void playSignalButton_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_waveFileName);
- }
-
- private async void playFilteredSignalButton_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_filteredSignal, _bitDepth);
- }
-
-#endregion
- }
-}
diff --git a/NWaves.DemoForms/FiltersForm.resx b/NWaves.DemoForms/FiltersForm.resx
deleted file mode 100644
index 152b330..0000000
--- a/NWaves.DemoForms/FiltersForm.resx
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
- True
-
-
- True
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/HpssForm.Designer.cs b/NWaves.DemoForms/HpssForm.Designer.cs
deleted file mode 100644
index 9fb9581..0000000
--- a/NWaves.DemoForms/HpssForm.Designer.cs
+++ /dev/null
@@ -1,295 +0,0 @@
-namespace NWaves.DemoForms
-{
- partial class HpssForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.fftSizeTextBox = new System.Windows.Forms.TextBox();
- this.hopSizeTextBox = new System.Windows.Forms.TextBox();
- this.harmonicWindowTextBox = new System.Windows.Forms.TextBox();
- this.percussiveWindowTextBox = new System.Windows.Forms.TextBox();
- this.maskingComboBox = new System.Windows.Forms.ComboBox();
- this.evaluateButton = new System.Windows.Forms.Button();
- this.playButton1 = new System.Windows.Forms.Button();
- this.playButton2 = new System.Windows.Forms.Button();
- this.playButton3 = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.spectrogramPlot3 = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.spectrogramPlot2 = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.spectrogramPlot1 = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.menuStrip1.SuspendLayout();
- this.SuspendLayout();
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1245, 28);
- this.menuStrip1.TabIndex = 0;
- this.menuStrip1.Text = "menuStrip1";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(66, 24);
- this.openToolStripMenuItem.Text = "&Open...";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // fftSizeTextBox
- //
- this.fftSizeTextBox.Location = new System.Drawing.Point(13, 61);
- this.fftSizeTextBox.Name = "fftSizeTextBox";
- this.fftSizeTextBox.Size = new System.Drawing.Size(121, 22);
- this.fftSizeTextBox.TabIndex = 4;
- this.fftSizeTextBox.Text = "2048";
- //
- // hopSizeTextBox
- //
- this.hopSizeTextBox.Location = new System.Drawing.Point(12, 109);
- this.hopSizeTextBox.Name = "hopSizeTextBox";
- this.hopSizeTextBox.Size = new System.Drawing.Size(122, 22);
- this.hopSizeTextBox.TabIndex = 5;
- this.hopSizeTextBox.Text = "512";
- //
- // harmonicWindowTextBox
- //
- this.harmonicWindowTextBox.Location = new System.Drawing.Point(13, 160);
- this.harmonicWindowTextBox.Name = "harmonicWindowTextBox";
- this.harmonicWindowTextBox.Size = new System.Drawing.Size(121, 22);
- this.harmonicWindowTextBox.TabIndex = 6;
- this.harmonicWindowTextBox.Text = "17";
- //
- // percussiveWindowTextBox
- //
- this.percussiveWindowTextBox.Location = new System.Drawing.Point(13, 211);
- this.percussiveWindowTextBox.Name = "percussiveWindowTextBox";
- this.percussiveWindowTextBox.Size = new System.Drawing.Size(121, 22);
- this.percussiveWindowTextBox.TabIndex = 7;
- this.percussiveWindowTextBox.Text = "17";
- //
- // maskingComboBox
- //
- this.maskingComboBox.FormattingEnabled = true;
- this.maskingComboBox.Items.AddRange(new object[] {
- "Binary mask",
- "Wiener order 1",
- "Wiener order 2"});
- this.maskingComboBox.Location = new System.Drawing.Point(13, 261);
- this.maskingComboBox.Name = "maskingComboBox";
- this.maskingComboBox.Size = new System.Drawing.Size(121, 24);
- this.maskingComboBox.TabIndex = 8;
- this.maskingComboBox.Text = "Binary mask";
- //
- // evaluateButton
- //
- this.evaluateButton.Location = new System.Drawing.Point(13, 321);
- this.evaluateButton.Name = "evaluateButton";
- this.evaluateButton.Size = new System.Drawing.Size(121, 42);
- this.evaluateButton.TabIndex = 9;
- this.evaluateButton.Text = "Evaluate";
- this.evaluateButton.UseVisualStyleBackColor = true;
- this.evaluateButton.Click += new System.EventHandler(this.evaluateButton_Click);
- //
- // playButton1
- //
- this.playButton1.Location = new System.Drawing.Point(164, 31);
- this.playButton1.Name = "playButton1";
- this.playButton1.Size = new System.Drawing.Size(64, 32);
- this.playButton1.TabIndex = 10;
- this.playButton1.Text = "Play";
- this.playButton1.UseVisualStyleBackColor = true;
- this.playButton1.Click += new System.EventHandler(this.playButton1_Click);
- //
- // playButton2
- //
- this.playButton2.Location = new System.Drawing.Point(164, 293);
- this.playButton2.Name = "playButton2";
- this.playButton2.Size = new System.Drawing.Size(64, 32);
- this.playButton2.TabIndex = 11;
- this.playButton2.Text = "Play";
- this.playButton2.UseVisualStyleBackColor = true;
- this.playButton2.Click += new System.EventHandler(this.playButton2_Click);
- //
- // playButton3
- //
- this.playButton3.Location = new System.Drawing.Point(164, 555);
- this.playButton3.Name = "playButton3";
- this.playButton3.Size = new System.Drawing.Size(64, 32);
- this.playButton3.TabIndex = 12;
- this.playButton3.Text = "Play";
- this.playButton3.UseVisualStyleBackColor = true;
- this.playButton3.Click += new System.EventHandler(this.playButton3_Click);
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(12, 39);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(62, 17);
- this.label1.TabIndex = 13;
- this.label1.Text = "FFT size";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(12, 89);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(63, 17);
- this.label2.TabIndex = 14;
- this.label2.Text = "Hop size";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(12, 140);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(117, 17);
- this.label3.TabIndex = 15;
- this.label3.Text = "Harmonic window";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(12, 191);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(126, 17);
- this.label4.TabIndex = 16;
- this.label4.Text = "Percussive window";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(12, 241);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(99, 17);
- this.label5.TabIndex = 17;
- this.label5.Text = "Masking mode";
- //
- // spectrogramPlot3
- //
- this.spectrogramPlot3.AutoScroll = true;
- this.spectrogramPlot3.BackColor = System.Drawing.Color.Black;
- this.spectrogramPlot3.ColorMapName = "magma";
- this.spectrogramPlot3.Location = new System.Drawing.Point(164, 555);
- this.spectrogramPlot3.Markline = null;
- this.spectrogramPlot3.MarklineThickness = 0;
- this.spectrogramPlot3.Name = "spectrogramPlot3";
- this.spectrogramPlot3.Size = new System.Drawing.Size(1069, 256);
- this.spectrogramPlot3.Spectrogram = null;
- this.spectrogramPlot3.TabIndex = 3;
- //
- // spectrogramPlot2
- //
- this.spectrogramPlot2.AutoScroll = true;
- this.spectrogramPlot2.BackColor = System.Drawing.Color.Black;
- this.spectrogramPlot2.ColorMapName = "magma";
- this.spectrogramPlot2.Location = new System.Drawing.Point(164, 293);
- this.spectrogramPlot2.Markline = null;
- this.spectrogramPlot2.MarklineThickness = 0;
- this.spectrogramPlot2.Name = "spectrogramPlot2";
- this.spectrogramPlot2.Size = new System.Drawing.Size(1069, 256);
- this.spectrogramPlot2.Spectrogram = null;
- this.spectrogramPlot2.TabIndex = 2;
- //
- // spectrogramPlot1
- //
- this.spectrogramPlot1.AutoScroll = true;
- this.spectrogramPlot1.BackColor = System.Drawing.Color.Black;
- this.spectrogramPlot1.ColorMapName = "magma";
- this.spectrogramPlot1.Location = new System.Drawing.Point(164, 31);
- this.spectrogramPlot1.Markline = null;
- this.spectrogramPlot1.MarklineThickness = 0;
- this.spectrogramPlot1.Name = "spectrogramPlot1";
- this.spectrogramPlot1.Size = new System.Drawing.Size(1069, 256);
- this.spectrogramPlot1.Spectrogram = null;
- this.spectrogramPlot1.TabIndex = 1;
- //
- // HpssForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1245, 818);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.playButton3);
- this.Controls.Add(this.playButton2);
- this.Controls.Add(this.playButton1);
- this.Controls.Add(this.evaluateButton);
- this.Controls.Add(this.maskingComboBox);
- this.Controls.Add(this.percussiveWindowTextBox);
- this.Controls.Add(this.harmonicWindowTextBox);
- this.Controls.Add(this.hopSizeTextBox);
- this.Controls.Add(this.fftSizeTextBox);
- this.Controls.Add(this.spectrogramPlot3);
- this.Controls.Add(this.spectrogramPlot2);
- this.Controls.Add(this.spectrogramPlot1);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "HpssForm";
- this.Text = "HpssForm";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private UserControls.SpectrogramPlot spectrogramPlot1;
- private UserControls.SpectrogramPlot spectrogramPlot2;
- private UserControls.SpectrogramPlot spectrogramPlot3;
- private System.Windows.Forms.TextBox fftSizeTextBox;
- private System.Windows.Forms.TextBox hopSizeTextBox;
- private System.Windows.Forms.TextBox harmonicWindowTextBox;
- private System.Windows.Forms.TextBox percussiveWindowTextBox;
- private System.Windows.Forms.ComboBox maskingComboBox;
- private System.Windows.Forms.Button evaluateButton;
- private System.Windows.Forms.Button playButton1;
- private System.Windows.Forms.Button playButton2;
- private System.Windows.Forms.Button playButton3;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label5;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/HpssForm.cs b/NWaves.DemoForms/HpssForm.cs
deleted file mode 100644
index 50b633c..0000000
--- a/NWaves.DemoForms/HpssForm.cs
+++ /dev/null
@@ -1,89 +0,0 @@
-using NWaves.Audio;
-using NWaves.Operations;
-using NWaves.Signals;
-using NWaves.Transforms;
-using System;
-using System.IO;
-using System.Windows.Forms;
-
-namespace NWaves.DemoForms
-{
- public partial class HpssForm : Form
- {
- private DiscreteSignal _signal;
- private DiscreteSignal _harmonicSignal;
- private DiscreteSignal _percussiveSignal;
-
- private short _bitDepth;
-
- private readonly MemoryStreamPlayer _player = new MemoryStreamPlayer();
-
- public HpssForm()
- {
- InitializeComponent();
- }
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(ofd.FileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _bitDepth = waveFile.WaveFmt.BitsPerSample;
- _signal = waveFile[Channels.Average];
- }
-
- Evaluate();
- }
-
- private void evaluateButton_Click(object sender, EventArgs e)
- {
- Evaluate();
- }
-
- private void Evaluate()
- {
- var fftSize = int.Parse(fftSizeTextBox.Text);
- var hopSize = int.Parse(hopSizeTextBox.Text);
- var harmWinSize = int.Parse(harmonicWindowTextBox.Text);
- var percWinSize = int.Parse(percussiveWindowTextBox.Text);
- var masking = HpsMasking.Binary;
-
- if (maskingComboBox.SelectedIndex == 1) masking = HpsMasking.WienerOrder1;
- else if (maskingComboBox.SelectedIndex == 2) masking = HpsMasking.WienerOrder2;
-
- var hpss = new HarmonicPercussiveSeparator(fftSize, hopSize, harmWinSize, percWinSize, masking)
- .EvaluateSignals(_signal);
- //.EvaluateSpectrograms(_signal);
-
- var stft = new Stft(512, 256);
-
- _harmonicSignal = hpss.Item1;// new DiscreteSignal(_signal.SamplingRate, stft.ReconstructMagnitudePhase(hpss.Item1));
- _percussiveSignal = hpss.Item2;// new DiscreteSignal(_signal.SamplingRate, stft.ReconstructMagnitudePhase(hpss.Item2));
-
- spectrogramPlot1.Spectrogram = stft.Spectrogram(_signal);
- spectrogramPlot2.Spectrogram = stft.Spectrogram(_harmonicSignal);
- spectrogramPlot3.Spectrogram = stft.Spectrogram(_percussiveSignal);
- }
-
- private async void playButton1_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_signal);
- }
-
- private async void playButton2_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_harmonicSignal);
- }
-
- private async void playButton3_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_percussiveSignal * 2);
- }
- }
-}
diff --git a/NWaves.DemoForms/HpssForm.resx b/NWaves.DemoForms/HpssForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/HpssForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/LpcForm.Designer.cs b/NWaves.DemoForms/LpcForm.Designer.cs
deleted file mode 100644
index 1e722e6..0000000
--- a/NWaves.DemoForms/LpcForm.Designer.cs
+++ /dev/null
@@ -1,124 +0,0 @@
-using NWaves.DemoForms.UserControls;
-
-namespace NWaves.DemoForms
-{
- partial class LpcForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.lpcListView = new System.Windows.Forms.ListView();
- this.lpcPanel = new LinePlot();
- this.spectrumPanel = new LinePlot();
- this.menuStrip1.SuspendLayout();
- this.SuspendLayout();
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1030, 28);
- this.menuStrip1.TabIndex = 0;
- this.menuStrip1.Text = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
- this.fileToolStripMenuItem.Text = "&File";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(129, 26);
- this.openToolStripMenuItem.Text = "&Open...";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // lpcListView
- //
- this.lpcListView.FullRowSelect = true;
- this.lpcListView.GridLines = true;
- this.lpcListView.Location = new System.Drawing.Point(12, 41);
- this.lpcListView.Name = "lpcListView";
- this.lpcListView.Size = new System.Drawing.Size(1004, 366);
- this.lpcListView.TabIndex = 6;
- this.lpcListView.UseCompatibleStateImageBehavior = false;
- this.lpcListView.View = System.Windows.Forms.View.Details;
- this.lpcListView.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.lpcListView_ItemSelectionChanged);
- //
- // lpcPanel
- //
- this.lpcPanel.BackColor = System.Drawing.Color.White;
- this.lpcPanel.Location = new System.Drawing.Point(605, 413);
- this.lpcPanel.Name = "lpcPanel";
- this.lpcPanel.Size = new System.Drawing.Size(411, 210);
- this.lpcPanel.TabIndex = 5;
- //
- // spectrumPanel
- //
- this.spectrumPanel.BackColor = System.Drawing.Color.White;
- this.spectrumPanel.Location = new System.Drawing.Point(11, 413);
- this.spectrumPanel.Name = "spectrumPanel";
- this.spectrumPanel.Size = new System.Drawing.Size(588, 210);
- this.spectrumPanel.TabIndex = 4;
- //
- // LpcForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1030, 635);
- this.Controls.Add(this.lpcListView);
- this.Controls.Add(this.lpcPanel);
- this.Controls.Add(this.spectrumPanel);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "LpcForm";
- this.Text = "LpcForm";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private System.Windows.Forms.ListView lpcListView;
- private LinePlot lpcPanel;
- private LinePlot spectrumPanel;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/LpcForm.cs b/NWaves.DemoForms/LpcForm.cs
deleted file mode 100644
index 8e5b001..0000000
--- a/NWaves.DemoForms/LpcForm.cs
+++ /dev/null
@@ -1,184 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.IO;
-using System.Linq;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.FeatureExtractors;
-using NWaves.FeatureExtractors.Base;
-using NWaves.FeatureExtractors.Options;
-using NWaves.Filters.Base;
-using NWaves.Filters.Fda;
-using NWaves.Signals;
-using NWaves.Transforms;
-using NWaves.Utils;
-using NWaves.Windows;
-
-namespace NWaves.DemoForms
-{
- public partial class LpcForm : Form
- {
- private const double FrameDuration = 0.032;
- private const double HopDuration = 0.010;
-
- private DiscreteSignal _signal;
- private List _lpcVectors;
-
- private RealFft _fft;
-
-
- public LpcForm()
- {
- InitializeComponent();
- lpcPanel.ForeColor = Color.SeaGreen;
- lpcPanel.Stride = 20;
- lpcPanel.Thickness = 2;
- spectrumPanel.Stride = 2;
- }
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(ofd.FileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _signal = waveFile[Channels.Left];
- }
-
- _fft = new RealFft(512);
-
- var options = new LpcOptions
- {
- SamplingRate = _signal.SamplingRate,
- LpcOrder = 16,
- FrameDuration = FrameDuration,
- HopDuration = HopDuration
- };
-
- var lpcExtractor = new LpcExtractor(options);
-
- //var lpcExtractor = new LpccExtractor(options);
-
- //var lpcExtractor = new PlpExtractor(_signal.SamplingRate, 10,
- // lpcOrder: 8,
- // rasta: 0.94,
- // filterbankSize: 20,
- // //lifterSize: 22,
- // window: WindowTypes.Hann);
-
- _lpcVectors = lpcExtractor.ParallelComputeFrom(_signal);
-
- FillFeaturesList(_lpcVectors, lpcExtractor.FeatureDescriptions, lpcExtractor.TimeMarkers(_lpcVectors.Count));
- lpcListView.Items[0].Selected = true;
-
- spectrumPanel.Line = ComputeSpectrum(0);
- spectrumPanel.Markline = EstimateSpectrum(0);
- spectrumPanel.ToDecibel();
-
- lpcPanel.Line = _lpcVectors[0].Skip(1).ToArray();
- }
-
- float[] ComputeSpectrum(int idx)
- {
- var pos = (int)(_signal.SamplingRate * HopDuration * idx);
-
- return _fft.PowerSpectrum(_signal[pos, pos + 512], normalize: false)
- .Samples;
- }
-
- float[] EstimateSpectrum(int idx)
- {
- // LPC-reconstructed spectrum:
-
- var vector = _lpcVectors[idx].ToDoubles(); // make new copy of array of features
- var gain = Math.Sqrt(vector[0]);
- vector[0] = 1.0;
-
- var lpcTf = new TransferFunction(new[] { gain }, vector);
-
- return lpcTf.FrequencyResponse().Power.ToFloats();
-
-
- // LPCC- / PLP-reconstructed spectrum:
-
- //var lpcc = _lpcVectors[idx].Features;
- //var lpc = new float[lpcc.Length];
- //var gain = Lpc.FromCepstrum(lpcc, lpc);
-
- //var vector = lpc.ToDoubles();
- //vector[0] = 1.0;
-
- //var lpcTf = new TransferFunction(new double[] { Math.Sqrt(gain) }, vector);
-
- //return lpcTf.FrequencyResponse().Power.ToFloats();
- }
-
- private void FillFeaturesList(IList featureVectors,
- IList featureDescriptions,
- IList timeMarkers)
- {
- lpcListView.Clear();
- lpcListView.Columns.Add("time", 50);
-
- foreach (var name in featureDescriptions)
- {
- lpcListView.Columns.Add(name, 70);
- }
-
- for (var i = 0; i < featureVectors.Count; i++)
- {
- var item = new ListViewItem { Text = timeMarkers[i].ToString("F4") };
- item.SubItems.AddRange(featureVectors[i].Select(f => f.ToString("F4")).ToArray());
-
- lpcListView.Items.Add(item);
- }
- }
-
- private void lpcListView_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
- {
- var pos = e.ItemIndex;
-
- spectrumPanel.Line = ComputeSpectrum(pos);
- spectrumPanel.Markline = EstimateSpectrum(pos);
- spectrumPanel.ToDecibel();
-
- lpcPanel.Line = _lpcVectors[pos].Skip(1).ToArray();
- }
- }
-}
-
-// ============================================== TEST PLP extractor against HTK: ========================================================
-
-//const int sr = 16000;
-//var melbands = FilterBanks.MelBands(24, sr, 0, 8000);
-//var melbank = FilterBanks.Triangular(512, sr, melbands, null, Utils.Scale.HerzToMel);
-
-//var opts = new PlpOptions
-//{
-// SamplingRate = sr,
-// FeatureCount = 13,
-// FrameDuration = 512.0 / sr,
-// FilterBank = melbank,
-// CenterFrequencies = melbands.Select(m => m.Item2).ToArray(),
-// Window = WindowTypes.Rectangular
-//};
-//var lpcExtractor = new PlpExtractor(opts);
-
-//var data = new float[] { 1, 7, 2, 5, 4, 9, 1, 2, 3, 4, 5, 3, 4, 7, 6, 5, 1, 2, 3, 4, 5, 7, 7, 2, 3, 1, 9 }.PadZeros(512);
-
-//for (var i = 0; i< 30; i++) data[i + 40] = -data[i];
-//for (var i = 0; i< 70; i += 2) data[i] = -data[i];
-
-//_signal = new DiscreteSignal(sr, data);
-//_lpcVectors = lpcExtractor.ComputeFrom(_signal);
-
-//// HTK result:
-//// -0.580443, -0.0684327, -0.227281, -0.10092, -0.0703564, -0.0446244, -0.104119, -0.0334703, -0.102588, -0.00156306, 0.0435456, 0.0358385,
-
-// ==========================================================================================================================================
diff --git a/NWaves.DemoForms/LpcForm.resx b/NWaves.DemoForms/LpcForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/LpcForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/MemoryStreamPlayer.cs b/NWaves.DemoForms/MemoryStreamPlayer.cs
deleted file mode 100644
index abf525a..0000000
--- a/NWaves.DemoForms/MemoryStreamPlayer.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using System.IO;
-using System.Media;
-using System.Threading.Tasks;
-using NWaves.Audio;
-using NWaves.Audio.Interfaces;
-using NWaves.Signals;
-
-namespace NWaves.DemoForms
-{
- ///
- /// Simple player wrapped around System.Media.SoundPlayer
- ///
- public class MemoryStreamPlayer : IAudioPlayer
- {
- private SoundPlayer _player;
-
- public async Task PlayAsync(string location, int startPos = 0, int endPos = -1)
- {
- _player?.Dispose();
- _player = new SoundPlayer(location);
- _player.Play();
- }
-
- public async Task PlayAsync(DiscreteSignal signal, int startPos = 0, int endPos = -1, short bitDepth = 16)
- {
- var stream = new MemoryStream();
- var wave = new WaveFile(signal, bitDepth);
- wave.SaveTo(stream);
-
- stream = new MemoryStream(stream.ToArray());
-
- _player?.Dispose();
- _player = new SoundPlayer(stream);
- _player.Stream.Seek(0, SeekOrigin.Begin);
- _player.Play();
- }
-
- public void Pause()
- {
- _player.Stop();
- }
-
- public void Resume()
- {
- _player.Play();
- }
-
- public void Stop()
- {
- _player.Stop();
- }
-
- public float Volume { get; set; }
- }
-}
diff --git a/NWaves.DemoForms/MfccForm.Designer.cs b/NWaves.DemoForms/MfccForm.Designer.cs
deleted file mode 100644
index ce26a31..0000000
--- a/NWaves.DemoForms/MfccForm.Designer.cs
+++ /dev/null
@@ -1,513 +0,0 @@
-using NWaves.DemoForms.UserControls;
-
-namespace NWaves.DemoForms
-{
- partial class MfccForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.melFilterBankPanel = new NWaves.DemoForms.UserControls.GroupPlot();
- this.mfccPanel = new NWaves.DemoForms.UserControls.LinePlot();
- this.mfccListView = new System.Windows.Forms.ListView();
- this.checkBoxOverlap = new System.Windows.Forms.CheckBox();
- this.label27 = new System.Windows.Forms.Label();
- this.comboBoxShape = new System.Windows.Forms.ComboBox();
- this.textBoxFftSize = new System.Windows.Forms.TextBox();
- this.label21 = new System.Windows.Forms.Label();
- this.textBoxHighFreq = new System.Windows.Forms.TextBox();
- this.label20 = new System.Windows.Forms.Label();
- this.textBoxLowFreq = new System.Windows.Forms.TextBox();
- this.label19 = new System.Windows.Forms.Label();
- this.buttonCompute = new System.Windows.Forms.Button();
- this.textBoxSize = new System.Windows.Forms.TextBox();
- this.label18 = new System.Windows.Forms.Label();
- this.label17 = new System.Windows.Forms.Label();
- this.comboBoxFilterbank = new System.Windows.Forms.ComboBox();
- this.textBoxVtlnAlpha = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.comboBoxSpectrum = new System.Windows.Forms.ComboBox();
- this.comboBoxNonLinearity = new System.Windows.Forms.ComboBox();
- this.textBoxLogFloor = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.checkBoxNormalize = new System.Windows.Forms.CheckBox();
- this.textBoxVtlnLow = new System.Windows.Forms.TextBox();
- this.textBoxVtlnHigh = new System.Windows.Forms.TextBox();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.checkBoxVtln = new System.Windows.Forms.CheckBox();
- this.label7 = new System.Windows.Forms.Label();
- this.comboBoxDct = new System.Windows.Forms.ComboBox();
- this.menuStrip1.SuspendLayout();
- this.SuspendLayout();
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(937, 28);
- this.menuStrip1.TabIndex = 0;
- this.menuStrip1.Text = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
- this.fileToolStripMenuItem.Text = "&File";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(129, 26);
- this.openToolStripMenuItem.Text = "&Open...";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // melFilterBankPanel
- //
- this.melFilterBankPanel.AutoScroll = true;
- this.melFilterBankPanel.BackColor = System.Drawing.Color.White;
- this.melFilterBankPanel.Gain = 100;
- this.melFilterBankPanel.Groups = null;
- this.melFilterBankPanel.Location = new System.Drawing.Point(12, 465);
- this.melFilterBankPanel.Name = "melFilterBankPanel";
- this.melFilterBankPanel.Size = new System.Drawing.Size(588, 160);
- this.melFilterBankPanel.Stride = 2;
- this.melFilterBankPanel.TabIndex = 1;
- //
- // mfccPanel
- //
- this.mfccPanel.AutoScroll = true;
- this.mfccPanel.BackColor = System.Drawing.Color.White;
- this.mfccPanel.ForeColor = System.Drawing.Color.Blue;
- this.mfccPanel.Location = new System.Drawing.Point(606, 465);
- this.mfccPanel.Name = "mfccPanel";
- this.mfccPanel.PaddingX = 30;
- this.mfccPanel.PaddingY = 20;
- this.mfccPanel.Size = new System.Drawing.Size(322, 160);
- this.mfccPanel.Stride = 1;
- this.mfccPanel.TabIndex = 2;
- this.mfccPanel.Thickness = 1;
- //
- // mfccListView
- //
- this.mfccListView.FullRowSelect = true;
- this.mfccListView.GridLines = true;
- this.mfccListView.Location = new System.Drawing.Point(13, 32);
- this.mfccListView.Name = "mfccListView";
- this.mfccListView.Size = new System.Drawing.Size(915, 322);
- this.mfccListView.TabIndex = 3;
- this.mfccListView.UseCompatibleStateImageBehavior = false;
- this.mfccListView.View = System.Windows.Forms.View.Details;
- this.mfccListView.ItemSelectionChanged += new System.Windows.Forms.ListViewItemSelectionChangedEventHandler(this.mfccListView_ItemSelectionChanged);
- //
- // checkBoxOverlap
- //
- this.checkBoxOverlap.AutoSize = true;
- this.checkBoxOverlap.Location = new System.Drawing.Point(107, 366);
- this.checkBoxOverlap.Name = "checkBoxOverlap";
- this.checkBoxOverlap.Size = new System.Drawing.Size(77, 21);
- this.checkBoxOverlap.TabIndex = 53;
- this.checkBoxOverlap.Text = "overlap";
- this.checkBoxOverlap.UseVisualStyleBackColor = true;
- //
- // label27
- //
- this.label27.AutoSize = true;
- this.label27.Location = new System.Drawing.Point(12, 432);
- this.label27.Name = "label27";
- this.label27.Size = new System.Drawing.Size(49, 17);
- this.label27.TabIndex = 52;
- this.label27.Text = "Shape";
- //
- // comboBoxShape
- //
- this.comboBoxShape.FormattingEnabled = true;
- this.comboBoxShape.Items.AddRange(new object[] {
- "Triangular",
- "Rectangular",
- "Trapezoidal",
- "BiQuad"});
- this.comboBoxShape.Location = new System.Drawing.Point(75, 430);
- this.comboBoxShape.Name = "comboBoxShape";
- this.comboBoxShape.Size = new System.Drawing.Size(109, 24);
- this.comboBoxShape.TabIndex = 51;
- this.comboBoxShape.Text = "Triangular";
- //
- // textBoxFftSize
- //
- this.textBoxFftSize.Location = new System.Drawing.Point(340, 430);
- this.textBoxFftSize.Name = "textBoxFftSize";
- this.textBoxFftSize.Size = new System.Drawing.Size(60, 22);
- this.textBoxFftSize.TabIndex = 48;
- this.textBoxFftSize.Text = "512";
- //
- // label21
- //
- this.label21.AutoSize = true;
- this.label21.Location = new System.Drawing.Point(338, 402);
- this.label21.Name = "label21";
- this.label21.Size = new System.Drawing.Size(62, 17);
- this.label21.TabIndex = 47;
- this.label21.Text = "FFT size";
- //
- // textBoxHighFreq
- //
- this.textBoxHighFreq.Location = new System.Drawing.Point(275, 430);
- this.textBoxHighFreq.Name = "textBoxHighFreq";
- this.textBoxHighFreq.Size = new System.Drawing.Size(54, 22);
- this.textBoxHighFreq.TabIndex = 46;
- this.textBoxHighFreq.Text = "8000";
- //
- // label20
- //
- this.label20.AutoSize = true;
- this.label20.Location = new System.Drawing.Point(203, 430);
- this.label20.Name = "label20";
- this.label20.Size = new System.Drawing.Size(66, 17);
- this.label20.TabIndex = 45;
- this.label20.Text = "HighFreq";
- //
- // textBoxLowFreq
- //
- this.textBoxLowFreq.Location = new System.Drawing.Point(275, 400);
- this.textBoxLowFreq.Name = "textBoxLowFreq";
- this.textBoxLowFreq.Size = new System.Drawing.Size(54, 22);
- this.textBoxLowFreq.TabIndex = 44;
- this.textBoxLowFreq.Text = "0";
- //
- // label19
- //
- this.label19.AutoSize = true;
- this.label19.Location = new System.Drawing.Point(203, 402);
- this.label19.Name = "label19";
- this.label19.Size = new System.Drawing.Size(62, 17);
- this.label19.TabIndex = 43;
- this.label19.Text = "LowFreq";
- //
- // buttonCompute
- //
- this.buttonCompute.Location = new System.Drawing.Point(859, 369);
- this.buttonCompute.Name = "buttonCompute";
- this.buttonCompute.Size = new System.Drawing.Size(69, 87);
- this.buttonCompute.TabIndex = 42;
- this.buttonCompute.Text = ">>";
- this.buttonCompute.UseVisualStyleBackColor = true;
- this.buttonCompute.Click += new System.EventHandler(this.buttonCompute_Click);
- //
- // textBoxSize
- //
- this.textBoxSize.Location = new System.Drawing.Point(53, 364);
- this.textBoxSize.Name = "textBoxSize";
- this.textBoxSize.Size = new System.Drawing.Size(38, 22);
- this.textBoxSize.TabIndex = 41;
- this.textBoxSize.Text = "13";
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.Location = new System.Drawing.Point(12, 366);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(35, 17);
- this.label18.TabIndex = 40;
- this.label18.Text = "Size";
- //
- // label17
- //
- this.label17.AutoSize = true;
- this.label17.Location = new System.Drawing.Point(12, 401);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(74, 17);
- this.label17.TabIndex = 39;
- this.label17.Text = "Filter bank";
- //
- // comboBoxFilterbank
- //
- this.comboBoxFilterbank.FormattingEnabled = true;
- this.comboBoxFilterbank.Items.AddRange(new object[] {
- "Herz",
- "Mel",
- "Mel Slaney",
- "Bark",
- "Bark Slaney",
- "Critical bands",
- "ERB",
- "Octave bands"});
- this.comboBoxFilterbank.Location = new System.Drawing.Point(92, 398);
- this.comboBoxFilterbank.Name = "comboBoxFilterbank";
- this.comboBoxFilterbank.Size = new System.Drawing.Size(92, 24);
- this.comboBoxFilterbank.TabIndex = 38;
- this.comboBoxFilterbank.Text = "Mel";
- //
- // textBoxVtlnAlpha
- //
- this.textBoxVtlnAlpha.Location = new System.Drawing.Point(546, 372);
- this.textBoxVtlnAlpha.Name = "textBoxVtlnAlpha";
- this.textBoxVtlnAlpha.Size = new System.Drawing.Size(54, 22);
- this.textBoxVtlnAlpha.TabIndex = 55;
- this.textBoxVtlnAlpha.Text = "1";
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(485, 373);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(43, 17);
- this.label1.TabIndex = 54;
- this.label1.Text = "alpha";
- //
- // comboBoxSpectrum
- //
- this.comboBoxSpectrum.FormattingEnabled = true;
- this.comboBoxSpectrum.Location = new System.Drawing.Point(737, 359);
- this.comboBoxSpectrum.Name = "comboBoxSpectrum";
- this.comboBoxSpectrum.Size = new System.Drawing.Size(116, 24);
- this.comboBoxSpectrum.TabIndex = 56;
- this.comboBoxSpectrum.Text = "Power";
- //
- // comboBoxNonLinearity
- //
- this.comboBoxNonLinearity.FormattingEnabled = true;
- this.comboBoxNonLinearity.Location = new System.Drawing.Point(737, 386);
- this.comboBoxNonLinearity.Name = "comboBoxNonLinearity";
- this.comboBoxNonLinearity.Size = new System.Drawing.Size(116, 24);
- this.comboBoxNonLinearity.TabIndex = 57;
- this.comboBoxNonLinearity.Text = "LogE";
- //
- // textBoxLogFloor
- //
- this.textBoxLogFloor.Location = new System.Drawing.Point(737, 413);
- this.textBoxLogFloor.Name = "textBoxLogFloor";
- this.textBoxLogFloor.Size = new System.Drawing.Size(116, 22);
- this.textBoxLogFloor.TabIndex = 59;
- this.textBoxLogFloor.Text = "1e-45";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(620, 413);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(64, 17);
- this.label2.TabIndex = 58;
- this.label2.Text = "Log floor";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(619, 361);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(99, 17);
- this.label3.TabIndex = 60;
- this.label3.Text = "Spectrum type";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(619, 388);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(88, 17);
- this.label4.TabIndex = 61;
- this.label4.Text = "Non-linearity";
- //
- // checkBoxNormalize
- //
- this.checkBoxNormalize.AutoSize = true;
- this.checkBoxNormalize.Location = new System.Drawing.Point(192, 366);
- this.checkBoxNormalize.Name = "checkBoxNormalize";
- this.checkBoxNormalize.Size = new System.Drawing.Size(91, 21);
- this.checkBoxNormalize.TabIndex = 62;
- this.checkBoxNormalize.Text = "normalize";
- this.checkBoxNormalize.UseVisualStyleBackColor = true;
- //
- // textBoxVtlnLow
- //
- this.textBoxVtlnLow.Location = new System.Drawing.Point(546, 400);
- this.textBoxVtlnLow.Name = "textBoxVtlnLow";
- this.textBoxVtlnLow.Size = new System.Drawing.Size(54, 22);
- this.textBoxVtlnLow.TabIndex = 63;
- this.textBoxVtlnLow.Text = "0";
- //
- // textBoxVtlnHigh
- //
- this.textBoxVtlnHigh.Location = new System.Drawing.Point(546, 428);
- this.textBoxVtlnHigh.Name = "textBoxVtlnHigh";
- this.textBoxVtlnHigh.Size = new System.Drawing.Size(54, 22);
- this.textBoxVtlnHigh.TabIndex = 64;
- this.textBoxVtlnHigh.Text = "8000";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(485, 402);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(28, 17);
- this.label5.TabIndex = 65;
- this.label5.Text = "low";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(485, 431);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(35, 17);
- this.label6.TabIndex = 66;
- this.label6.Text = "high";
- //
- // checkBoxVtln
- //
- this.checkBoxVtln.AutoSize = true;
- this.checkBoxVtln.Location = new System.Drawing.Point(413, 366);
- this.checkBoxVtln.Name = "checkBoxVtln";
- this.checkBoxVtln.Size = new System.Drawing.Size(66, 21);
- this.checkBoxVtln.TabIndex = 67;
- this.checkBoxVtln.Text = "VTLN";
- this.checkBoxVtln.UseVisualStyleBackColor = true;
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(619, 440);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(67, 17);
- this.label7.TabIndex = 69;
- this.label7.Text = "DCT type";
- //
- // comboBoxDct
- //
- this.comboBoxDct.FormattingEnabled = true;
- this.comboBoxDct.Items.AddRange(new object[] {
- "1",
- "2",
- "3",
- "4",
- "1N",
- "2N",
- "3N",
- "4N"});
- this.comboBoxDct.Location = new System.Drawing.Point(737, 438);
- this.comboBoxDct.Name = "comboBoxDct";
- this.comboBoxDct.Size = new System.Drawing.Size(116, 24);
- this.comboBoxDct.TabIndex = 68;
- this.comboBoxDct.Text = "2N";
- //
- // MfccForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(937, 637);
- this.Controls.Add(this.label7);
- this.Controls.Add(this.comboBoxDct);
- this.Controls.Add(this.checkBoxVtln);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.textBoxVtlnHigh);
- this.Controls.Add(this.textBoxVtlnLow);
- this.Controls.Add(this.checkBoxNormalize);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.textBoxLogFloor);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.comboBoxNonLinearity);
- this.Controls.Add(this.comboBoxSpectrum);
- this.Controls.Add(this.textBoxVtlnAlpha);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.checkBoxOverlap);
- this.Controls.Add(this.label27);
- this.Controls.Add(this.comboBoxShape);
- this.Controls.Add(this.textBoxFftSize);
- this.Controls.Add(this.label21);
- this.Controls.Add(this.textBoxHighFreq);
- this.Controls.Add(this.label20);
- this.Controls.Add(this.textBoxLowFreq);
- this.Controls.Add(this.label19);
- this.Controls.Add(this.buttonCompute);
- this.Controls.Add(this.textBoxSize);
- this.Controls.Add(this.label18);
- this.Controls.Add(this.label17);
- this.Controls.Add(this.comboBoxFilterbank);
- this.Controls.Add(this.mfccListView);
- this.Controls.Add(this.mfccPanel);
- this.Controls.Add(this.melFilterBankPanel);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "MfccForm";
- this.Text = "MfccForm";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private GroupPlot melFilterBankPanel;
- private LinePlot mfccPanel;
- private System.Windows.Forms.ListView mfccListView;
- private System.Windows.Forms.CheckBox checkBoxOverlap;
- private System.Windows.Forms.Label label27;
- private System.Windows.Forms.ComboBox comboBoxShape;
- private System.Windows.Forms.TextBox textBoxFftSize;
- private System.Windows.Forms.Label label21;
- private System.Windows.Forms.TextBox textBoxHighFreq;
- private System.Windows.Forms.Label label20;
- private System.Windows.Forms.TextBox textBoxLowFreq;
- private System.Windows.Forms.Label label19;
- private System.Windows.Forms.Button buttonCompute;
- private System.Windows.Forms.TextBox textBoxSize;
- private System.Windows.Forms.Label label18;
- private System.Windows.Forms.Label label17;
- private System.Windows.Forms.ComboBox comboBoxFilterbank;
- private System.Windows.Forms.TextBox textBoxVtlnAlpha;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.ComboBox comboBoxSpectrum;
- private System.Windows.Forms.ComboBox comboBoxNonLinearity;
- private System.Windows.Forms.TextBox textBoxLogFloor;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.CheckBox checkBoxNormalize;
- private System.Windows.Forms.TextBox textBoxVtlnLow;
- private System.Windows.Forms.TextBox textBoxVtlnHigh;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.CheckBox checkBoxVtln;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.ComboBox comboBoxDct;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/MfccForm.cs b/NWaves.DemoForms/MfccForm.cs
deleted file mode 100644
index 6743e55..0000000
--- a/NWaves.DemoForms/MfccForm.cs
+++ /dev/null
@@ -1,397 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.IO;
-using System.Linq;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.FeatureExtractors;
-using NWaves.FeatureExtractors.Base;
-using NWaves.FeatureExtractors.Multi;
-using NWaves.FeatureExtractors.Options;
-using NWaves.FeatureExtractors.Serializers;
-using NWaves.Filters;
-using NWaves.Filters.Base;
-using NWaves.Filters.Fda;
-using NWaves.Signals;
-using NWaves.Transforms;
-using NWaves.Windows;
-
-namespace NWaves.DemoForms
-{
- public partial class MfccForm : Form
- {
- private DiscreteSignal _signal;
- private List _mfccVectors, pnccVectors;
-
- public MfccForm()
- {
- InitializeComponent();
-
- mfccPanel.ForeColor = Color.SeaGreen;
- mfccPanel.Thickness = 2;
- mfccPanel.Stride = 20;
-
- comboBoxNonLinearity.Items.AddRange(Enum.GetNames(typeof(NonLinearityType)));
- comboBoxSpectrum.Items.AddRange(Enum.GetNames(typeof(SpectrumType)));
-
- comboBoxNonLinearity.SelectedIndex = 0;
- comboBoxSpectrum.SelectedIndex = 1;
- }
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(ofd.FileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _signal = waveFile[Channels.Left];
- }
-
- buttonCompute_Click(this, null); // :-D
- }
-
- private void FillFeaturesList(IList featureVectors,
- IList featureDescriptions,
- IList timeMarkers)
- {
- mfccListView.Clear();
- mfccListView.Columns.Add("time", 50);
-
- foreach (var feat in featureDescriptions)
- {
- mfccListView.Columns.Add(feat, 70);
- }
-
- for (var i = 0; i < featureVectors.Count; i++)
- {
- var item = new ListViewItem { Text = timeMarkers[i].ToString("F4") };
- item.SubItems.AddRange(featureVectors[i].Select(f => f.ToString("F4")).ToArray());
-
- mfccListView.Items.Add(item);
- }
- }
-
- private void buttonCompute_Click(object sender, EventArgs e)
- {
- var filterCount = int.Parse(textBoxSize.Text);
- var samplingRate = _signal.SamplingRate;
- var fftSize = int.Parse(textBoxFftSize.Text);
- var lowFreq = float.Parse(textBoxLowFreq.Text);
- var highFreq = float.Parse(textBoxHighFreq.Text);
-
- (double, double, double)[] bands;
- float[][] filterbank = null;
- VtlnWarper vtln = null;
-
- if (checkBoxVtln.Checked)
- {
- var alpha = float.Parse(textBoxVtlnAlpha.Text);
- var vtlnLow = float.Parse(textBoxVtlnLow.Text);
- var vtlnHigh = float.Parse(textBoxVtlnHigh.Text);
-
- vtln = new VtlnWarper(alpha, lowFreq, highFreq, vtlnLow, vtlnHigh);
- }
-
- switch (comboBoxFilterbank.Text)
- {
- case "Mel":
- bands = FilterBanks.MelBands(filterCount, samplingRate, lowFreq, highFreq, checkBoxOverlap.Checked);
- break;
- case "Mel Slaney":
- bands = FilterBanks.MelBandsSlaney(filterCount, samplingRate, lowFreq, highFreq, checkBoxOverlap.Checked);
- filterbank = FilterBanks.MelBankSlaney(filterCount, fftSize, samplingRate, lowFreq, highFreq, checkBoxNormalize.Checked, vtln);
- break;
- case "Bark":
- bands = FilterBanks.BarkBands(filterCount, samplingRate, lowFreq, highFreq, checkBoxOverlap.Checked);
- break;
- case "Bark Slaney":
- bands = FilterBanks.BarkBandsSlaney(filterCount, samplingRate, lowFreq, highFreq, checkBoxOverlap.Checked);
- filterbank = FilterBanks.BarkBankSlaney(filterCount, fftSize, samplingRate, lowFreq, highFreq);
- break;
- case "Critical bands":
- bands = FilterBanks.CriticalBands(filterCount, samplingRate, lowFreq, highFreq);
- break;
- case "Octave bands":
- bands = FilterBanks.OctaveBands(filterCount, samplingRate, lowFreq, highFreq, checkBoxOverlap.Checked);
- break;
- case "ERB":
- bands = null;
- filterbank = FilterBanks.Erb(filterCount, fftSize, samplingRate, lowFreq, highFreq);
- break;
- default:
- bands = FilterBanks.HerzBands(filterCount, samplingRate, lowFreq, highFreq, checkBoxOverlap.Checked);
- break;
- }
-
- if (bands != null && filterbank == null)
- {
- switch (comboBoxShape.Text)
- {
- case "Triangular":
- filterbank = FilterBanks.Triangular(fftSize, samplingRate, bands, vtln, Utils.Scale.HerzToMel);
- break;
- case "Trapezoidal":
- filterbank = FilterBanks.Trapezoidal(fftSize, samplingRate, bands, vtln);
- break;
- case "BiQuad":
- filterbank = FilterBanks.BiQuad(fftSize, samplingRate, bands);
- break;
- default:
- filterbank = FilterBanks.Rectangular(fftSize, samplingRate, bands, vtln);
- break;
- }
-
- if (checkBoxNormalize.Checked) FilterBanks.Normalize(filterCount, bands, filterbank);
- }
-
-
- var spectrumType = (SpectrumType)comboBoxSpectrum.SelectedIndex;
- var nonLinearity = (NonLinearityType)comboBoxNonLinearity.SelectedIndex;
- var logFloor = float.Parse(textBoxLogFloor.Text);
-
- var mfccOptions = new MfccOptions
- {
- SamplingRate = samplingRate,
- FeatureCount = 13,
- FrameDuration = 512.0 / samplingRate,
- HopDuration = 0.01,
- FilterBank = filterbank,
- SpectrumType = spectrumType,
- NonLinearity = nonLinearity,
- DctType = comboBoxDct.Text,
- Window = WindowType.Hamming,
- LogFloor = logFloor,
- //FilterBankSize = 26,
- //HighFrequency = 6000,
- //PreEmphasis = 0.97,
- //LifterSize = 22,
- //IncludeEnergy = true,
- //LogEnergyFloor = 1e-10
- };
-
- var mfccExtractor = new MfccExtractor(mfccOptions);
- _mfccVectors = mfccExtractor.ComputeFrom(_signal);
-
- //FeaturePostProcessing.NormalizeMean(_mfccVectors); // optional
- //FeaturePostProcessing.AddDeltas(_mfccVectors);
-
- var header = mfccExtractor.FeatureDescriptions;
- //.Concat(mfccExtractor.DeltaFeatureDescriptions)
- //.Concat(mfccExtractor.DeltaDeltaFeatureDescriptions);
-
- FillFeaturesList(_mfccVectors, header, mfccExtractor.TimeMarkers(_mfccVectors.Count));
- mfccListView.Items[0].Selected = true;
-
- melFilterBankPanel.Groups = mfccExtractor.FilterBank;
-
- mfccPanel.Line = _mfccVectors[0];
- }
-
- private void mfccListView_ItemSelectionChanged(object sender, ListViewItemSelectionChangedEventArgs e)
- {
- mfccPanel.Line = _mfccVectors[e.ItemIndex];
-
- // ============== I use this code to test PNCC results (just ignore it))): ========================
-
- //mfccPanel.Line = _mfccVectors[e.ItemIndex];
- //mfccPanel.Markline = pnccVectors[e.ItemIndex];
-
- // ================================================================================================
- }
- }
-
-
- // If you want to test MFCC against HTK =======================================================
- // keep in mind that HTK does the following pre-processing: zero-mean and pre-emphasis ========
- // (turn these settings off in HTK config if possible): =======================================
-
- // HTK does this pre-processing per frame instead of entire signal
- // (which is weird given that frames overlap).
-
- // Also: HTK DOESN't normalize signal! If it's normalized then multiply by 32768 before processing:
-
- // _signal *= 32768;
- // _extractor.ComputeFrom(_signal);
-
- class MfccExtractorTestHtk : MfccExtractor
- {
- private readonly float[] _hammingWin;
-
- public MfccExtractorTestHtk(MfccOptions options) : base(options)
- {
- _hammingWin = Window.OfType(WindowType.Hamming, FrameSize);
- }
-
- ///
- /// HTK-style pre-processing (zero-mean and pre-emphasis)
- ///
- ///
- ///
- public override void ProcessFrame(float[] block, float[] features)
- {
- // 1) HTK zero-mean:
-
- var frameSize = FrameSize;
-
- var mean = block.Take(frameSize).Average();
-
- for (var k = 0; k < frameSize; k++)
- {
- block[k] -= mean;
- block[k] += Math.Sign(block[k]) * 0.5f;
- }
-
- // 2) HTK pre-emphasis (it's different from conventional pre-emphasis!):
-
- // set base _preEmphasis field to 0 and do pre-emphasis here:
-
- var pre = 0.97f;
-
- for (var k = frameSize - 1; k >= 1; k--)
- {
- block[k] -= block[k - 1] * pre;
- }
- block[0] *= 1 - pre;
-
-
- // 3) apply hamming window:
-
- block.ApplyWindow(_hammingWin);
-
-
- // ...and now continue standard computations:
-
- base.ProcessFrame(block, features);
- }
-
- ///
- /// True if computations can be done in parallel
- ///
- ///
- public override bool IsParallelizable() => true;
-
- ///
- /// Copy of current extractor that can work in parallel
- ///
- ///
- public override FeatureExtractor ParallelCopy() =>
- new MfccExtractorTestHtk(
- new MfccOptions
- {
- SamplingRate = SamplingRate,
- FeatureCount = FeatureCount,
- FrameDuration = FrameDuration,
- HopDuration = HopDuration,
- FilterBank = FilterBank,
- FilterBankSize = FilterBank.Length,
- FftSize = _blockSize,
- LifterSize = _lifterSize,
- PreEmphasis = _preEmphasis,
- IncludeEnergy = _includeEnergy,
- LogEnergyFloor = _logEnergyFloor,
- SpectrumType = _spectrumType,
- Window = _window
- });
- }
-}
-
-
-// =================================================== TEST ParallelComputeFrom: ========================================================
-
-//_mfccVectors = mfccExtractor.ComputeFrom(_signal);
-//var mfccVectorsP = mfccExtractor.ParallelComputeFrom(_signal);
-
-//for (var i = 0; i < _mfccVectors.Count; i++)
-//{
-// for (var j = 0; j < _mfccVectors[i].Length; j++)
-// {
-// if (Math.Abs(_mfccVectors[i][j] - mfccVectorsP[i][j]) > 1e-32f)
-// {
-// MessageBox.Show($"Nope: {i} - {j}");
-// return;
-// }
-// }
-//}
-
-
-
-
-// ====================================================== test PNCC: =============================================================
-
-//var mfccExtractor = new PnccExtractor(
-// new PnccOptions
-// {
-// SamplingRate = _signal.SamplingRate,
-// FeatureCount = 13,
-// PreEmphasis = 0.97,
-// FftSize = 1024,
-// Window = WindowTypes.Hamming
-// });
-
-//_mfccVectors = mfccExtractor.ComputeFrom(_signal);
-
-// FeaturePostProcessing.NormalizeMean(_mfccVectors);
-
-
-// // ============== I use this code to test PNCC results (just ignore it))): ========================
-
-// pnccVectors = new List();
-// var vector = new float[13];
-//var pos = 1;
-
-// using (var fs = new FileStream(@"E:\Projects\github\NWaves_Materials\pncc\esh_ru_0001.pncc", FileMode.Open))
-// using (var br = new BinaryReader(fs))
-// {
-// while (pos< 700)
-// {
-// br.ReadSingle();
-// for (var i = 0; i< 12; i++)
-// {
-// vector[i] = br.ReadSingle();
-// }
-// pnccVectors.Add(vector);
-// vector = new float[13];
-// pos++;
-// }
-// }
-
-// mfccPanel.Markline = pnccVectors[0];
-
-// // ================================================================================================
-
-
-// var header = mfccExtractor.FeatureDescriptions
-// .Concat(mfccExtractor.DeltaFeatureDescriptions)
-// .Concat(mfccExtractor.DeltaDeltaFeatureDescriptions);
-
-// FillFeaturesList(_mfccVectors, header);
-// mfccListView.Items[0].Selected = true;
-
-// melFilterBankPanel.Groups = mfccExtractor.FilterBank;
-
-// mfccPanel.Line = _mfccVectors[0].Features;
-
-// //using (var csvFile = new FileStream("mfccs.csv", FileMode.Create))
-// //{
-// // var serializer = new CsvFeatureSerializer(_mfccVectors, header);
-// // await serializer.SerializeAsync(csvFile);
-// //}
-
-
-
-
-// var sr = _signal.SamplingRate;
-
-// var melbands = FilterBanks.MelBands(26, 512, sr, 0, 8000);
-
-// // HTK, Kaldi:
-// var melbank = FilterBanks.Triangular(512, sr, melbands, null, Utils.Scale.HerzToMel);
-
-// // LIBROSA:
-// // var melbank = FilterBanks.Triangular(512, sr, melbands);
\ No newline at end of file
diff --git a/NWaves.DemoForms/MfccForm.resx b/NWaves.DemoForms/MfccForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/MfccForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/ModulationForm.Designer.cs b/NWaves.DemoForms/ModulationForm.Designer.cs
deleted file mode 100644
index e5d25db..0000000
--- a/NWaves.DemoForms/ModulationForm.Designer.cs
+++ /dev/null
@@ -1,221 +0,0 @@
-namespace NWaves.DemoForms
-{
- partial class ModulationForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.demodulateButton = new System.Windows.Forms.Button();
- this.modulateButton = new System.Windows.Forms.Button();
- this.demodulatedPlot = new NWaves.DemoForms.UserControls.LinePlot();
- this.modulatedPlot = new NWaves.DemoForms.UserControls.LinePlot();
- this.carrierFrequencyTextBox = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.modulationFrequencyTextBox = new System.Windows.Forms.TextBox();
- this.label3 = new System.Windows.Forms.Label();
- this.modulationIndexTextBox = new System.Windows.Forms.TextBox();
- this.amplitudeRadioButton = new System.Windows.Forms.RadioButton();
- this.frequencyRadioButton = new System.Windows.Forms.RadioButton();
- this.phaseRadioButton = new System.Windows.Forms.RadioButton();
- this.SuspendLayout();
- //
- // demodulateButton
- //
- this.demodulateButton.Location = new System.Drawing.Point(633, 305);
- this.demodulateButton.Name = "demodulateButton";
- this.demodulateButton.Size = new System.Drawing.Size(204, 39);
- this.demodulateButton.TabIndex = 2;
- this.demodulateButton.Text = "Demodulate";
- this.demodulateButton.UseVisualStyleBackColor = true;
- this.demodulateButton.Click += new System.EventHandler(this.demodulateButton_Click);
- //
- // modulateButton
- //
- this.modulateButton.Location = new System.Drawing.Point(633, 39);
- this.modulateButton.Name = "modulateButton";
- this.modulateButton.Size = new System.Drawing.Size(204, 39);
- this.modulateButton.TabIndex = 3;
- this.modulateButton.Text = "Modulate";
- this.modulateButton.UseVisualStyleBackColor = true;
- this.modulateButton.Click += new System.EventHandler(this.modulateButton_Click);
- //
- // demodulatedPlot
- //
- this.demodulatedPlot.AutoScroll = true;
- this.demodulatedPlot.BackColor = System.Drawing.Color.White;
- this.demodulatedPlot.ForeColor = System.Drawing.Color.Blue;
- this.demodulatedPlot.Location = new System.Drawing.Point(12, 356);
- this.demodulatedPlot.Name = "demodulatedPlot";
- this.demodulatedPlot.PaddingX = 30;
- this.demodulatedPlot.PaddingY = 20;
- this.demodulatedPlot.Size = new System.Drawing.Size(825, 165);
- this.demodulatedPlot.Stride = 1;
- this.demodulatedPlot.TabIndex = 1;
- this.demodulatedPlot.Thickness = 1;
- //
- // modulatedPlot
- //
- this.modulatedPlot.AutoScroll = true;
- this.modulatedPlot.BackColor = System.Drawing.Color.White;
- this.modulatedPlot.ForeColor = System.Drawing.Color.Blue;
- this.modulatedPlot.Location = new System.Drawing.Point(13, 123);
- this.modulatedPlot.Name = "modulatedPlot";
- this.modulatedPlot.PaddingX = 30;
- this.modulatedPlot.PaddingY = 20;
- this.modulatedPlot.Size = new System.Drawing.Size(826, 165);
- this.modulatedPlot.Stride = 1;
- this.modulatedPlot.TabIndex = 0;
- this.modulatedPlot.Thickness = 1;
- //
- // carrierFrequencyTextBox
- //
- this.carrierFrequencyTextBox.Location = new System.Drawing.Point(163, 24);
- this.carrierFrequencyTextBox.Name = "carrierFrequencyTextBox";
- this.carrierFrequencyTextBox.Size = new System.Drawing.Size(65, 22);
- this.carrierFrequencyTextBox.TabIndex = 4;
- this.carrierFrequencyTextBox.Text = "3000";
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(13, 25);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(118, 17);
- this.label1.TabIndex = 5;
- this.label1.Text = "Carrier frequency";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(13, 53);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(144, 17);
- this.label2.TabIndex = 7;
- this.label2.Text = "Modulation frequency";
- //
- // modulationFrequencyTextBox
- //
- this.modulationFrequencyTextBox.Location = new System.Drawing.Point(163, 52);
- this.modulationFrequencyTextBox.Name = "modulationFrequencyTextBox";
- this.modulationFrequencyTextBox.Size = new System.Drawing.Size(65, 22);
- this.modulationFrequencyTextBox.TabIndex = 6;
- this.modulationFrequencyTextBox.Text = "100";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(13, 81);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(114, 17);
- this.label3.TabIndex = 9;
- this.label3.Text = "Modulation index";
- //
- // modulationIndexTextBox
- //
- this.modulationIndexTextBox.Location = new System.Drawing.Point(163, 80);
- this.modulationIndexTextBox.Name = "modulationIndexTextBox";
- this.modulationIndexTextBox.Size = new System.Drawing.Size(65, 22);
- this.modulationIndexTextBox.TabIndex = 8;
- this.modulationIndexTextBox.Text = "0,5";
- //
- // amplitudeRadioButton
- //
- this.amplitudeRadioButton.AutoSize = true;
- this.amplitudeRadioButton.Checked = true;
- this.amplitudeRadioButton.Location = new System.Drawing.Point(317, 24);
- this.amplitudeRadioButton.Name = "amplitudeRadioButton";
- this.amplitudeRadioButton.Size = new System.Drawing.Size(91, 21);
- this.amplitudeRadioButton.TabIndex = 10;
- this.amplitudeRadioButton.TabStop = true;
- this.amplitudeRadioButton.Text = "Amplitude";
- this.amplitudeRadioButton.UseVisualStyleBackColor = true;
- this.amplitudeRadioButton.CheckedChanged += new System.EventHandler(this.amplitudeRadioButton_CheckedChanged);
- //
- // frequencyRadioButton
- //
- this.frequencyRadioButton.AutoSize = true;
- this.frequencyRadioButton.Location = new System.Drawing.Point(317, 53);
- this.frequencyRadioButton.Name = "frequencyRadioButton";
- this.frequencyRadioButton.Size = new System.Drawing.Size(96, 21);
- this.frequencyRadioButton.TabIndex = 11;
- this.frequencyRadioButton.Text = "Frequency";
- this.frequencyRadioButton.UseVisualStyleBackColor = true;
- this.frequencyRadioButton.CheckedChanged += new System.EventHandler(this.frequencyRadioButton_CheckedChanged);
- //
- // phaseRadioButton
- //
- this.phaseRadioButton.AutoSize = true;
- this.phaseRadioButton.Location = new System.Drawing.Point(317, 81);
- this.phaseRadioButton.Name = "phaseRadioButton";
- this.phaseRadioButton.Size = new System.Drawing.Size(69, 21);
- this.phaseRadioButton.TabIndex = 12;
- this.phaseRadioButton.Text = "Phase";
- this.phaseRadioButton.UseVisualStyleBackColor = true;
- this.phaseRadioButton.CheckedChanged += new System.EventHandler(this.phaseRadioButton_CheckedChanged);
- //
- // ModulationForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(851, 533);
- this.Controls.Add(this.phaseRadioButton);
- this.Controls.Add(this.frequencyRadioButton);
- this.Controls.Add(this.amplitudeRadioButton);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.modulationIndexTextBox);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.modulationFrequencyTextBox);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.carrierFrequencyTextBox);
- this.Controls.Add(this.modulateButton);
- this.Controls.Add(this.demodulateButton);
- this.Controls.Add(this.demodulatedPlot);
- this.Controls.Add(this.modulatedPlot);
- this.Name = "ModulationForm";
- this.Text = "ModulationForm";
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private UserControls.LinePlot modulatedPlot;
- private UserControls.LinePlot demodulatedPlot;
- private System.Windows.Forms.Button demodulateButton;
- private System.Windows.Forms.Button modulateButton;
- private System.Windows.Forms.TextBox carrierFrequencyTextBox;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.TextBox modulationFrequencyTextBox;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.TextBox modulationIndexTextBox;
- private System.Windows.Forms.RadioButton amplitudeRadioButton;
- private System.Windows.Forms.RadioButton frequencyRadioButton;
- private System.Windows.Forms.RadioButton phaseRadioButton;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/ModulationForm.cs b/NWaves.DemoForms/ModulationForm.cs
deleted file mode 100644
index 780300f..0000000
--- a/NWaves.DemoForms/ModulationForm.cs
+++ /dev/null
@@ -1,104 +0,0 @@
-using NWaves.Operations;
-using NWaves.Signals;
-using NWaves.Signals.Builders;
-using System;
-using System.Windows.Forms;
-
-namespace NWaves.DemoForms
-{
- public partial class ModulationForm : Form
- {
- public enum ModulationMode
- {
- Amplitude,
- Frequency,
- Phase
- }
-
- Modulator _modulator = new Modulator();
- ModulationMode _modulationMode = ModulationMode.Amplitude;
- DiscreteSignal _modulated;
-
- public ModulationForm()
- {
- InitializeComponent();
- }
-
- private void modulateButton_Click(object sender, EventArgs e)
- {
- var carrierFrequency = float.Parse(carrierFrequencyTextBox.Text);
- var carrierAmplitude = 1.0f;
- var modulationFrequency = float.Parse(modulationFrequencyTextBox.Text);
- var modulationIndex = float.Parse(modulationIndexTextBox.Text);
-
- var carrier = new CosineBuilder()
- .SetParameter("min", -carrierAmplitude)
- .SetParameter("max", carrierAmplitude)
- .SetParameter("freq", carrierFrequency)
- .OfLength(1024)
- .SampledAt(16000)
- .Build();
-
- var baseband = new CosineBuilder()
- .SetParameter("min", -modulationIndex)
- .SetParameter("max", modulationIndex)
- .SetParameter("freq", modulationFrequency)
- .OfLength(1024)
- .SampledAt(16000)
- .Build();
-
- switch (_modulationMode)
- {
- case ModulationMode.Frequency:
- _modulated = _modulator.Frequency(baseband, carrierAmplitude, carrierFrequency);
- break;
-
- case ModulationMode.Phase:
- _modulated = _modulator.Phase(baseband, carrierAmplitude, carrierFrequency);
- break;
-
- default:
- _modulated = _modulator.Amplitude(carrier, modulationFrequency, modulationIndex);
- break;
- }
-
- modulatedPlot.Line = _modulated.Samples;
- modulatedPlot.Markline = baseband.Samples;
- }
-
- private void demodulateButton_Click(object sender, EventArgs e)
- {
- DiscreteSignal demodulated;
-
- switch (_modulationMode)
- {
- case ModulationMode.Frequency:
- case ModulationMode.Phase:
- demodulated = _modulator.DemodulateFrequency(_modulated);
- break;
-
- default:
- demodulated = _modulator.DemodulateAmplitude(_modulated);
- break;
- }
-
- demodulatedPlot.Markline = demodulated.Samples;
- demodulatedPlot.Line = _modulated.Samples;
- }
-
- private void amplitudeRadioButton_CheckedChanged(object sender, EventArgs e)
- {
- if (amplitudeRadioButton.Checked) _modulationMode = ModulationMode.Amplitude;
- }
-
- private void frequencyRadioButton_CheckedChanged(object sender, EventArgs e)
- {
- if (frequencyRadioButton.Checked) _modulationMode = ModulationMode.Frequency;
- }
-
- private void phaseRadioButton_CheckedChanged(object sender, EventArgs e)
- {
- if (phaseRadioButton.Checked) _modulationMode = ModulationMode.Phase;
- }
- }
-}
diff --git a/NWaves.DemoForms/ModulationForm.resx b/NWaves.DemoForms/ModulationForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NWaves.DemoForms/ModulationForm.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/NWaves.DemoForms.csproj b/NWaves.DemoForms/NWaves.DemoForms.csproj
deleted file mode 100644
index a4350f1..0000000
--- a/NWaves.DemoForms/NWaves.DemoForms.csproj
+++ /dev/null
@@ -1,276 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {E4BDD4FB-2EA6-42BE-A72E-7D0905948EED}
- WinExe
- Properties
- NWaves.DemoForms
- NWaves.DemoForms
- v4.6.2
- 512
- true
-
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE
- prompt
- 4
-
-
-
- ..\packages\ar1st0crat.SciColorMaps.1.0.2\lib\portable40-net40+sl5+win8+wpa81\SciColorMaps.dll
- True
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Form
-
-
- AdaptiveFiltersForm.cs
-
-
- Form
-
-
- EffectsForm.cs
-
-
- Form
-
-
- FeaturesForm.cs
-
-
- Form
-
-
- FiltersForm.cs
-
-
- Form
-
-
- HpssForm.cs
-
-
- Form
-
-
- LpcForm.cs
-
-
- Form
-
-
- MfccForm.cs
-
-
- Form
-
-
- AmsForm.cs
-
-
-
- Form
-
-
- ModulationForm.cs
-
-
- Form
-
-
- NoiseForm.cs
-
-
- Form
-
-
- OnlineDemoForm.cs
-
-
- Form
-
-
- PitchForm.cs
-
-
- UserControl
-
-
- GroupPlot.cs
-
-
- UserControl
-
-
- PoleZeroPlot.cs
-
-
- UserControl
-
-
- LinePlot.cs
-
-
- UserControl
-
-
- SignalPlot.cs
-
-
- Form
-
-
- SignalsForm.cs
-
-
-
-
- UserControl
-
-
- SpectrogramPlot.cs
-
-
- Form
-
-
- StftForm.cs
-
-
- Form
-
-
- WaveletForm.cs
-
-
- AdaptiveFiltersForm.cs
-
-
- EffectsForm.cs
-
-
- FeaturesForm.cs
-
-
- FiltersForm.cs
-
-
- HpssForm.cs
-
-
- LpcForm.cs
-
-
- MfccForm.cs
-
-
- AmsForm.cs
-
-
- ModulationForm.cs
-
-
- NoiseForm.cs
-
-
- OnlineDemoForm.cs
-
-
- PitchForm.cs
-
-
- GroupPlot.cs
-
-
- PoleZeroPlot.cs
-
-
- LinePlot.cs
-
-
- SignalPlot.cs
-
-
- SignalsForm.cs
-
-
- ResXFileCodeGenerator
- Resources.Designer.cs
- Designer
-
-
- True
- Resources.resx
- True
-
-
- SpectrogramPlot.cs
-
-
- StftForm.cs
-
-
- WaveletForm.cs
-
-
-
- SettingsSingleFileGenerator
- Settings.Designer.cs
-
-
- True
- Settings.settings
- True
-
-
-
-
-
-
-
- {3fbf1b3a-3bed-4f2f-8008-871acf83e352}
- NWaves
-
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/NoiseForm.Designer.cs b/NWaves.DemoForms/NoiseForm.Designer.cs
deleted file mode 100644
index 005e0fe..0000000
--- a/NWaves.DemoForms/NoiseForm.Designer.cs
+++ /dev/null
@@ -1,234 +0,0 @@
-namespace NWaves.DemoForms
-{
- partial class NoiseForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.signalPlot = new NWaves.DemoForms.UserControls.SignalPlot();
- this.noisePlot = new NWaves.DemoForms.UserControls.SignalPlot();
- this.processedPlot = new NWaves.DemoForms.UserControls.SignalPlot();
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.loadnoiseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.loadsignalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.processToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.playSignalButton = new System.Windows.Forms.Button();
- this.playNoiseButton = new System.Windows.Forms.Button();
- this.playProcessedButton = new System.Windows.Forms.Button();
- this.menuStrip1.SuspendLayout();
- this.SuspendLayout();
- //
- // signalPlot
- //
- this.signalPlot.AutoScroll = true;
- this.signalPlot.BackColor = System.Drawing.Color.White;
- this.signalPlot.ForeColor = System.Drawing.Color.Blue;
- this.signalPlot.Gain = 1F;
- this.signalPlot.Location = new System.Drawing.Point(13, 53);
- this.signalPlot.Name = "signalPlot";
- this.signalPlot.PaddingX = 24;
- this.signalPlot.PaddingY = 5;
- this.signalPlot.Signal = null;
- this.signalPlot.Size = new System.Drawing.Size(993, 156);
- this.signalPlot.Stride = 64;
- this.signalPlot.TabIndex = 0;
- //
- // noisePlot
- //
- this.noisePlot.AutoScroll = true;
- this.noisePlot.BackColor = System.Drawing.Color.White;
- this.noisePlot.ForeColor = System.Drawing.Color.Blue;
- this.noisePlot.Gain = 1F;
- this.noisePlot.Location = new System.Drawing.Point(13, 242);
- this.noisePlot.Name = "noisePlot";
- this.noisePlot.PaddingX = 24;
- this.noisePlot.PaddingY = 5;
- this.noisePlot.Signal = null;
- this.noisePlot.Size = new System.Drawing.Size(993, 156);
- this.noisePlot.Stride = 64;
- this.noisePlot.TabIndex = 1;
- //
- // processedPlot
- //
- this.processedPlot.AutoScroll = true;
- this.processedPlot.BackColor = System.Drawing.Color.White;
- this.processedPlot.ForeColor = System.Drawing.Color.Blue;
- this.processedPlot.Gain = 1F;
- this.processedPlot.Location = new System.Drawing.Point(12, 434);
- this.processedPlot.Name = "processedPlot";
- this.processedPlot.PaddingX = 24;
- this.processedPlot.PaddingY = 5;
- this.processedPlot.Signal = null;
- this.processedPlot.Size = new System.Drawing.Size(994, 156);
- this.processedPlot.Stride = 64;
- this.processedPlot.TabIndex = 2;
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem,
- this.processToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1018, 28);
- this.menuStrip1.TabIndex = 3;
- this.menuStrip1.Text = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.loadsignalToolStripMenuItem,
- this.loadnoiseToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
- this.fileToolStripMenuItem.Text = "&File";
- //
- // loadnoiseToolStripMenuItem
- //
- this.loadnoiseToolStripMenuItem.Name = "loadnoiseToolStripMenuItem";
- this.loadnoiseToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
- this.loadnoiseToolStripMenuItem.Text = "Load &noise";
- this.loadnoiseToolStripMenuItem.Click += new System.EventHandler(this.loadnoiseToolStripMenuItem_Click);
- //
- // loadsignalToolStripMenuItem
- //
- this.loadsignalToolStripMenuItem.Name = "loadsignalToolStripMenuItem";
- this.loadsignalToolStripMenuItem.Size = new System.Drawing.Size(181, 26);
- this.loadsignalToolStripMenuItem.Text = "Load &signal";
- this.loadsignalToolStripMenuItem.Click += new System.EventHandler(this.loadsignalToolStripMenuItem_Click);
- //
- // processToolStripMenuItem
- //
- this.processToolStripMenuItem.Name = "processToolStripMenuItem";
- this.processToolStripMenuItem.Size = new System.Drawing.Size(70, 24);
- this.processToolStripMenuItem.Text = "&Process";
- this.processToolStripMenuItem.Click += new System.EventHandler(this.processToolStripMenuItem_Click);
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(494, 33);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(47, 17);
- this.label1.TabIndex = 4;
- this.label1.Text = "Signal";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(494, 222);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(44, 17);
- this.label2.TabIndex = 5;
- this.label2.Text = "Noise";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(479, 414);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(75, 17);
- this.label3.TabIndex = 6;
- this.label3.Text = "Processed";
- //
- // playSignalButton
- //
- this.playSignalButton.Location = new System.Drawing.Point(931, 53);
- this.playSignalButton.Name = "playSignalButton";
- this.playSignalButton.Size = new System.Drawing.Size(75, 31);
- this.playSignalButton.TabIndex = 7;
- this.playSignalButton.Text = "Play";
- this.playSignalButton.UseVisualStyleBackColor = true;
- this.playSignalButton.Click += new System.EventHandler(this.playSignalButton_Click);
- //
- // playNoiseButton
- //
- this.playNoiseButton.Location = new System.Drawing.Point(931, 242);
- this.playNoiseButton.Name = "playNoiseButton";
- this.playNoiseButton.Size = new System.Drawing.Size(75, 31);
- this.playNoiseButton.TabIndex = 8;
- this.playNoiseButton.Text = "Play";
- this.playNoiseButton.UseVisualStyleBackColor = true;
- this.playNoiseButton.Click += new System.EventHandler(this.playNoiseButton_Click);
- //
- // playProcessedButton
- //
- this.playProcessedButton.Location = new System.Drawing.Point(931, 434);
- this.playProcessedButton.Name = "playProcessedButton";
- this.playProcessedButton.Size = new System.Drawing.Size(75, 31);
- this.playProcessedButton.TabIndex = 9;
- this.playProcessedButton.Text = "Play";
- this.playProcessedButton.UseVisualStyleBackColor = true;
- this.playProcessedButton.Click += new System.EventHandler(this.playProcessedButton_Click);
- //
- // NoiseForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1018, 602);
- this.Controls.Add(this.playProcessedButton);
- this.Controls.Add(this.playNoiseButton);
- this.Controls.Add(this.playSignalButton);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.processedPlot);
- this.Controls.Add(this.noisePlot);
- this.Controls.Add(this.signalPlot);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "NoiseForm";
- this.Text = "NoiseForm";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private UserControls.SignalPlot signalPlot;
- private UserControls.SignalPlot noisePlot;
- private UserControls.SignalPlot processedPlot;
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem loadsignalToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem loadnoiseToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem processToolStripMenuItem;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Button playSignalButton;
- private System.Windows.Forms.Button playNoiseButton;
- private System.Windows.Forms.Button playProcessedButton;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/NoiseForm.cs b/NWaves.DemoForms/NoiseForm.cs
deleted file mode 100644
index ed101d2..0000000
--- a/NWaves.DemoForms/NoiseForm.cs
+++ /dev/null
@@ -1,103 +0,0 @@
-using System;
-using System.IO;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.Operations;
-using NWaves.Signals;
-
-namespace NWaves.DemoForms
-{
- public partial class NoiseForm : Form
- {
- private DiscreteSignal _signal;
- private DiscreteSignal _noise;
- private DiscreteSignal _processed;
-
- private short _bitDepth;
-
- private readonly MemoryStreamPlayer _player = new MemoryStreamPlayer();
-
-
- public NoiseForm()
- {
- InitializeComponent();
-
- signalPlot.Gain = 100;
- noisePlot.Gain = 100;
- processedPlot.Gain = 100;
- }
-
- private void loadsignalToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog
- {
- InitialDirectory = @"D:\Docs\Research\DATABASE\Dictor1\wav"
- };
-
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(ofd.FileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _bitDepth = waveFile.WaveFmt.BitsPerSample;
- _signal = waveFile[Channels.Average];
- }
-
- signalPlot.Signal = _signal;
- }
-
- private void loadnoiseToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog
- {
- InitialDirectory = @"D:\Docs\Research\DATABASE\Various\Фоновые звуки"
- };
-
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(ofd.FileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _bitDepth = waveFile.WaveFmt.BitsPerSample;
- _noise = waveFile[Channels.Average];
- }
-
- _noise.Amplify(0.2f);
-
- if (_noise.SamplingRate != _signal.SamplingRate)
- {
- _noise = Operation.Resample(_noise, _signal.SamplingRate);
- }
-
- noisePlot.Signal = _signal + _noise;
- }
-
- private void processToolStripMenuItem_Click(object sender, EventArgs e)
- {
- _processed = Operation.SpectralSubtract(_signal + _noise, _noise);
-
- processedPlot.Signal = _processed;
- }
-
- private async void playSignalButton_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_signal, _bitDepth);
- }
-
- private async void playNoiseButton_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_signal + _noise, _bitDepth);
- }
-
- private async void playProcessedButton_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_processed, _bitDepth);
- }
- }
-}
diff --git a/NWaves.DemoForms/NoiseForm.resx b/NWaves.DemoForms/NoiseForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/NoiseForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/OnlineDemoForm.Designer.cs b/NWaves.DemoForms/OnlineDemoForm.Designer.cs
deleted file mode 100644
index 84e553c..0000000
--- a/NWaves.DemoForms/OnlineDemoForm.Designer.cs
+++ /dev/null
@@ -1,305 +0,0 @@
-namespace NWaves.DemoForms
-{
- partial class OnlineDemoForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- this.signalPlot = new NWaves.DemoForms.UserControls.SignalPlot();
- this.nextButton = new System.Windows.Forms.Button();
- this.startButton = new System.Windows.Forms.Button();
- this.stopButton = new System.Windows.Forms.Button();
- this.intervalTextBox = new System.Windows.Forms.TextBox();
- this.kernelSizeTextBox = new System.Windows.Forms.TextBox();
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.loadToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.fftSizeTextBox = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.chunkTimer = new System.Windows.Forms.Timer(this.components);
- this.applyButton = new System.Windows.Forms.Button();
- this.filteredSignalPlot = new NWaves.DemoForms.UserControls.SignalPlot();
- this.labelInfo = new System.Windows.Forms.Label();
- this.filteredFullSignalPlot = new NWaves.DemoForms.UserControls.SignalPlot();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.menuStrip1.SuspendLayout();
- this.SuspendLayout();
- //
- // signalPlot
- //
- this.signalPlot.AutoScroll = true;
- this.signalPlot.BackColor = System.Drawing.Color.White;
- this.signalPlot.ForeColor = System.Drawing.Color.Blue;
- this.signalPlot.Gain = 75F;
- this.signalPlot.Location = new System.Drawing.Point(10, 229);
- this.signalPlot.Name = "signalPlot";
- this.signalPlot.PaddingX = 24;
- this.signalPlot.PaddingY = 5;
- this.signalPlot.Signal = null;
- this.signalPlot.Size = new System.Drawing.Size(535, 140);
- this.signalPlot.Stride = 64;
- this.signalPlot.TabIndex = 0;
- //
- // nextButton
- //
- this.nextButton.Location = new System.Drawing.Point(590, 52);
- this.nextButton.Name = "nextButton";
- this.nextButton.Size = new System.Drawing.Size(133, 87);
- this.nextButton.TabIndex = 2;
- this.nextButton.Text = "Next chunk";
- this.nextButton.UseVisualStyleBackColor = true;
- this.nextButton.Click += new System.EventHandler(this.nextButton_Click);
- //
- // startButton
- //
- this.startButton.Location = new System.Drawing.Point(729, 52);
- this.startButton.Name = "startButton";
- this.startButton.Size = new System.Drawing.Size(133, 87);
- this.startButton.TabIndex = 3;
- this.startButton.Text = "Start";
- this.startButton.UseVisualStyleBackColor = true;
- this.startButton.Click += new System.EventHandler(this.startButton_Click);
- //
- // stopButton
- //
- this.stopButton.Location = new System.Drawing.Point(868, 52);
- this.stopButton.Name = "stopButton";
- this.stopButton.Size = new System.Drawing.Size(133, 87);
- this.stopButton.TabIndex = 4;
- this.stopButton.Text = "Stop";
- this.stopButton.UseVisualStyleBackColor = true;
- this.stopButton.Click += new System.EventHandler(this.stopButton_Click);
- //
- // intervalTextBox
- //
- this.intervalTextBox.Location = new System.Drawing.Point(244, 105);
- this.intervalTextBox.Name = "intervalTextBox";
- this.intervalTextBox.Size = new System.Drawing.Size(54, 22);
- this.intervalTextBox.TabIndex = 5;
- this.intervalTextBox.Text = "100";
- //
- // kernelSizeTextBox
- //
- this.kernelSizeTextBox.Location = new System.Drawing.Point(244, 78);
- this.kernelSizeTextBox.Name = "kernelSizeTextBox";
- this.kernelSizeTextBox.Size = new System.Drawing.Size(54, 22);
- this.kernelSizeTextBox.TabIndex = 6;
- this.kernelSizeTextBox.Text = "301";
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.loadToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1092, 28);
- this.menuStrip1.TabIndex = 7;
- this.menuStrip1.Text = "menuStrip1";
- //
- // loadToolStripMenuItem
- //
- this.loadToolStripMenuItem.Name = "loadToolStripMenuItem";
- this.loadToolStripMenuItem.Size = new System.Drawing.Size(63, 24);
- this.loadToolStripMenuItem.Text = "&Load...";
- this.loadToolStripMenuItem.Click += new System.EventHandler(this.loadToolStripMenuItem_Click);
- //
- // fftSizeTextBox
- //
- this.fftSizeTextBox.Location = new System.Drawing.Point(244, 52);
- this.fftSizeTextBox.Name = "fftSizeTextBox";
- this.fftSizeTextBox.Size = new System.Drawing.Size(54, 22);
- this.fftSizeTextBox.TabIndex = 8;
- this.fftSizeTextBox.Text = "4096";
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(149, 52);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(62, 17);
- this.label1.TabIndex = 9;
- this.label1.Text = "FFT size";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(149, 78);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(78, 17);
- this.label2.TabIndex = 10;
- this.label2.Text = "Kernel size";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(149, 105);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(89, 17);
- this.label3.TabIndex = 11;
- this.label3.Text = "Time interval";
- //
- // chunkTimer
- //
- this.chunkTimer.Tick += new System.EventHandler(this.ProcessNewChunk);
- //
- // applyButton
- //
- this.applyButton.Location = new System.Drawing.Point(152, 144);
- this.applyButton.Name = "applyButton";
- this.applyButton.Size = new System.Drawing.Size(146, 34);
- this.applyButton.TabIndex = 12;
- this.applyButton.Text = "Apply";
- this.applyButton.UseVisualStyleBackColor = true;
- this.applyButton.Click += new System.EventHandler(this.applyButton_Click);
- //
- // filteredSignalPlot
- //
- this.filteredSignalPlot.AutoScroll = true;
- this.filteredSignalPlot.BackColor = System.Drawing.Color.White;
- this.filteredSignalPlot.ForeColor = System.Drawing.Color.Blue;
- this.filteredSignalPlot.Gain = 75F;
- this.filteredSignalPlot.Location = new System.Drawing.Point(551, 229);
- this.filteredSignalPlot.Name = "filteredSignalPlot";
- this.filteredSignalPlot.PaddingX = 24;
- this.filteredSignalPlot.PaddingY = 5;
- this.filteredSignalPlot.Signal = null;
- this.filteredSignalPlot.Size = new System.Drawing.Size(529, 140);
- this.filteredSignalPlot.Stride = 64;
- this.filteredSignalPlot.TabIndex = 13;
- //
- // labelInfo
- //
- this.labelInfo.AutoSize = true;
- this.labelInfo.Location = new System.Drawing.Point(587, 161);
- this.labelInfo.Name = "labelInfo";
- this.labelInfo.Size = new System.Drawing.Size(208, 17);
- this.labelInfo.TabIndex = 14;
- this.labelInfo.Text = "Chunk #1 Processed 0 seconds";
- //
- // filteredFullSignalPlot
- //
- this.filteredFullSignalPlot.AutoScroll = true;
- this.filteredFullSignalPlot.BackColor = System.Drawing.Color.White;
- this.filteredFullSignalPlot.ForeColor = System.Drawing.Color.Blue;
- this.filteredFullSignalPlot.Gain = 75F;
- this.filteredFullSignalPlot.Location = new System.Drawing.Point(10, 420);
- this.filteredFullSignalPlot.Name = "filteredFullSignalPlot";
- this.filteredFullSignalPlot.PaddingX = 24;
- this.filteredFullSignalPlot.PaddingY = 5;
- this.filteredFullSignalPlot.Signal = null;
- this.filteredFullSignalPlot.Size = new System.Drawing.Size(1070, 140);
- this.filteredFullSignalPlot.Stride = 64;
- this.filteredFullSignalPlot.TabIndex = 15;
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(499, 389);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(96, 17);
- this.label4.TabIndex = 16;
- this.label4.Text = "Filtered signal";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(177, 207);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(132, 17);
- this.label5.TabIndex = 17;
- this.label5.Text = "Current input chunk";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(747, 207);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(141, 17);
- this.label6.TabIndex = 18;
- this.label6.Text = "Current output chunk";
- //
- // OnlineDemoForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1092, 572);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.filteredFullSignalPlot);
- this.Controls.Add(this.labelInfo);
- this.Controls.Add(this.filteredSignalPlot);
- this.Controls.Add(this.applyButton);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.fftSizeTextBox);
- this.Controls.Add(this.kernelSizeTextBox);
- this.Controls.Add(this.intervalTextBox);
- this.Controls.Add(this.stopButton);
- this.Controls.Add(this.startButton);
- this.Controls.Add(this.nextButton);
- this.Controls.Add(this.signalPlot);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "OnlineDemoForm";
- this.Text = "OnlineDemoForm";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private UserControls.SignalPlot signalPlot;
- private System.Windows.Forms.Button nextButton;
- private System.Windows.Forms.Button startButton;
- private System.Windows.Forms.Button stopButton;
- private System.Windows.Forms.TextBox intervalTextBox;
- private System.Windows.Forms.TextBox kernelSizeTextBox;
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem loadToolStripMenuItem;
- private System.Windows.Forms.TextBox fftSizeTextBox;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Timer chunkTimer;
- private System.Windows.Forms.Button applyButton;
- private UserControls.SignalPlot filteredSignalPlot;
- private System.Windows.Forms.Label labelInfo;
- private UserControls.SignalPlot filteredFullSignalPlot;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/OnlineDemoForm.cs b/NWaves.DemoForms/OnlineDemoForm.cs
deleted file mode 100644
index 7d8cc7b..0000000
--- a/NWaves.DemoForms/OnlineDemoForm.cs
+++ /dev/null
@@ -1,170 +0,0 @@
-using System;
-using System.IO;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.Audio.Interfaces;
-using NWaves.Filters.Base;
-using NWaves.Filters.Fda;
-using NWaves.Operations.Convolution;
-using NWaves.Signals;
-using NWaves.Utils;
-
-namespace NWaves.DemoForms
-{
- public partial class OnlineDemoForm : Form
- {
- DiscreteSignal _signal;
- DiscreteSignal _filtered;
-
- OlaBlockConvolver _blockConvolver;
-
- ///
- /// Buffer for input chunk
- ///
- float[] _input;
-
- ///
- /// Buffer for output chunk
- ///
- float[] _output;
-
- Random _randomizer = new Random();
-
- int _offset = 0;
- int _filteredOffset = 0;
- int _filteredLength = 0;
- int _chunkNo = 0;
- int _fftSize;
-
- public OnlineDemoForm()
- {
- InitializeComponent();
- ApplySettings();
-
- signalPlot.Stride = 100;
- filteredSignalPlot.Stride = 100;
- filteredFullSignalPlot.Stride = 1000;
- }
-
- private void ApplySettings()
- {
- _fftSize = int.Parse(fftSizeTextBox.Text);
-
- chunkTimer.Interval = int.Parse(intervalTextBox.Text);
-
- var kernel = DesignFilter.FirWinLp(int.Parse(kernelSizeTextBox.Text), 0.2);
-
- _blockConvolver = new OlaBlockConvolver(kernel, _fftSize);
-
- // or equivalently:
- //_blockConvolver = OlaBlockConvolver.FromFilter(new FirFilter(kernel), _fftSize);
-
- _output = new float[_blockConvolver.HopSize * 5];
- }
-
- private void loadToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(ofd.FileName, FileMode.Open))
- {
- IAudioContainer waveFile = new WaveFile(stream);
- _signal = waveFile[Channels.Left];
- }
-
- // this signal will accumulate the output chunks in lower panel and it's just for visualization
-
- _filteredLength = Math.Min(_signal.Length + _fftSize, 60 * 16000);
- _filtered = new DiscreteSignal(_signal.SamplingRate, _filteredLength);
-
- signalPlot.Signal = _signal;
-
- Text = $"{ofd.FileName} | {_signal.Length} samples | {_signal.Duration} seconds";
- }
-
- private void nextButton_Click(object sender, EventArgs e)
- {
- ProcessNewChunk(this, null);
- }
-
- private void startButton_Click(object sender, EventArgs e)
- {
- chunkTimer.Start();
- }
-
- private void stopButton_Click(object sender, EventArgs e)
- {
- chunkTimer.Stop();
- _offset = 0;
- _filteredOffset = 0;
- _chunkNo = 0;
-
- _filtered = new DiscreteSignal(_signal.SamplingRate, _filteredLength);
- }
-
- private void applyButton_Click(object sender, EventArgs e)
- {
- ApplySettings();
- }
-
- ///
- /// Here is the main function for online processing of chunks:
- ///
- private void ProcessNewChunk(object sender, EventArgs e)
- {
- // =========================== take next chunk of random size ================================
- // (random size is chosen carefully)
-
- var randomSize = Math.Min(_randomizer.Next(_blockConvolver.HopSize / 4, _blockConvolver.HopSize * 4),
- Math.Min(_signal.Length - _offset,
- _filteredLength - _filteredOffset));
-
- _input = _signal[_offset, _offset + randomSize].Samples;
-
-
- // ===================================== process it ==========================================
-
- _blockConvolver.Process(_input, _output);
-
-
- // ===================== do what we want with a new portion of data ==========================
-
- _output.FastCopyTo(_filtered.Samples, _input.Length, 0, _filteredOffset);
-
- _offset += _input.Length;
- _filteredOffset += _input.Length;
-
- // ================================= visualize signals =======================================
-
- signalPlot.Signal = new DiscreteSignal(_signal.SamplingRate, _input);
- filteredSignalPlot.Signal = new DiscreteSignal(_signal.SamplingRate, _output);
-
- if (_filteredOffset >= _filtered.Length - _input.Length)
- {
- _filteredOffset = 0;
- _filtered = new DiscreteSignal(_signal.SamplingRate, Math.Min(_signal.Length + _fftSize, 60 * 16000));
- }
- filteredFullSignalPlot.Signal = _filtered;
-
- // ====================== reset if we've reached the end of a signal =========================
-
- if (_offset + randomSize >= _signal.Length)
- {
- _offset = 0;
- _filteredOffset = 0;
- _chunkNo = 0;
- _blockConvolver.Reset();
-
- _filtered = new DiscreteSignal(_signal.SamplingRate, _filteredLength);
- }
-
- _chunkNo++;
-
- labelInfo.Text = $"Chunk #{_chunkNo + 1} / Processed {(float)_offset/_signal.SamplingRate} seconds";
- }
- }
-}
diff --git a/NWaves.DemoForms/OnlineDemoForm.resx b/NWaves.DemoForms/OnlineDemoForm.resx
deleted file mode 100644
index 2a8239f..0000000
--- a/NWaves.DemoForms/OnlineDemoForm.resx
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
- 152, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/PitchForm.Designer.cs b/NWaves.DemoForms/PitchForm.Designer.cs
deleted file mode 100644
index 44e5f0c..0000000
--- a/NWaves.DemoForms/PitchForm.Designer.cs
+++ /dev/null
@@ -1,312 +0,0 @@
-using NWaves.DemoForms.UserControls;
-
-namespace NWaves.DemoForms
-{
- partial class PitchForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.label1 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.prevButton = new System.Windows.Forms.Button();
- this.nextButton = new System.Windows.Forms.Button();
- this.specNoComboBox = new System.Windows.Forms.ComboBox();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.label5 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.cepstrumSizeTextBox = new System.Windows.Forms.TextBox();
- this.hopSizeTextBox = new System.Windows.Forms.TextBox();
- this.fftSizeTextBox = new System.Windows.Forms.TextBox();
- this.label6 = new System.Windows.Forms.Label();
- this.spectrogramPanel = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.autoCorrPanel = new NWaves.DemoForms.UserControls.LinePlot();
- this.cepstrumPanel = new NWaves.DemoForms.UserControls.LinePlot();
- this.spectrumPanel = new NWaves.DemoForms.UserControls.LinePlot();
- this.menuStrip1.SuspendLayout();
- this.groupBox1.SuspendLayout();
- this.SuspendLayout();
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1204, 28);
- this.menuStrip1.TabIndex = 0;
- this.menuStrip1.Text = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
- this.fileToolStripMenuItem.Text = "&File";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(129, 26);
- this.openToolStripMenuItem.Text = "&Open...";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(260, 327);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(68, 17);
- this.label1.TabIndex = 3;
- this.label1.Text = "Spectrum";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(678, 327);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(68, 17);
- this.label2.TabIndex = 4;
- this.label2.Text = "Cepstrum";
- //
- // prevButton
- //
- this.prevButton.Location = new System.Drawing.Point(1001, 55);
- this.prevButton.Name = "prevButton";
- this.prevButton.Size = new System.Drawing.Size(63, 24);
- this.prevButton.TabIndex = 5;
- this.prevButton.Text = "Prev";
- this.prevButton.UseVisualStyleBackColor = true;
- this.prevButton.Click += new System.EventHandler(this.prevButton_Click);
- //
- // nextButton
- //
- this.nextButton.Location = new System.Drawing.Point(1135, 55);
- this.nextButton.Name = "nextButton";
- this.nextButton.Size = new System.Drawing.Size(56, 24);
- this.nextButton.TabIndex = 6;
- this.nextButton.Text = "Next";
- this.nextButton.UseVisualStyleBackColor = true;
- this.nextButton.Click += new System.EventHandler(this.nextButton_Click);
- //
- // specNoComboBox
- //
- this.specNoComboBox.FormattingEnabled = true;
- this.specNoComboBox.ItemHeight = 16;
- this.specNoComboBox.Location = new System.Drawing.Point(1070, 55);
- this.specNoComboBox.Name = "specNoComboBox";
- this.specNoComboBox.Size = new System.Drawing.Size(59, 24);
- this.specNoComboBox.TabIndex = 7;
- this.specNoComboBox.TextChanged += new System.EventHandler(this.specNoComboBox_TextChanged);
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.label5);
- this.groupBox1.Controls.Add(this.label4);
- this.groupBox1.Controls.Add(this.label3);
- this.groupBox1.Controls.Add(this.cepstrumSizeTextBox);
- this.groupBox1.Controls.Add(this.hopSizeTextBox);
- this.groupBox1.Controls.Add(this.fftSizeTextBox);
- this.groupBox1.Location = new System.Drawing.Point(1001, 105);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(190, 206);
- this.groupBox1.TabIndex = 11;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "Parameters";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(13, 135);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(97, 17);
- this.label5.TabIndex = 16;
- this.label5.Text = "Cepstrum size";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(13, 94);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(63, 17);
- this.label4.TabIndex = 15;
- this.label4.Text = "Hop size";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(13, 53);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(62, 17);
- this.label3.TabIndex = 14;
- this.label3.Text = "FFT size";
- //
- // cepstrumSizeTextBox
- //
- this.cepstrumSizeTextBox.Location = new System.Drawing.Point(121, 130);
- this.cepstrumSizeTextBox.Name = "cepstrumSizeTextBox";
- this.cepstrumSizeTextBox.Size = new System.Drawing.Size(55, 22);
- this.cepstrumSizeTextBox.TabIndex = 13;
- this.cepstrumSizeTextBox.Text = "256";
- //
- // hopSizeTextBox
- //
- this.hopSizeTextBox.Location = new System.Drawing.Point(121, 89);
- this.hopSizeTextBox.Name = "hopSizeTextBox";
- this.hopSizeTextBox.Size = new System.Drawing.Size(55, 22);
- this.hopSizeTextBox.TabIndex = 12;
- this.hopSizeTextBox.Text = "100";
- //
- // fftSizeTextBox
- //
- this.fftSizeTextBox.Location = new System.Drawing.Point(121, 48);
- this.fftSizeTextBox.Name = "fftSizeTextBox";
- this.fftSizeTextBox.Size = new System.Drawing.Size(55, 22);
- this.fftSizeTextBox.TabIndex = 11;
- this.fftSizeTextBox.Text = "1024";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(992, 327);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(109, 17);
- this.label6.TabIndex = 6;
- this.label6.Text = "Auto-correlation";
- //
- // spectrogramPanel
- //
- this.spectrogramPanel.AutoScroll = true;
- this.spectrogramPanel.BackColor = System.Drawing.Color.White;
- this.spectrogramPanel.ColorMapName = "magma";
- this.spectrogramPanel.Location = new System.Drawing.Point(12, 55);
- this.spectrogramPanel.Markline = null;
- this.spectrogramPanel.Name = "spectrogramPanel";
- this.spectrogramPanel.Size = new System.Drawing.Size(973, 256);
- this.spectrogramPanel.Spectrogram = null;
- this.spectrogramPanel.TabIndex = 2;
- //
- // autoCorrPanel
- //
- this.autoCorrPanel.AutoScroll = true;
- this.autoCorrPanel.BackColor = System.Drawing.Color.White;
- this.autoCorrPanel.ForeColor = System.Drawing.Color.Blue;
- this.autoCorrPanel.Location = new System.Drawing.Point(880, 347);
- this.autoCorrPanel.Name = "autoCorrPanel";
- this.autoCorrPanel.PaddingX = 30;
- this.autoCorrPanel.PaddingY = 20;
- this.autoCorrPanel.Size = new System.Drawing.Size(311, 256);
- this.autoCorrPanel.Stride = 20;
- this.autoCorrPanel.TabIndex = 5;
- this.autoCorrPanel.Thickness = 1;
- //
- // cepstrumPanel
- //
- this.cepstrumPanel.AutoScroll = true;
- this.cepstrumPanel.BackColor = System.Drawing.Color.White;
- this.cepstrumPanel.ForeColor = System.Drawing.Color.Blue;
- this.cepstrumPanel.Location = new System.Drawing.Point(570, 347);
- this.cepstrumPanel.Name = "cepstrumPanel";
- this.cepstrumPanel.PaddingX = 30;
- this.cepstrumPanel.PaddingY = 20;
- this.cepstrumPanel.Size = new System.Drawing.Size(304, 256);
- this.cepstrumPanel.Stride = 20;
- this.cepstrumPanel.TabIndex = 2;
- this.cepstrumPanel.Thickness = 1;
- //
- // spectrumPanel
- //
- this.spectrumPanel.AutoScroll = true;
- this.spectrumPanel.BackColor = System.Drawing.Color.White;
- this.spectrumPanel.ForeColor = System.Drawing.Color.Blue;
- this.spectrumPanel.Location = new System.Drawing.Point(14, 347);
- this.spectrumPanel.Name = "spectrumPanel";
- this.spectrumPanel.PaddingX = 30;
- this.spectrumPanel.PaddingY = 20;
- this.spectrumPanel.Size = new System.Drawing.Size(550, 256);
- this.spectrumPanel.Stride = 1;
- this.spectrumPanel.TabIndex = 1;
- this.spectrumPanel.Thickness = 1;
- //
- // PitchForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1204, 617);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.spectrogramPanel);
- this.Controls.Add(this.autoCorrPanel);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.specNoComboBox);
- this.Controls.Add(this.nextButton);
- this.Controls.Add(this.prevButton);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.cepstrumPanel);
- this.Controls.Add(this.spectrumPanel);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "PitchForm";
- this.Text = "PitchForm";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.groupBox1.ResumeLayout(false);
- this.groupBox1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private LinePlot spectrumPanel;
- private LinePlot cepstrumPanel;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Button prevButton;
- private System.Windows.Forms.Button nextButton;
- private System.Windows.Forms.ComboBox specNoComboBox;
- private System.Windows.Forms.GroupBox groupBox1;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.TextBox cepstrumSizeTextBox;
- private System.Windows.Forms.TextBox hopSizeTextBox;
- private System.Windows.Forms.TextBox fftSizeTextBox;
- private SpectrogramPlot spectrogramPanel;
- private System.Windows.Forms.Label label6;
- private LinePlot autoCorrPanel;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/PitchForm.cs b/NWaves.DemoForms/PitchForm.cs
deleted file mode 100644
index 7eef02a..0000000
--- a/NWaves.DemoForms/PitchForm.cs
+++ /dev/null
@@ -1,190 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.IO;
-using System.Linq;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.FeatureExtractors;
-using NWaves.FeatureExtractors.Base;
-using NWaves.FeatureExtractors.Options;
-using NWaves.Features;
-using NWaves.Operations;
-using NWaves.Signals;
-using NWaves.Transforms;
-using NWaves.Windows;
-using LevelScale = NWaves.Utils.Scale;
-
-namespace NWaves.DemoForms
-{
- public partial class PitchForm : Form
- {
- private DiscreteSignal _signal;
-
- private RealFft _fft;
- private CepstralTransform _cepstralTransform;
- private Stft _stft;
-
- private int _fftSize;
- private int _hopSize;
- private int _cepstrumSize;
-
- private List _pitches;
-
- private int _specNo;
-
- public PitchForm()
- {
- InitializeComponent();
-
- cepstrumPanel.Gain = 200;
- cepstrumPanel.Stride = 1;
- cepstrumPanel.ForeColor = Color.Blue;
- autoCorrPanel.Gain = 5;
- autoCorrPanel.Stride = 1;
- autoCorrPanel.ForeColor = Color.SeaGreen;
- }
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(ofd.FileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _signal = waveFile[Channels.Left];
- }
-
- _fftSize = int.Parse(fftSizeTextBox.Text);
- _cepstrumSize = int.Parse(cepstrumSizeTextBox.Text);
- _hopSize = int.Parse(hopSizeTextBox.Text);
-
- _fft = new RealFft(_fftSize);
- _cepstralTransform = new CepstralTransform(_cepstrumSize, _fftSize);
-
- var options = new PitchOptions
- {
- SamplingRate = _signal.SamplingRate,
- FrameDuration = (double)_fftSize / _signal.SamplingRate,
- HopDuration = (double)_hopSize / _signal.SamplingRate
- };
-
- var pitchExtractor = new PitchExtractor(options);
-
- _pitches = pitchExtractor.ParallelComputeFrom(_signal);
-
- _specNo = 0;
- specNoComboBox.DataSource = Enumerable.Range(1, _pitches.Count).ToArray();
-
- // obtain spectrogram
-
- _stft = new Stft(_fftSize, _hopSize, WindowType.Rectangular);
- var spectrogram = _stft.Spectrogram(_signal);
-
- spectrogramPanel.ColorMapName = "viridis";
- spectrogramPanel.MarklineThickness = 6;
- spectrogramPanel.Spectrogram = spectrogram.Select(s => s.Take(224).ToArray()).ToList();
- spectrogramPanel.Markline = _pitches.Select(p => p[0] * _fftSize / _signal.SamplingRate).ToArray();
- }
-
- private void specNoComboBox_TextChanged(object sender, EventArgs e)
- {
- _specNo = int.Parse(specNoComboBox.Text) - 1;
- UpdateAutoCorrelation();
- UpdateSpectrumAndCepstrum();
- }
-
- private void prevButton_Click(object sender, EventArgs e)
- {
- _specNo--;
- specNoComboBox.Text = (_specNo + 1).ToString();
- }
-
- private void nextButton_Click(object sender, EventArgs e)
- {
- _specNo++;
- specNoComboBox.Text = (_specNo + 1).ToString();
- }
-
- private void UpdateSpectrumAndCepstrum()
- {
- var fftSize = int.Parse(fftSizeTextBox.Text);
- var cepstrumSize = int.Parse(cepstrumSizeTextBox.Text);
- _hopSize = int.Parse(hopSizeTextBox.Text);
-
- if (fftSize != _fftSize)
- {
- _fftSize = fftSize;
- _fft = new RealFft(fftSize);
- _cepstralTransform = new CepstralTransform(cepstrumSize, _fftSize);
- }
-
- if (cepstrumSize != _cepstrumSize)
- {
- _cepstrumSize = cepstrumSize;
- _cepstralTransform = new CepstralTransform(_cepstrumSize, _fftSize);
- }
-
- var pos = _hopSize * _specNo;
- var block = _signal[pos, pos + _fftSize];
-
- //block.ApplyWindow(WindowTypes.Hamming);
-
- var cepstrum = new float[_fftSize];
- _cepstralTransform.RealCepstrum(block.Samples, cepstrum);
-
- // ************************************************************************
- // just visualize spectrum estimated from cepstral coefficients:
- // ************************************************************************
-
- var real = new float[_fftSize];
- var imag = new float[_fftSize];
-
- for (var i = 0; i < 32; i++)
- {
- real[i] = cepstrum[i];
- }
-
- _fft.Direct(real, real, imag);
-
- var spectrum = _fft.PowerSpectrum(block, normalize: false).Samples;
- var avg = spectrum.Average(s => LevelScale.ToDecibel(s));
-
- var spectrumEstimate = real.Take(_fftSize / 2 + 1)
- .Select(s => (float)LevelScale.FromDecibel(s * 40 - avg))
- .ToArray();
-
- spectrumPanel.Line = spectrum;
- spectrumPanel.Markline = spectrumEstimate;
- spectrumPanel.ToDecibel();
-
- var pitch = Pitch.FromCepstrum(block);
-
- cepstrumPanel.Line = cepstrum;
- cepstrumPanel.Mark = (int)(_signal.SamplingRate / pitch);
- }
-
- private void UpdateAutoCorrelation()
- {
- var pos = _hopSize * _specNo;
-
- var pitch = //Pitch.FromHss(_signal, pos, pos + _fftSize);
- Pitch.FromAutoCorrelation(_signal, pos, pos + _fftSize, 80, 1000);
- //Pitch.FromZeroCrossingsSchmitt(_signal, pos, pos + _fftSize);
- //Pitch.FromYin(_signal, pos, pos + _fftSize);
-
- spectrumPanel.Mark = (int)(_fftSize * pitch / _signal.SamplingRate); // pitch index
- spectrumPanel.Legend = string.Format("{0:F2} Hz", pitch);
-
- var block = _signal[pos, pos + _fftSize];
- var autoCorrelation = Operation.CrossCorrelate(block, block).Last(_fftSize);
-
- autoCorrPanel.Line = autoCorrelation.Samples;
- autoCorrPanel.Mark = pitch == 0 ? 0 : (int)(_signal.SamplingRate / pitch); // pitch index
- }
- }
-}
diff --git a/NWaves.DemoForms/PitchForm.resx b/NWaves.DemoForms/PitchForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/PitchForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/Program.cs b/NWaves.DemoForms/Program.cs
deleted file mode 100644
index 66b8284..0000000
--- a/NWaves.DemoForms/Program.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-using System;
-using System.Windows.Forms;
-
-namespace NWaves.DemoForms
-{
- static class Program
- {
- ///
- /// The main entry point for the application.
- ///
- [STAThread]
- static void Main()
- {
- Application.EnableVisualStyles();
- Application.SetCompatibleTextRenderingDefault(false);
- Application.Run(new SignalsForm());
- }
- }
-}
diff --git a/NWaves.DemoForms/Properties/AssemblyInfo.cs b/NWaves.DemoForms/Properties/AssemblyInfo.cs
deleted file mode 100644
index 951fb09..0000000
--- a/NWaves.DemoForms/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("NWaves.DemoForms")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("NWaves.DemoForms")]
-[assembly: AssemblyCopyright("Copyright © 2017")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("e4bdd4fb-2ea6-42be-a72e-7d0905948eed")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/NWaves.DemoForms/Properties/Resources.Designer.cs b/NWaves.DemoForms/Properties/Resources.Designer.cs
deleted file mode 100644
index ac557fb..0000000
--- a/NWaves.DemoForms/Properties/Resources.Designer.cs
+++ /dev/null
@@ -1,63 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace NWaves.DemoForms.Properties {
- using System;
-
-
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- internal class Resources {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- internal Resources() {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("NWaves.DemoForms.Properties.Resources", typeof(Resources).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- internal static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
- }
-}
diff --git a/NWaves.DemoForms/Properties/Resources.resx b/NWaves.DemoForms/Properties/Resources.resx
deleted file mode 100644
index af7dbeb..0000000
--- a/NWaves.DemoForms/Properties/Resources.resx
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/Properties/Settings.Designer.cs b/NWaves.DemoForms/Properties/Settings.Designer.cs
deleted file mode 100644
index d27fb56..0000000
--- a/NWaves.DemoForms/Properties/Settings.Designer.cs
+++ /dev/null
@@ -1,26 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace NWaves.DemoForms.Properties {
-
-
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "15.7.0.0")]
- internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
-
- private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
-
- public static Settings Default {
- get {
- return defaultInstance;
- }
- }
- }
-}
diff --git a/NWaves.DemoForms/Properties/Settings.settings b/NWaves.DemoForms/Properties/Settings.settings
deleted file mode 100644
index 3964565..0000000
--- a/NWaves.DemoForms/Properties/Settings.settings
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
diff --git a/NWaves.DemoForms/SignalsForm.Designer.cs b/NWaves.DemoForms/SignalsForm.Designer.cs
deleted file mode 100644
index ed4485a..0000000
--- a/NWaves.DemoForms/SignalsForm.Designer.cs
+++ /dev/null
@@ -1,648 +0,0 @@
-using System.Drawing;
-using NWaves.DemoForms.UserControls;
-
-namespace NWaves.DemoForms
-{
- partial class SignalsForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.openFileButton = new System.Windows.Forms.Button();
- this.filenameTextBox = new System.Windows.Forms.TextBox();
- this.builderParametersListBox = new System.Windows.Forms.ListBox();
- this.signalPanel = new NWaves.DemoForms.UserControls.SignalPlot();
- this.generatedSignalPanel = new NWaves.DemoForms.UserControls.SignalPlot();
- this.superimposedSignalPanel = new NWaves.DemoForms.UserControls.SignalPlot();
- this.spectrumPanel = new NWaves.DemoForms.UserControls.LinePlot();
- this.builderComboBox = new System.Windows.Forms.ComboBox();
- this.operationComboBox = new System.Windows.Forms.ComboBox();
- this.generateSignalButton = new System.Windows.Forms.Button();
- this.signalOperationButton = new System.Windows.Forms.Button();
- this.durationTextBox = new System.Windows.Forms.TextBox();
- this.operationSamplesTextBox = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.leftSliceTextBox = new System.Windows.Forms.TextBox();
- this.signalSliceButton = new System.Windows.Forms.Button();
- this.rightSliceTextBox = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
- this.saveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
- this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.playbackToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.playToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.pauseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
- this.recordToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
- this.stopToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.filtersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.pitchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.mfccToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.lpcToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.modulationSpectrumToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.effectsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.featuresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.noiseToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.modulationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.onlineToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.adaptiveToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.hpssToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.stftButton = new System.Windows.Forms.Button();
- this.waveletsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.menuStrip1.SuspendLayout();
- this.SuspendLayout();
- //
- // openFileButton
- //
- this.openFileButton.Location = new System.Drawing.Point(1122, 31);
- this.openFileButton.Name = "openFileButton";
- this.openFileButton.Size = new System.Drawing.Size(75, 37);
- this.openFileButton.TabIndex = 0;
- this.openFileButton.Text = "Open...";
- this.openFileButton.UseVisualStyleBackColor = true;
- this.openFileButton.Click += new System.EventHandler(this.openFileButton_Click);
- //
- // filenameTextBox
- //
- this.filenameTextBox.Location = new System.Drawing.Point(12, 38);
- this.filenameTextBox.Name = "filenameTextBox";
- this.filenameTextBox.Size = new System.Drawing.Size(1104, 22);
- this.filenameTextBox.TabIndex = 1;
- //
- // builderParametersListBox
- //
- this.builderParametersListBox.FormattingEnabled = true;
- this.builderParametersListBox.ItemHeight = 16;
- this.builderParametersListBox.Location = new System.Drawing.Point(13, 99);
- this.builderParametersListBox.Name = "builderParametersListBox";
- this.builderParametersListBox.Size = new System.Drawing.Size(177, 628);
- this.builderParametersListBox.TabIndex = 2;
- //
- // signalPanel
- //
- this.signalPanel.AutoScroll = true;
- this.signalPanel.BackColor = System.Drawing.SystemColors.ButtonHighlight;
- this.signalPanel.ForeColor = System.Drawing.Color.Blue;
- this.signalPanel.Gain = 1F;
- this.signalPanel.Location = new System.Drawing.Point(196, 99);
- this.signalPanel.Name = "signalPanel";
- this.signalPanel.PaddingX = 24;
- this.signalPanel.PaddingY = 5;
- this.signalPanel.Signal = null;
- this.signalPanel.Size = new System.Drawing.Size(1001, 165);
- this.signalPanel.Stride = 64;
- this.signalPanel.TabIndex = 3;
- //
- // generatedSignalPanel
- //
- this.generatedSignalPanel.AutoScroll = true;
- this.generatedSignalPanel.BackColor = System.Drawing.SystemColors.ButtonHighlight;
- this.generatedSignalPanel.ForeColor = System.Drawing.Color.Red;
- this.generatedSignalPanel.Gain = 1F;
- this.generatedSignalPanel.Location = new System.Drawing.Point(196, 332);
- this.generatedSignalPanel.Name = "generatedSignalPanel";
- this.generatedSignalPanel.PaddingX = 24;
- this.generatedSignalPanel.PaddingY = 5;
- this.generatedSignalPanel.Signal = null;
- this.generatedSignalPanel.Size = new System.Drawing.Size(610, 184);
- this.generatedSignalPanel.Stride = 64;
- this.generatedSignalPanel.TabIndex = 4;
- //
- // superimposedSignalPanel
- //
- this.superimposedSignalPanel.AutoScroll = true;
- this.superimposedSignalPanel.BackColor = System.Drawing.SystemColors.ButtonHighlight;
- this.superimposedSignalPanel.ForeColor = System.Drawing.Color.SeaGreen;
- this.superimposedSignalPanel.Gain = 1F;
- this.superimposedSignalPanel.Location = new System.Drawing.Point(197, 543);
- this.superimposedSignalPanel.Name = "superimposedSignalPanel";
- this.superimposedSignalPanel.PaddingX = 24;
- this.superimposedSignalPanel.PaddingY = 5;
- this.superimposedSignalPanel.Signal = null;
- this.superimposedSignalPanel.Size = new System.Drawing.Size(1000, 181);
- this.superimposedSignalPanel.Stride = 64;
- this.superimposedSignalPanel.TabIndex = 5;
- //
- // spectrumPanel
- //
- this.spectrumPanel.AutoScroll = true;
- this.spectrumPanel.BackColor = System.Drawing.SystemColors.ButtonHighlight;
- this.spectrumPanel.ForeColor = System.Drawing.Color.Blue;
- this.spectrumPanel.Location = new System.Drawing.Point(812, 332);
- this.spectrumPanel.Name = "spectrumPanel";
- this.spectrumPanel.PaddingX = 30;
- this.spectrumPanel.PaddingY = 20;
- this.spectrumPanel.Size = new System.Drawing.Size(385, 184);
- this.spectrumPanel.Stride = 1;
- this.spectrumPanel.TabIndex = 5;
- this.spectrumPanel.Thickness = 1;
- //
- // builderComboBox
- //
- this.builderComboBox.FormattingEnabled = true;
- this.builderComboBox.Items.AddRange(new object[] {
- "Sinusoid",
- "Sawtooth",
- "Triangle Wave",
- "Square Wave",
- "Pulse Wave",
- "Chirp",
- "Sinc",
- "Ramp",
- "White Noise",
- "AWGN",
- "Pink Noise",
- "Red Noise",
- "Perlin Noise"});
- this.builderComboBox.Location = new System.Drawing.Point(197, 271);
- this.builderComboBox.Name = "builderComboBox";
- this.builderComboBox.Size = new System.Drawing.Size(124, 24);
- this.builderComboBox.TabIndex = 6;
- this.builderComboBox.Text = "Sinusoid";
- //
- // operationComboBox
- //
- this.operationComboBox.FormattingEnabled = true;
- this.operationComboBox.Items.AddRange(new object[] {
- "Delay by",
- "Repeat times"});
- this.operationComboBox.Location = new System.Drawing.Point(198, 301);
- this.operationComboBox.Name = "operationComboBox";
- this.operationComboBox.Size = new System.Drawing.Size(123, 24);
- this.operationComboBox.TabIndex = 7;
- this.operationComboBox.Text = "Delay by";
- //
- // generateSignalButton
- //
- this.generateSignalButton.Location = new System.Drawing.Point(471, 271);
- this.generateSignalButton.Name = "generateSignalButton";
- this.generateSignalButton.Size = new System.Drawing.Size(38, 23);
- this.generateSignalButton.TabIndex = 8;
- this.generateSignalButton.Text = ">>";
- this.generateSignalButton.UseVisualStyleBackColor = true;
- this.generateSignalButton.Click += new System.EventHandler(this.generateSignalButton_Click);
- //
- // signalOperationButton
- //
- this.signalOperationButton.Location = new System.Drawing.Point(471, 303);
- this.signalOperationButton.Name = "signalOperationButton";
- this.signalOperationButton.Size = new System.Drawing.Size(37, 23);
- this.signalOperationButton.TabIndex = 9;
- this.signalOperationButton.Text = ">>";
- this.signalOperationButton.UseVisualStyleBackColor = true;
- this.signalOperationButton.Click += new System.EventHandler(this.signalOperationButton_Click);
- //
- // durationTextBox
- //
- this.durationTextBox.Location = new System.Drawing.Point(327, 272);
- this.durationTextBox.Name = "durationTextBox";
- this.durationTextBox.Size = new System.Drawing.Size(71, 22);
- this.durationTextBox.TabIndex = 10;
- //
- // operationSamplesTextBox
- //
- this.operationSamplesTextBox.Location = new System.Drawing.Point(327, 303);
- this.operationSamplesTextBox.Name = "operationSamplesTextBox";
- this.operationSamplesTextBox.Size = new System.Drawing.Size(71, 22);
- this.operationSamplesTextBox.TabIndex = 11;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(404, 273);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(60, 17);
- this.label1.TabIndex = 12;
- this.label1.Text = "samples";
- //
- // leftSliceTextBox
- //
- this.leftSliceTextBox.Location = new System.Drawing.Point(610, 303);
- this.leftSliceTextBox.Name = "leftSliceTextBox";
- this.leftSliceTextBox.Size = new System.Drawing.Size(60, 22);
- this.leftSliceTextBox.TabIndex = 15;
- //
- // signalSliceButton
- //
- this.signalSliceButton.Location = new System.Drawing.Point(769, 303);
- this.signalSliceButton.Name = "signalSliceButton";
- this.signalSliceButton.Size = new System.Drawing.Size(37, 23);
- this.signalSliceButton.TabIndex = 14;
- this.signalSliceButton.Text = ">>";
- this.signalSliceButton.UseVisualStyleBackColor = true;
- this.signalSliceButton.Click += new System.EventHandler(this.signalSliceButton_Click);
- //
- // rightSliceTextBox
- //
- this.rightSliceTextBox.Location = new System.Drawing.Point(702, 303);
- this.rightSliceTextBox.Name = "rightSliceTextBox";
- this.rightSliceTextBox.Size = new System.Drawing.Size(60, 22);
- this.rightSliceTextBox.TabIndex = 16;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(568, 304);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(36, 17);
- this.label2.TabIndex = 17;
- this.label2.Text = "from";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(676, 304);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(20, 17);
- this.label3.TabIndex = 18;
- this.label3.Text = "to";
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem,
- this.playbackToolStripMenuItem,
- this.filtersToolStripMenuItem,
- this.pitchToolStripMenuItem,
- this.mfccToolStripMenuItem,
- this.lpcToolStripMenuItem,
- this.modulationSpectrumToolStripMenuItem,
- this.effectsToolStripMenuItem,
- this.featuresToolStripMenuItem,
- this.noiseToolStripMenuItem,
- this.modulationToolStripMenuItem,
- this.onlineToolStripMenuItem,
- this.adaptiveToolStripMenuItem,
- this.hpssToolStripMenuItem,
- this.waveletsToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1207, 28);
- this.menuStrip1.TabIndex = 19;
- this.menuStrip1.Text = "menuStrip1";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem1,
- this.saveToolStripMenuItem,
- this.toolStripSeparator1,
- this.exitToolStripMenuItem});
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
- this.openToolStripMenuItem.Text = "&File";
- //
- // openToolStripMenuItem1
- //
- this.openToolStripMenuItem1.Name = "openToolStripMenuItem1";
- this.openToolStripMenuItem1.Size = new System.Drawing.Size(142, 26);
- this.openToolStripMenuItem1.Text = "&Open...";
- this.openToolStripMenuItem1.Click += new System.EventHandler(this.openToolStripMenuItem1_Click);
- //
- // saveToolStripMenuItem
- //
- this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
- this.saveToolStripMenuItem.Size = new System.Drawing.Size(142, 26);
- this.saveToolStripMenuItem.Text = "&Save as...";
- this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
- //
- // toolStripSeparator1
- //
- this.toolStripSeparator1.Name = "toolStripSeparator1";
- this.toolStripSeparator1.Size = new System.Drawing.Size(139, 6);
- //
- // exitToolStripMenuItem
- //
- this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
- this.exitToolStripMenuItem.Size = new System.Drawing.Size(142, 26);
- this.exitToolStripMenuItem.Text = "&Exit";
- this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
- //
- // playbackToolStripMenuItem
- //
- this.playbackToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.playToolStripMenuItem,
- this.pauseToolStripMenuItem,
- this.toolStripSeparator2,
- this.recordToolStripMenuItem,
- this.toolStripSeparator3,
- this.stopToolStripMenuItem});
- this.playbackToolStripMenuItem.Name = "playbackToolStripMenuItem";
- this.playbackToolStripMenuItem.Size = new System.Drawing.Size(79, 24);
- this.playbackToolStripMenuItem.Text = "Playback";
- //
- // playToolStripMenuItem
- //
- this.playToolStripMenuItem.Name = "playToolStripMenuItem";
- this.playToolStripMenuItem.Size = new System.Drawing.Size(131, 26);
- this.playToolStripMenuItem.Text = "&Play";
- this.playToolStripMenuItem.Click += new System.EventHandler(this.playToolStripMenuItem_Click);
- //
- // pauseToolStripMenuItem
- //
- this.pauseToolStripMenuItem.Name = "pauseToolStripMenuItem";
- this.pauseToolStripMenuItem.Size = new System.Drawing.Size(131, 26);
- this.pauseToolStripMenuItem.Text = "Pa&use";
- this.pauseToolStripMenuItem.Click += new System.EventHandler(this.pauseToolStripMenuItem_Click);
- //
- // toolStripSeparator2
- //
- this.toolStripSeparator2.Name = "toolStripSeparator2";
- this.toolStripSeparator2.Size = new System.Drawing.Size(128, 6);
- //
- // recordToolStripMenuItem
- //
- this.recordToolStripMenuItem.Name = "recordToolStripMenuItem";
- this.recordToolStripMenuItem.Size = new System.Drawing.Size(131, 26);
- this.recordToolStripMenuItem.Text = "&Record";
- this.recordToolStripMenuItem.Click += new System.EventHandler(this.recordToolStripMenuItem_Click);
- //
- // toolStripSeparator3
- //
- this.toolStripSeparator3.Name = "toolStripSeparator3";
- this.toolStripSeparator3.Size = new System.Drawing.Size(128, 6);
- //
- // stopToolStripMenuItem
- //
- this.stopToolStripMenuItem.Name = "stopToolStripMenuItem";
- this.stopToolStripMenuItem.Size = new System.Drawing.Size(131, 26);
- this.stopToolStripMenuItem.Text = "&Stop";
- this.stopToolStripMenuItem.Click += new System.EventHandler(this.stopToolStripMenuItem_Click);
- //
- // filtersToolStripMenuItem
- //
- this.filtersToolStripMenuItem.Name = "filtersToolStripMenuItem";
- this.filtersToolStripMenuItem.Size = new System.Drawing.Size(60, 24);
- this.filtersToolStripMenuItem.Text = "Filters";
- this.filtersToolStripMenuItem.Click += new System.EventHandler(this.filtersToolStripMenuItem_Click);
- //
- // pitchToolStripMenuItem
- //
- this.pitchToolStripMenuItem.Name = "pitchToolStripMenuItem";
- this.pitchToolStripMenuItem.Size = new System.Drawing.Size(53, 24);
- this.pitchToolStripMenuItem.Text = "P&itch";
- this.pitchToolStripMenuItem.Click += new System.EventHandler(this.pitchToolStripMenuItem_Click);
- //
- // mfccToolStripMenuItem
- //
- this.mfccToolStripMenuItem.Name = "mfccToolStripMenuItem";
- this.mfccToolStripMenuItem.Size = new System.Drawing.Size(53, 24);
- this.mfccToolStripMenuItem.Text = "&Mfcc";
- this.mfccToolStripMenuItem.Click += new System.EventHandler(this.mfccToolStripMenuItem_Click);
- //
- // lpcToolStripMenuItem
- //
- this.lpcToolStripMenuItem.Name = "lpcToolStripMenuItem";
- this.lpcToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
- this.lpcToolStripMenuItem.Text = "&Lpc";
- this.lpcToolStripMenuItem.Click += new System.EventHandler(this.lpcToolStripMenuItem_Click);
- //
- // modulationSpectrumToolStripMenuItem
- //
- this.modulationSpectrumToolStripMenuItem.Name = "modulationSpectrumToolStripMenuItem";
- this.modulationSpectrumToolStripMenuItem.Size = new System.Drawing.Size(50, 24);
- this.modulationSpectrumToolStripMenuItem.Text = "&Ams";
- this.modulationSpectrumToolStripMenuItem.Click += new System.EventHandler(this.modulationSpectrumToolStripMenuItem_Click);
- //
- // effectsToolStripMenuItem
- //
- this.effectsToolStripMenuItem.Name = "effectsToolStripMenuItem";
- this.effectsToolStripMenuItem.Size = new System.Drawing.Size(65, 24);
- this.effectsToolStripMenuItem.Text = "&Effects";
- this.effectsToolStripMenuItem.Click += new System.EventHandler(this.effectsToolStripMenuItem_Click);
- //
- // featuresToolStripMenuItem
- //
- this.featuresToolStripMenuItem.Name = "featuresToolStripMenuItem";
- this.featuresToolStripMenuItem.Size = new System.Drawing.Size(76, 24);
- this.featuresToolStripMenuItem.Text = "Fea&tures";
- this.featuresToolStripMenuItem.Click += new System.EventHandler(this.featuresToolStripMenuItem_Click);
- //
- // noiseToolStripMenuItem
- //
- this.noiseToolStripMenuItem.Name = "noiseToolStripMenuItem";
- this.noiseToolStripMenuItem.Size = new System.Drawing.Size(59, 24);
- this.noiseToolStripMenuItem.Text = "&Noise";
- this.noiseToolStripMenuItem.Click += new System.EventHandler(this.noiseToolStripMenuItem_Click);
- //
- // modulationToolStripMenuItem
- //
- this.modulationToolStripMenuItem.Name = "modulationToolStripMenuItem";
- this.modulationToolStripMenuItem.Size = new System.Drawing.Size(98, 24);
- this.modulationToolStripMenuItem.Text = "Mo&dulation";
- this.modulationToolStripMenuItem.Click += new System.EventHandler(this.modulationToolStripMenuItem_Click);
- //
- // onlineToolStripMenuItem
- //
- this.onlineToolStripMenuItem.Name = "onlineToolStripMenuItem";
- this.onlineToolStripMenuItem.Size = new System.Drawing.Size(64, 24);
- this.onlineToolStripMenuItem.Text = "&Online";
- this.onlineToolStripMenuItem.Click += new System.EventHandler(this.onlineToolStripMenuItem_Click);
- //
- // adaptiveToolStripMenuItem
- //
- this.adaptiveToolStripMenuItem.Name = "adaptiveToolStripMenuItem";
- this.adaptiveToolStripMenuItem.Size = new System.Drawing.Size(81, 24);
- this.adaptiveToolStripMenuItem.Text = "Adaptive";
- this.adaptiveToolStripMenuItem.Click += new System.EventHandler(this.adaptiveToolStripMenuItem_Click);
- //
- // hpssToolStripMenuItem
- //
- this.hpssToolStripMenuItem.Name = "hpssToolStripMenuItem";
- this.hpssToolStripMenuItem.Size = new System.Drawing.Size(53, 24);
- this.hpssToolStripMenuItem.Text = "&Hpss";
- this.hpssToolStripMenuItem.Click += new System.EventHandler(this.hpssToolStripMenuItem_Click);
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(35, 72);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(128, 17);
- this.label4.TabIndex = 20;
- this.label4.Text = "Builder parameters";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(405, 306);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(60, 17);
- this.label5.TabIndex = 21;
- this.label5.Text = "samples";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(196, 519);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(140, 17);
- this.label6.TabIndex = 22;
- this.label6.Text = "Superimposed signal";
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(690, 72);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(47, 17);
- this.label7.TabIndex = 23;
- this.label7.Text = "Signal";
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(976, 312);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(68, 17);
- this.label8.TabIndex = 24;
- this.label8.Text = "Spectrum";
- //
- // stftButton
- //
- this.stftButton.Location = new System.Drawing.Point(1135, 305);
- this.stftButton.Name = "stftButton";
- this.stftButton.Size = new System.Drawing.Size(62, 28);
- this.stftButton.TabIndex = 25;
- this.stftButton.Text = "More...";
- this.stftButton.UseVisualStyleBackColor = true;
- this.stftButton.Click += new System.EventHandler(this.stftButton_Click);
- //
- // waveletsToolStripMenuItem
- //
- this.waveletsToolStripMenuItem.Name = "waveletsToolStripMenuItem";
- this.waveletsToolStripMenuItem.Size = new System.Drawing.Size(80, 24);
- this.waveletsToolStripMenuItem.Text = "&Wavelets";
- this.waveletsToolStripMenuItem.Click += new System.EventHandler(this.waveletsToolStripMenuItem_Click);
- //
- // SignalsForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1207, 735);
- this.Controls.Add(this.stftButton);
- this.Controls.Add(this.label8);
- this.Controls.Add(this.label7);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.rightSliceTextBox);
- this.Controls.Add(this.leftSliceTextBox);
- this.Controls.Add(this.signalSliceButton);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.operationSamplesTextBox);
- this.Controls.Add(this.durationTextBox);
- this.Controls.Add(this.signalOperationButton);
- this.Controls.Add(this.generateSignalButton);
- this.Controls.Add(this.operationComboBox);
- this.Controls.Add(this.builderComboBox);
- this.Controls.Add(this.spectrumPanel);
- this.Controls.Add(this.superimposedSignalPanel);
- this.Controls.Add(this.generatedSignalPanel);
- this.Controls.Add(this.signalPanel);
- this.Controls.Add(this.builderParametersListBox);
- this.Controls.Add(this.filenameTextBox);
- this.Controls.Add(this.openFileButton);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "SignalsForm";
- this.Text = "Signals";
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.Button openFileButton;
- private System.Windows.Forms.TextBox filenameTextBox;
- private System.Windows.Forms.ListBox builderParametersListBox;
- private SignalPlot signalPanel;
- private SignalPlot generatedSignalPanel;
- private SignalPlot superimposedSignalPanel;
- private LinePlot spectrumPanel;
- private System.Windows.Forms.ComboBox builderComboBox;
- private System.Windows.Forms.ComboBox operationComboBox;
- private System.Windows.Forms.Button generateSignalButton;
- private System.Windows.Forms.Button signalOperationButton;
- private System.Windows.Forms.TextBox durationTextBox;
- private System.Windows.Forms.TextBox operationSamplesTextBox;
- private System.Windows.Forms.Label label1;
- private System.Windows.Forms.TextBox leftSliceTextBox;
- private System.Windows.Forms.Button signalSliceButton;
- private System.Windows.Forms.TextBox rightSliceTextBox;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem playToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem pauseToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem stopToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem recordToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem1;
- private System.Windows.Forms.ToolStripMenuItem saveToolStripMenuItem;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
- private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem filtersToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem mfccToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem lpcToolStripMenuItem;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.ToolStripMenuItem modulationSpectrumToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem pitchToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem effectsToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem featuresToolStripMenuItem;
- private System.Windows.Forms.Button stftButton;
- private System.Windows.Forms.ToolStripMenuItem noiseToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem playbackToolStripMenuItem;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
- private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
- private System.Windows.Forms.ToolStripMenuItem onlineToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem modulationToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem adaptiveToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem hpssToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem waveletsToolStripMenuItem;
- }
-}
-
diff --git a/NWaves.DemoForms/SignalsForm.cs b/NWaves.DemoForms/SignalsForm.cs
deleted file mode 100644
index 6265161..0000000
--- a/NWaves.DemoForms/SignalsForm.cs
+++ /dev/null
@@ -1,470 +0,0 @@
-using System;
-using System.IO;
-using System.Linq;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.Audio.Interfaces;
-using NWaves.Audio.Mci;
-using NWaves.Signals;
-using NWaves.Signals.Builders;
-using NWaves.Transforms;
-using NWaves.Transforms.Wavelets;
-
-namespace NWaves.DemoForms
-{
- public partial class SignalsForm : Form
- {
- private DiscreteSignal _signal1;
- private DiscreteSignal _signal2;
- private DiscreteSignal _signal3;
-
- private string _waveFileName;
-
- private readonly MciAudioPlayer _player = new MciAudioPlayer();
- private bool _hasStartedPlaying;
- private bool _isPaused;
-
- private readonly MciAudioRecorder _recorder = new MciAudioRecorder();
- private bool _isRecording;
-
- private readonly Fft _fft = new Fft();
-
- public SignalsForm()
- {
- InitializeComponent();
-
- signalPanel.Gain = 100;
- generatedSignalPanel.Gain = 100;
- superimposedSignalPanel.Gain = 100;
- }
-
- private void OpenSignal()
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- filenameTextBox.Text = ofd.FileName;
- _waveFileName = ofd.FileName;
-
- using (var stream = new FileStream(_waveFileName, FileMode.Open))
- {
- IAudioContainer waveFile = new WaveFile(stream);
- _signal1 = waveFile[Channels.Left];
- }
-
- signalPanel.Signal = _signal1;
-
- Text = $"{ofd.FileName} | {_signal1.Length} samples | {_signal1.Duration} seconds";
- }
-
- private void openFileButton_Click(object sender, EventArgs e)
- {
- OpenSignal();
- }
-
- private void generateSignalButton_Click(object sender, EventArgs e)
- {
- var sampleCount = int.Parse(durationTextBox.Text);
- var samplingRate = _signal1?.SamplingRate ?? 16000;
-
- SignalBuilder signalBuilder;
-
- switch (builderComboBox.Text)
- {
- case "Sinusoid":
- signalBuilder = new SineBuilder();
- _signal2 = signalBuilder
- .SetParameter("low", -0.4f)
- .SetParameter("high", 0.4f)
- .SetParameter("freq", 233/*Hz*/)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "Sawtooth":
- signalBuilder = new SawtoothBuilder()
- .SetParameter("low", -0.3f)
- .SetParameter("high", 0.3f)
- .SetParameter("freq", 233/*Hz*/)
- .OfDuration(0.3)
- .SampledAt(samplingRate);
-
- var fadeInOut = new FadeInOutBuilder(signalBuilder).In(0.05).Out(0.12);
-
- _signal2 = fadeInOut.Build();
-
- break;
-
- case "Triangle Wave":
- signalBuilder = new TriangleWaveBuilder();
- _signal2 = signalBuilder
- .SetParameter("low", -0.3f)
- .SetParameter("high", 0.3f)
- .SetParameter("freq", 233/*Hz*/)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "Square Wave":
- signalBuilder = new SquareWaveBuilder();
- _signal2 = signalBuilder
- .SetParameter("low", -0.25f)
- .SetParameter("high", 0.25f)
- .SetParameter("freq", 233/*Hz*/)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "Pulse Wave":
- signalBuilder = new PulseWaveBuilder();
- _signal2 = signalBuilder
- .SetParameter("min", 0)
- .SetParameter("max", 0.5f)
- .SetParameter("pulse", 0.007f/*sec*/)
- .SetParameter("period", 0.020f/*sec*/)
- .OfLength(sampleCount)
- .DelayedBy(50)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "Chirp":
- signalBuilder = new ChirpBuilder();
- _signal2 = signalBuilder
- .SetParameter("min", -0.3f)
- .SetParameter("max", 0.3f)
- .OfLength(sampleCount)
- .RepeatedTimes(3)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "Sinc":
- signalBuilder = new SincBuilder();
- _signal2 = signalBuilder
- .SetParameter("min", 0)
- .SetParameter("max", 0.5f)
- .SetParameter("freq", 700/*Hz*/)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "Ramp":
- signalBuilder = new RampBuilder();
- _signal2 = signalBuilder
- .SetParameter("slope", 0.0007f)
- .SetParameter("intercept", -0.5f)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "AWGN":
- signalBuilder = new AwgnBuilder();
- _signal2 = signalBuilder
- .SetParameter("sigma", 0.25f)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "Pink Noise":
- signalBuilder = new PinkNoiseBuilder();
- _signal2 = signalBuilder
- .SetParameter("min", -0.5f)
- .SetParameter("max", 0.5f)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "Red Noise":
- signalBuilder = new RedNoiseBuilder();
- _signal2 = signalBuilder
- .SetParameter("min", -0.5f)
- .SetParameter("max", 0.5f)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- case "Perlin Noise":
- signalBuilder = new PerlinNoiseBuilder();
- _signal2 = signalBuilder
- .SetParameter("min", -0.3f)
- .SetParameter("max", 0.7f)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
-
- default:
- signalBuilder = new WhiteNoiseBuilder();
- _signal2 = signalBuilder
- .SetParameter("min", -0.5f)
- .SetParameter("max", 0.5f)
- .OfLength(sampleCount)
- .SampledAt(samplingRate)
- .Build();
- break;
- }
-
- builderParametersListBox.Items.Clear();
- builderParametersListBox.Items.AddRange(signalBuilder.GetParametersInfo());
- builderParametersListBox.Items.Add("");
- builderParametersListBox.Items.Add($"min: {_signal2.Samples.Min():F2}");
- builderParametersListBox.Items.Add($"max: {_signal2.Samples.Max():F2}");
- builderParametersListBox.Items.Add($"avg: {_signal2.Samples.Average():F4}");
-
- if (_signal1 != null)
- {
- //_signal3 = _signal1 + _signal2;
- var positions = Enumerable.Range(0, 3).Select(pos => pos * (_signal2.Length + 2000)).ToArray();
- _signal3 = _signal1.SuperimposeMany(_signal2, positions);
- superimposedSignalPanel.Signal = _signal3;
- }
-
- generatedSignalPanel.Stride = 1;
- generatedSignalPanel.Signal = _signal2;
-
- var spectrum = _fft.PowerSpectrum(_signal2.First(512));
-
- spectrumPanel.Line = spectrum.Samples;
- spectrumPanel.ToDecibel();
- }
-
- private void signalOperationButton_Click(object sender, EventArgs e)
- {
- if (_signal2 == null)
- {
- return;
- }
-
- var param = int.Parse(operationSamplesTextBox.Text);
-
- switch (operationComboBox.Text)
- {
- case "Delay by":
- _signal2 = _signal2.Delay(param);
- break;
-
- case "Repeat times":
- _signal2 = _signal2.Repeat(param);
- break;
- }
-
- _signal3 = _signal1 == null ? _signal2 : _signal1.Superimpose(_signal2);
-
- generatedSignalPanel.Signal = _signal2;
- superimposedSignalPanel.Signal = _signal3;
- }
-
- private void signalSliceButton_Click(object sender, EventArgs e)
- {
- if (_signal1 == null)
- {
- return;
- }
-
- var from = int.Parse(leftSliceTextBox.Text);
- var to = int.Parse(rightSliceTextBox.Text);
-
- _signal2 = _signal1[from, to];
-
- generatedSignalPanel.Signal = _signal2;
- superimposedSignalPanel.Signal = _signal3;
- }
-
- #region playback demo
-
- private async void playToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_waveFileName == null || _isPaused)
- {
- return;
- }
-
- _hasStartedPlaying = true;
-
- await _player.PlayAsync(_waveFileName);
-
- _hasStartedPlaying = false;
- }
-
- private void pauseToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_waveFileName == null || _hasStartedPlaying == false)
- {
- return;
- }
-
- var menuItem = sender as ToolStripMenuItem;
-
- if (_isPaused)
- {
- _player.Resume();
- menuItem.Text = "Pause";
- }
- else
- {
- _player.Pause();
- menuItem.Text = "Resume";
- }
-
- _isPaused = !_isPaused;
- }
-
- private void stopToolStripMenuItem_Click(object sender, EventArgs e)
- {
- if (_isPaused)
- {
- pauseToolStripMenuItem_Click(this.menuStrip1.Items[2], null);
- }
-
- _player.Stop();
- _hasStartedPlaying = false;
- }
-
- private void recordToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var menuItem = sender as ToolStripMenuItem;
-
- if (_isRecording)
- {
- menuItem.Text = "Record";
-
- _waveFileName = @"d:\recorded.wav";
-
- // save to recorded.wav
- _recorder.StopRecording(_waveFileName);
-
- // open it right away and load its audio contents to _signal1
- using (var stream = new FileStream(_waveFileName, FileMode.Open))
- {
- IAudioContainer waveFile = new WaveFile(stream);
- _signal1 = waveFile[Channels.Left];
- }
-
- signalPanel.Signal = _signal1;
- }
- else
- {
- menuItem.Text = "Stop rec";
-
- // start recording with sampling rate 16 kHz
- _recorder.StartRecording(16000);
- }
-
- _isRecording = !_isRecording;
- }
-
- #endregion
-
- #region menu
-
- private void exitToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Close();
- }
-
- private void openToolStripMenuItem1_Click(object sender, EventArgs e)
- {
- OpenSignal();
- }
-
- private void saveToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var sfd = new SaveFileDialog();
- if (sfd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- using (var stream = new FileStream(sfd.FileName, FileMode.Create))
- {
- var waveFile = new WaveFile(_signal2);
- waveFile.SaveTo(stream);
- }
- }
-
- private void filtersToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var filtersForm = new FiltersForm();
- filtersForm.ShowDialog();
- }
-
- private void pitchToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new PitchForm().ShowDialog();
- }
-
- private void mfccToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new MfccForm().ShowDialog();
- }
-
- private void lpcToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new LpcForm().ShowDialog();
- }
-
- private void modulationSpectrumToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new AmsForm().ShowDialog();
- }
-
- private void effectsToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new EffectsForm().ShowDialog();
- }
-
- private void featuresToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new FeaturesForm().ShowDialog();
- }
-
- private void stftButton_Click(object sender, EventArgs e)
- {
- new StftForm().ShowDialog();
- }
-
- private void noiseToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new NoiseForm().ShowDialog();
- }
-
- private void modulationToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new ModulationForm().ShowDialog();
- }
-
- private void onlineToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new OnlineDemoForm().ShowDialog();
- }
-
- private void adaptiveToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new AdaptiveFiltersForm().ShowDialog();
- }
-
- private void hpssToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new HpssForm().ShowDialog();
- }
-
- private void waveletsToolStripMenuItem_Click(object sender, EventArgs e)
- {
- new WaveletForm().ShowDialog();
- }
-
- #endregion
- }
-}
diff --git a/NWaves.DemoForms/SignalsForm.resx b/NWaves.DemoForms/SignalsForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/SignalsForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/StftForm.Designer.cs b/NWaves.DemoForms/StftForm.Designer.cs
deleted file mode 100644
index 6da1410..0000000
--- a/NWaves.DemoForms/StftForm.Designer.cs
+++ /dev/null
@@ -1,192 +0,0 @@
-namespace NWaves.DemoForms
-{
- partial class StftForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.menuStrip1 = new System.Windows.Forms.MenuStrip();
- this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.openToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.playToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.play2ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
- this.windowsComboBox = new System.Windows.Forms.ComboBox();
- this.windowPlot = new NWaves.DemoForms.UserControls.LinePlot();
- this.spectrogramPanel = new NWaves.DemoForms.UserControls.SpectrogramPlot();
- this.processedSignalPanel = new NWaves.DemoForms.UserControls.SignalPlot();
- this.signalPanel = new NWaves.DemoForms.UserControls.SignalPlot();
- this.menuStrip1.SuspendLayout();
- this.SuspendLayout();
- //
- // menuStrip1
- //
- this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
- this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.fileToolStripMenuItem,
- this.playToolStripMenuItem,
- this.play2ToolStripMenuItem});
- this.menuStrip1.Location = new System.Drawing.Point(0, 0);
- this.menuStrip1.Name = "menuStrip1";
- this.menuStrip1.Size = new System.Drawing.Size(1105, 28);
- this.menuStrip1.TabIndex = 8;
- this.menuStrip1.Text = "menuStrip1";
- //
- // fileToolStripMenuItem
- //
- this.fileToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
- this.openToolStripMenuItem});
- this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
- this.fileToolStripMenuItem.Size = new System.Drawing.Size(44, 24);
- this.fileToolStripMenuItem.Text = "&File";
- //
- // openToolStripMenuItem
- //
- this.openToolStripMenuItem.Name = "openToolStripMenuItem";
- this.openToolStripMenuItem.Size = new System.Drawing.Size(129, 26);
- this.openToolStripMenuItem.Text = "&Open...";
- this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
- //
- // playToolStripMenuItem
- //
- this.playToolStripMenuItem.Name = "playToolStripMenuItem";
- this.playToolStripMenuItem.Size = new System.Drawing.Size(56, 24);
- this.playToolStripMenuItem.Text = "Play&1";
- this.playToolStripMenuItem.Click += new System.EventHandler(this.playToolStripMenuItem_Click);
- //
- // play2ToolStripMenuItem
- //
- this.play2ToolStripMenuItem.Name = "play2ToolStripMenuItem";
- this.play2ToolStripMenuItem.Size = new System.Drawing.Size(56, 24);
- this.play2ToolStripMenuItem.Text = "Play&2";
- this.play2ToolStripMenuItem.Click += new System.EventHandler(this.play2ToolStripMenuItem_Click);
- //
- // windowsComboBox
- //
- this.windowsComboBox.FormattingEnabled = true;
- this.windowsComboBox.Location = new System.Drawing.Point(773, 394);
- this.windowsComboBox.Name = "windowsComboBox";
- this.windowsComboBox.Size = new System.Drawing.Size(319, 24);
- this.windowsComboBox.TabIndex = 13;
- this.windowsComboBox.SelectedIndexChanged += new System.EventHandler(this.windowsComboBox_SelectedIndexChanged);
- //
- // windowPlot
- //
- this.windowPlot.AutoScroll = true;
- this.windowPlot.BackColor = System.Drawing.Color.White;
- this.windowPlot.ForeColor = System.Drawing.Color.Blue;
- this.windowPlot.Gain = null;
- this.windowPlot.Legend = null;
- this.windowPlot.Line = null;
- this.windowPlot.Location = new System.Drawing.Point(773, 426);
- this.windowPlot.Mark = null;
- this.windowPlot.Markline = null;
- this.windowPlot.Name = "windowPlot";
- this.windowPlot.PaddingX = 30;
- this.windowPlot.PaddingY = 20;
- this.windowPlot.Size = new System.Drawing.Size(320, 221);
- this.windowPlot.Stride = 1;
- this.windowPlot.TabIndex = 12;
- this.windowPlot.Thickness = 1;
- //
- // spectrogramPanel
- //
- this.spectrogramPanel.AutoScroll = true;
- this.spectrogramPanel.BackColor = System.Drawing.Color.Black;
- this.spectrogramPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
- this.spectrogramPanel.ColorMapName = "magma";
- this.spectrogramPanel.Location = new System.Drawing.Point(13, 394);
- this.spectrogramPanel.Markline = null;
- this.spectrogramPanel.MarklineThickness = 0;
- this.spectrogramPanel.Name = "spectrogramPanel";
- this.spectrogramPanel.Size = new System.Drawing.Size(754, 290);
- this.spectrogramPanel.Spectrogram = null;
- this.spectrogramPanel.TabIndex = 11;
- //
- // processedSignalPanel
- //
- this.processedSignalPanel.AutoScroll = true;
- this.processedSignalPanel.BackColor = System.Drawing.Color.White;
- this.processedSignalPanel.ForeColor = System.Drawing.Color.Blue;
- this.processedSignalPanel.Gain = 1F;
- this.processedSignalPanel.Location = new System.Drawing.Point(12, 213);
- this.processedSignalPanel.Name = "processedSignalPanel";
- this.processedSignalPanel.PaddingX = 24;
- this.processedSignalPanel.PaddingY = 5;
- this.processedSignalPanel.Signal = null;
- this.processedSignalPanel.Size = new System.Drawing.Size(1080, 165);
- this.processedSignalPanel.Stride = 64;
- this.processedSignalPanel.TabIndex = 10;
- //
- // signalPanel
- //
- this.signalPanel.AutoScroll = true;
- this.signalPanel.BackColor = System.Drawing.Color.White;
- this.signalPanel.ForeColor = System.Drawing.Color.Blue;
- this.signalPanel.Gain = 1F;
- this.signalPanel.Location = new System.Drawing.Point(12, 42);
- this.signalPanel.Name = "signalPanel";
- this.signalPanel.PaddingX = 24;
- this.signalPanel.PaddingY = 5;
- this.signalPanel.Signal = null;
- this.signalPanel.Size = new System.Drawing.Size(1081, 165);
- this.signalPanel.Stride = 64;
- this.signalPanel.TabIndex = 9;
- //
- // StftForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1105, 696);
- this.Controls.Add(this.windowsComboBox);
- this.Controls.Add(this.windowPlot);
- this.Controls.Add(this.spectrogramPanel);
- this.Controls.Add(this.processedSignalPanel);
- this.Controls.Add(this.signalPanel);
- this.Controls.Add(this.menuStrip1);
- this.MainMenuStrip = this.menuStrip1;
- this.Name = "StftForm";
- this.Text = "StftForm";
- this.Load += new System.EventHandler(this.StftForm_Load);
- this.menuStrip1.ResumeLayout(false);
- this.menuStrip1.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
- private System.Windows.Forms.MenuStrip menuStrip1;
- private System.Windows.Forms.ToolStripMenuItem fileToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem openToolStripMenuItem;
- private System.Windows.Forms.ToolStripMenuItem playToolStripMenuItem;
- private UserControls.SignalPlot signalPanel;
- private UserControls.SignalPlot processedSignalPanel;
- private UserControls.SpectrogramPlot spectrogramPanel;
- private UserControls.LinePlot windowPlot;
- private System.Windows.Forms.ComboBox windowsComboBox;
- private System.Windows.Forms.ToolStripMenuItem play2ToolStripMenuItem;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/StftForm.cs b/NWaves.DemoForms/StftForm.cs
deleted file mode 100644
index 7d84463..0000000
--- a/NWaves.DemoForms/StftForm.cs
+++ /dev/null
@@ -1,136 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Windows.Forms;
-using NWaves.Audio;
-using NWaves.Filters;
-using NWaves.Operations;
-using NWaves.Signals;
-using NWaves.Transforms;
-using NWaves.Windows;
-
-namespace NWaves.DemoForms
-{
- public partial class StftForm : Form
- {
- private DiscreteSignal _signal;
- private DiscreteSignal _processedSignal;
-
- private Stft _stft;
- private List _spectrogram;
- private WindowType _windowType = WindowType.Hann;
-
- private string _waveFileName;
- private short _bitDepth;
-
- private readonly MemoryStreamPlayer _player = new MemoryStreamPlayer();
-
-
- public StftForm()
- {
- InitializeComponent();
- }
-
- private void StftForm_Load(object sender, EventArgs e)
- {
- windowsComboBox.Items.AddRange(Enum.GetNames(typeof(WindowType)));
- }
-
- private void openToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var ofd = new OpenFileDialog();
- if (ofd.ShowDialog() != DialogResult.OK)
- {
- return;
- }
-
- _waveFileName = ofd.FileName;
-
- using (var stream = new FileStream(_waveFileName, FileMode.Open))
- {
- var waveFile = new WaveFile(stream);
- _bitDepth = waveFile.WaveFmt.BitsPerSample;
- _signal = waveFile[Channels.Average];
- }
-
- _stft = new Stft(512, 128, _windowType);
-
- _spectrogram = _stft.Spectrogram(_signal);
-
- var processed = _stft.Inverse(_stft.Direct(_signal));
- _processedSignal = new DiscreteSignal(_signal.SamplingRate, processed);
-
-
- // 1) check also this:
- //var mp = _stft.MagnitudePhaseSpectrogram(_signal);
- //var processed = _stft.ReconstructMagnitudePhase(mp, false);
- //_processedSignal = new DiscreteSignal(_signal.SamplingRate, processed);
-
- // 2) or check this:
- //var processed = new GriffinLimReconstructor(_spectrogram, _stft).Reconstruct();
- //_processedSignal = new DiscreteSignal(_signal.SamplingRate, processed);
-
- signalPanel.Gain = 120;
- signalPanel.Signal = _signal;
- processedSignalPanel.Gain = 120;
- processedSignalPanel.Signal = _processedSignal;
-
- spectrogramPanel.Spectrogram = _spectrogram;
-
-
- //// StftC - has complex FFT
-
- //// RealFFT-based Stft is 30% faster!
-
- //var sr = new Stft(2048, 256);
- //var sc = new StftC(2048, 256);
-
- //var sw = new Stopwatch();
-
- //sw.Start();
-
- //for (var i = 0; i < 10; i++)
- //{
- // var processed1 = sr.Inverse(sr.Direct(_signal));
- // _processedSignal = new DiscreteSignal(_signal.SamplingRate, processed1);
- //}
-
- //sw.Stop();
-
- //var t1 = sw.Elapsed;
-
-
- //sw.Reset();
- //sw.Start();
-
- //for (var i = 0; i < 10; i++)
- //{
- // var processed1 = sc.Inverse(sc.Direct(_signal));
- // _processedSignal = new DiscreteSignal(_signal.SamplingRate, processed1);
- //}
-
- //sw.Stop();
-
- //var t2 = sw.Elapsed;
-
- //MessageBox.Show(t1 + " " + t2);
- }
-
- private async void playToolStripMenuItem_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_signal, _bitDepth);
- }
-
- private async void play2ToolStripMenuItem_Click(object sender, EventArgs e)
- {
- await _player.PlayAsync(_processedSignal, _bitDepth);
- }
-
- private void windowsComboBox_SelectedIndexChanged(object sender, EventArgs e)
- {
- _windowType = (WindowType)windowsComboBox.SelectedIndex;
- windowPlot.Line = Window.OfType(_windowType, 256);
- }
- }
-}
diff --git a/NWaves.DemoForms/StftForm.resx b/NWaves.DemoForms/StftForm.resx
deleted file mode 100644
index d5494e3..0000000
--- a/NWaves.DemoForms/StftForm.resx
+++ /dev/null
@@ -1,123 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- 17, 17
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/UserControls/GroupPlot.Designer.cs b/NWaves.DemoForms/UserControls/GroupPlot.Designer.cs
deleted file mode 100644
index 4054c43..0000000
--- a/NWaves.DemoForms/UserControls/GroupPlot.Designer.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-namespace NWaves.DemoForms.UserControls
-{
- public partial class GroupPlot
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.SuspendLayout();
- //
- // GroupPlot
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.AutoScroll = true;
- this.BackColor = System.Drawing.Color.White;
- this.DoubleBuffered = true;
- this.Name = "GroupPlot";
- this.Size = new System.Drawing.Size(352, 90);
- this.Load += new System.EventHandler(this.GroupPlot_Load);
- this.ResumeLayout(false);
-
- }
-
- #endregion
- }
-}
diff --git a/NWaves.DemoForms/UserControls/GroupPlot.cs b/NWaves.DemoForms/UserControls/GroupPlot.cs
deleted file mode 100644
index 5dd2070..0000000
--- a/NWaves.DemoForms/UserControls/GroupPlot.cs
+++ /dev/null
@@ -1,110 +0,0 @@
-using System;
-using System.Drawing;
-using System.Linq;
-using System.Windows.Forms;
-
-namespace NWaves.DemoForms.UserControls
-{
- public partial class GroupPlot : UserControl
- {
- ///
- /// Groups to plot
- ///
- private float[][] _groups;
- public float[][] Groups
- {
- get { return _groups; }
- set
- {
- _groups = value;
- if (_groups == null) return;
- AutoScrollMinSize = new Size(_groups.Max(g => g.Length) * Stride + 20, 0);
- MakeBitmap();
- Invalidate();
- }
- }
-
- public int Stride { get; set; } = 2;
- public int Gain { get; set; } = 100;
-
-
- public GroupPlot()
- {
- InitializeComponent();
- }
-
- private void GroupPlot_Load(object sender, EventArgs e)
- {
- MakeBitmap();
- }
-
- protected override void OnPaint(PaintEventArgs e)
- {
- base.OnPaint(e);
-
- e.Graphics.DrawImage(_bmp, 0, 0,
- new Rectangle(-AutoScrollPosition.X, 0, Width, Height),
- GraphicsUnit.Pixel);
- }
-
- private Bitmap _bmp;
-
- private void MakeBitmap()
- {
- var width = Math.Max(AutoScrollMinSize.Width, Width);
-
- _bmp = new Bitmap(width, Height);
-
- var g = Graphics.FromImage(_bmp);
- g.Clear(Color.White);
-
- var offset = Height - 30;
-
- var gray = new Pen(Color.LightGray) { DashPattern = new[] { 2f, 2f } };
-
- for (var k = 0; k < offset; k += 10)
- {
- g.DrawLine(gray, 0, offset + k, width, offset + k);
- g.DrawLine(gray, 0, offset - k, width, offset - k);
- }
-
- gray.Dispose();
-
- var black = new Pen(Color.Black);
-
- g.DrawLine(black, 20, offset, width, offset);
- g.DrawLine(black, 20, 5, 20, Height - 5);
-
- black.Dispose();
-
- if (_groups == null)
- {
- return;
- }
-
-
- var rand = new Random();
-
- for (var j = 0; j < _groups.Length; j++)
- {
- var pen = new Pen(Color.FromArgb(rand.Next() % 255, rand.Next() % 255, rand.Next() % 255));
-
- var i = 1;
- var x = Stride;
-
- while (i < _groups[j].Length)
- {
- g.DrawLine(pen,
- 20 + x - Stride, -_groups[j][i - 1] * Gain + offset,
- 20 + x, -_groups[j][i] * Gain + offset);
- x += Stride;
- i++;
- }
-
- pen.Dispose();
- }
-
- g.Dispose();
- }
- }
-}
diff --git a/NWaves.DemoForms/UserControls/GroupPlot.resx b/NWaves.DemoForms/UserControls/GroupPlot.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NWaves.DemoForms/UserControls/GroupPlot.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/UserControls/LinePlot.Designer.cs b/NWaves.DemoForms/UserControls/LinePlot.Designer.cs
deleted file mode 100644
index 1cb7a18..0000000
--- a/NWaves.DemoForms/UserControls/LinePlot.Designer.cs
+++ /dev/null
@@ -1,49 +0,0 @@
-namespace NWaves.DemoForms.UserControls
-{
- public partial class LinePlot
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.SuspendLayout();
- //
- // LinePlot
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.AutoScroll = true;
- this.BackColor = System.Drawing.Color.White;
- this.DoubleBuffered = true;
- this.Name = "LinePlot";
- this.Size = new System.Drawing.Size(352, 90);
- this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.LinePlot_MouseClick);
- this.ResumeLayout(false);
-
- }
-
- #endregion
- }
-}
diff --git a/NWaves.DemoForms/UserControls/LinePlot.cs b/NWaves.DemoForms/UserControls/LinePlot.cs
deleted file mode 100644
index 599f96c..0000000
--- a/NWaves.DemoForms/UserControls/LinePlot.cs
+++ /dev/null
@@ -1,288 +0,0 @@
-using System;
-using System.Drawing;
-using System.Linq;
-using System.Windows.Forms;
-using LevelScale = NWaves.Utils.Scale;
-
-namespace NWaves.DemoForms.UserControls
-{
- public partial class LinePlot : UserControl
- {
- ///
- /// Line to plot
- ///
- private float[] _line;
- public float[] Line
- {
- get { return _line; }
- set
- {
- _line = value;
- _logLine = null;
- if (_line == null) return;
- AutoScrollMinSize = new Size(_line.Length * Stride + 20, 0);
- MakeBitmap();
- Invalidate();
- }
- }
-
- ///
- /// Some mark line to plot
- ///
- private float[] _markline;
- public float[] Markline
- {
- get { return _markline; }
- set
- {
- _markline = value;
- _logMarkline = null;
- MakeBitmap();
- Invalidate();
- }
- }
-
- ///
- /// One vertical markline
- ///
- private int? _mark;
- public int? Mark
- {
- get { return _mark; }
- set
- {
- _mark = value;
- MakeBitmap();
- Invalidate();
- }
- }
-
- public float? Gain { get; set; } = null;
- public int Thickness { get; set; } = 1;
- public int Stride { get; set; } = 1;
- public string Legend { get; set; }
-
- public int PaddingX { get; set; } = 30;
- public int PaddingY { get; set; } = 20;
-
- private float[] _logLine;
- private float[] _logMarkline;
-
-
- public LinePlot()
- {
- InitializeComponent();
- ForeColor = Color.Blue;
- }
-
- protected override void OnPaint(PaintEventArgs e)
- {
- base.OnPaint(e);
-
- if (_bmp == null) MakeBitmap();
-
- e.Graphics.DrawImage(_bmp, 0, 0,
- new Rectangle(-AutoScrollPosition.X, 0, Width, Height),
- GraphicsUnit.Pixel);
- }
-
- public void ToDecibel()
- {
- if (_line == null)
- {
- return;
- }
-
- if (_logLine == null)
- {
- _logLine = _line.Select(l =>
- {
- var val = (float)LevelScale.ToDecibel(l);
- //if (float.IsNaN(val)) val = Height / 2 + 1;
- if (float.IsNaN(val) || Math.Abs(val) > int.MaxValue) val = Height / 2 + 1;
- return val / Gain ?? val;
- })
- .ToArray();
- }
- else
- {
- _logLine = null;
- }
-
- if (_markline != null)
- {
- if (_logMarkline == null)
- {
- _logMarkline = _markline.Select(l =>
- {
- var val = (float)LevelScale.ToDecibel(l);
- if (float.IsNaN(val) || Math.Abs(val) > Height) val = Height/2 + 1;
- return val / Gain ?? val;
- })
- .ToArray();
- }
- else
- {
- _logMarkline = null;
- }
- }
-
- MakeBitmap();
- Invalidate();
- }
-
- private void LinePlot_MouseClick(object sender, MouseEventArgs e)
- {
- ToDecibel();
- }
-
-
- private Bitmap _bmp;
-
- private void MakeBitmap()
- {
- var width = Math.Max(AutoScrollMinSize.Width, Width);
-
- _bmp = new Bitmap(width, Height);
-
- var g = Graphics.FromImage(_bmp);
- g.Clear(Color.White);
-
- var offset = Height / 2;
-
- var gray = new Pen(Color.LightGray) { DashPattern = new[] { 2f, 2f } };
-
- for (var k = 0; k < offset; k += 10)
- {
- g.DrawLine(gray, 0, offset + k, width, offset + k);
- g.DrawLine(gray, 0, offset - k, width, offset - k);
- }
-
- gray.Dispose();
-
- var min = 0.0f;
- var max = 0.0f;
-
- if (_line != null)
- {
- var pen = new Pen(ForeColor, Thickness);
-
- var x = PaddingX + Stride;
-
- var line = _logLine ?? _line;
-
- var gain = Gain;
- if (!Gain.HasValue)
- {
- min = line.Min();
- max = line.Max();
-
- gain = max - min < 1e-6 ? 1 : (Height - 2*PaddingY) / (max - min);
-
- offset = (int)(Height - PaddingY + min * gain);
-
- DrawAxes(g, min, max);
- }
- else
- {
- DrawAxes(g, -(Height - 2*PaddingY) / (2 * gain.Value),
- (Height-2*PaddingY) / (2 * gain.Value));
- }
-
- for (var i = 1; i < line.Length; i++)
- {
- g.DrawLine(pen, x - Stride, (float)(-line[i - 1] * gain) + offset,
- x, (float)(-line[i] * gain) + offset);
- x += Stride;
- }
-
- pen.Dispose();
- }
-
- if (_logLine != null)
- {
- g.DrawString("(log)", new Font("arial", 12), new SolidBrush(ForeColor), Width - 50, 5);
- }
-
-
- if (_markline != null)
- {
- var markline = _logMarkline ?? _markline;
-
- var gain = Gain;
- if (!Gain.HasValue)
- {
- if (_line == null)
- {
- min = markline.Min();
- max = markline.Max();
-
- DrawAxes(g, min, max);
- }
-
- gain = max - min < 1e-6 ? 1 : (Height - 2 * PaddingY) / (max - min);
-
- offset = (int)(Height - PaddingY + min * gain);
- }
-
- var pen = new Pen(Color.Red, 2);
- var x = PaddingX + Stride;
- for (var j = 1; j < _markline.Length; j++)
- {
- var y1 = Math.Abs(markline[j - 1]) < Math.Abs(Height) ? (float)(-markline[j - 1] * gain) : 0;
- var y2 = Math.Abs(markline[j]) < Math.Abs(Height) ? (float)(-markline[j] * gain) : 0;
-
- g.DrawLine(pen, x - Stride, y1 + offset, x, y2 + offset);
- x += Stride;
- }
-
- pen.Dispose();
- }
-
- var red = new Pen(Color.Red, 2);
-
- if (_mark != null)
- {
- g.DrawLine(red, PaddingX + _mark.Value * Stride, PaddingY,
- PaddingX + _mark.Value * Stride, Height - PaddingY);
- }
-
- if (Legend != null)
- {
- var font = new Font("arial", 16);
- var brush = new SolidBrush(Color.Red);
- g.DrawString(Legend, font, brush, 100, 30);
- font.Dispose();
- brush.Dispose();
- }
-
- red.Dispose();
-
- g.Dispose();
- }
-
- private void DrawAxes(Graphics g, float min, float max)
- {
- var black = new Pen(Color.Black);
-
- g.DrawLine(black, PaddingX, Height - PaddingY, _bmp.Width, Height - PaddingY);
- g.DrawLine(black, PaddingX, 10, PaddingX, Height - PaddingY);
-
- var font = new Font("arial", 5);
- var brush = new SolidBrush(Color.Black);
-
- const int stride = 20;
- var pos = Height - 12;
- var n = (Height - 2*PaddingY) / stride;
- for (var i = 0; i <= n; i++)
- {
- g.DrawString(string.Format("{0:F2}", min + i*(max-min)/n), font, brush, 1, pos -= stride);
- }
-
- font.Dispose();
- brush.Dispose();
-
- black.Dispose();
- }
- }
-}
diff --git a/NWaves.DemoForms/UserControls/LinePlot.resx b/NWaves.DemoForms/UserControls/LinePlot.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NWaves.DemoForms/UserControls/LinePlot.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/UserControls/PoleZeroPlot.Designer.cs b/NWaves.DemoForms/UserControls/PoleZeroPlot.Designer.cs
deleted file mode 100644
index 7446100..0000000
--- a/NWaves.DemoForms/UserControls/PoleZeroPlot.Designer.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-namespace NWaves.DemoForms.UserControls
-{
- public partial class PoleZeroPlot
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.SuspendLayout();
- //
- // PoleZeroPlot
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.AutoScroll = true;
- this.BackColor = System.Drawing.Color.White;
- this.DoubleBuffered = true;
- this.Name = "PoleZeroPlot";
- this.Size = new System.Drawing.Size(352, 90);
- this.ResumeLayout(false);
-
- }
-
- #endregion
- }
-}
diff --git a/NWaves.DemoForms/UserControls/PoleZeroPlot.cs b/NWaves.DemoForms/UserControls/PoleZeroPlot.cs
deleted file mode 100644
index 6250106..0000000
--- a/NWaves.DemoForms/UserControls/PoleZeroPlot.cs
+++ /dev/null
@@ -1,123 +0,0 @@
-using System;
-using System.Drawing;
-using System.Numerics;
-using System.Windows.Forms;
-using NWaves.Signals;
-
-namespace NWaves.DemoForms.UserControls
-{
- public partial class PoleZeroPlot : UserControl
- {
- ///
- /// Poles
- ///
- private Complex[] _poles;
- public Complex[] Poles
- {
- get => _poles;
- set
- {
- _poles = value;
- Invalidate();
- }
- }
-
- ///
- /// Zeros
- ///
- private Complex[] _zeros;
- public Complex[] Zeros
- {
- get => _zeros;
- set
- {
- _zeros = value;
- Invalidate();
- }
- }
-
-
- public PoleZeroPlot()
- {
- InitializeComponent();
- }
-
- protected override void OnPaint(PaintEventArgs e)
- {
- base.OnPaint(e);
-
- var g = e.Graphics;
- g.Clear(Color.White);
-
- var offset = Height / 2;
-
- var gray = new Pen(Color.LightGray) { DashPattern = new[] { 2f, 2f } };
-
- for (var k = 0; k < offset; k += 10)
- {
- g.DrawLine(gray, 0, offset + k, Width, offset + k);
- g.DrawLine(gray, 0, offset - k, Width, offset - k);
- }
-
- gray.Dispose();
-
-
- var unitRadius = Height / 3;
-
- var cx = Width / 2;
- var cy = Height / 2;
-
- var pen = new Pen(Color.Blue);
-
- g.DrawLine(pen, 10, cy, Width - 10, cy);
- g.DrawLine(pen, cx, 10, cx, Height - 10);
-
- for (var i = 0; i < 360; i++)
- {
- var x = cx + unitRadius * Math.Cos(i * Math.PI / 180);
- var y = cy + unitRadius * Math.Sin(i * Math.PI / 180);
-
- g.DrawEllipse(pen, (int)x - 1, (int)y - 1, 1, 1);
- }
-
- pen.Dispose();
-
- var red = new Pen(Color.Red, 3);
-
- if (_zeros == null)
- {
- return;
- }
-
- for (var i = 0; i < _zeros.Length; i++)
- {
- var x = cx + unitRadius * _zeros[i].Real;
- var y = cy + unitRadius * _zeros[i].Imaginary;
- if (x - 4 > 0 && x + 4 < Width &&
- y - 4 > 0 && y + 4 < Height)
- {
- g.DrawEllipse(red, (int)x - 4, (int)y - 4, 8, 8);
- }
- }
-
- if (_poles == null)
- {
- return;
- }
-
- for (var i = 0; i < _poles.Length; i++)
- {
- var x = cx + unitRadius * _poles[i].Real;
- var y = cy + unitRadius * _poles[i].Imaginary;
- if (x - 6 > 0 && x + 6 < Width &&
- y - 6 > 0 && y + 6 < Height)
- {
- g.DrawLine(red, (int)x - 6, (int)y - 6, (int)x + 6, (int)y + 6);
- g.DrawLine(red, (int)x + 6, (int)y - 6, (int)x - 6, (int)y + 6);
- }
- }
-
- red.Dispose();
- }
- }
-}
diff --git a/NWaves.DemoForms/UserControls/PoleZeroPlot.resx b/NWaves.DemoForms/UserControls/PoleZeroPlot.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NWaves.DemoForms/UserControls/PoleZeroPlot.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/UserControls/SignalPlot.Designer.cs b/NWaves.DemoForms/UserControls/SignalPlot.Designer.cs
deleted file mode 100644
index a3baca8..0000000
--- a/NWaves.DemoForms/UserControls/SignalPlot.Designer.cs
+++ /dev/null
@@ -1,87 +0,0 @@
-namespace NWaves.DemoForms.UserControls
-{
- public partial class SignalPlot
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.buttonZoomIn = new System.Windows.Forms.Button();
- this.buttonZoomOut = new System.Windows.Forms.Button();
- this.SuspendLayout();
- //
- // buttonZoomIn
- //
- this.buttonZoomIn.BackColor = System.Drawing.Color.LightYellow;
- this.buttonZoomIn.FlatAppearance.BorderColor = System.Drawing.Color.Gray;
- this.buttonZoomIn.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
- this.buttonZoomIn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.buttonZoomIn.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.buttonZoomIn.Location = new System.Drawing.Point(0, 0);
- this.buttonZoomIn.Margin = new System.Windows.Forms.Padding(0);
- this.buttonZoomIn.Name = "buttonZoomIn";
- this.buttonZoomIn.Size = new System.Drawing.Size(25, 25);
- this.buttonZoomIn.TabIndex = 0;
- this.buttonZoomIn.Text = "+";
- this.buttonZoomIn.UseVisualStyleBackColor = false;
- this.buttonZoomIn.Click += new System.EventHandler(this.buttonZoomIn_Click);
- //
- // buttonZoomOut
- //
- this.buttonZoomOut.BackColor = System.Drawing.Color.LightYellow;
- this.buttonZoomOut.FlatAppearance.BorderColor = System.Drawing.Color.Gray;
- this.buttonZoomOut.FlatAppearance.MouseOverBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
- this.buttonZoomOut.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.buttonZoomOut.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.2F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
- this.buttonZoomOut.Location = new System.Drawing.Point(24, 0);
- this.buttonZoomOut.Margin = new System.Windows.Forms.Padding(0);
- this.buttonZoomOut.Name = "buttonZoomOut";
- this.buttonZoomOut.Size = new System.Drawing.Size(25, 25);
- this.buttonZoomOut.TabIndex = 1;
- this.buttonZoomOut.Text = "-";
- this.buttonZoomOut.UseVisualStyleBackColor = false;
- this.buttonZoomOut.Click += new System.EventHandler(this.buttonZoomOut_Click);
- //
- // SignalPlot
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.AutoScroll = true;
- this.BackColor = System.Drawing.Color.White;
- this.Controls.Add(this.buttonZoomOut);
- this.Controls.Add(this.buttonZoomIn);
- this.DoubleBuffered = true;
- this.Name = "SignalPlot";
- this.Size = new System.Drawing.Size(352, 90);
- this.ResumeLayout(false);
-
- }
-
- #endregion
-
- private System.Windows.Forms.Button buttonZoomIn;
- private System.Windows.Forms.Button buttonZoomOut;
- }
-}
diff --git a/NWaves.DemoForms/UserControls/SignalPlot.cs b/NWaves.DemoForms/UserControls/SignalPlot.cs
deleted file mode 100644
index 4d9b6bd..0000000
--- a/NWaves.DemoForms/UserControls/SignalPlot.cs
+++ /dev/null
@@ -1,161 +0,0 @@
-using System;
-using System.Drawing;
-using System.Windows.Forms;
-using NWaves.Signals;
-
-namespace NWaves.DemoForms.UserControls
-{
- public partial class SignalPlot : UserControl
- {
- ///
- /// Signal to plot
- ///
- private DiscreteSignal _signal;
- public DiscreteSignal Signal
- {
- get { return _signal; }
- set
- {
- _signal = value;
- if (_signal == null) return;
- AutoScrollMinSize = new Size(_signal.Length / _stride + 20, 0);
- MakeBitmap();
- Invalidate();
- }
- }
-
- private int _stride = 64;
- public int Stride
- {
- get { return _stride; }
- set
- {
- _stride = value > 1 ? value : 1;
- if (_signal == null) return;
- AutoScrollMinSize = new Size(_signal.Length / _stride + 20, 0);
- MakeBitmap();
- Invalidate();
- }
- }
-
- public float Gain { get; set; } = 1;
-
- public int PaddingX { get; set; } = 24;
- public int PaddingY { get; set; } = 5;
-
-
- public SignalPlot()
- {
- InitializeComponent();
- ForeColor = Color.Blue;
- }
-
- protected override void OnPaint(PaintEventArgs e)
- {
- base.OnPaint(e);
-
- if (_bmp == null) MakeBitmap();
-
- e.Graphics.DrawImage(_bmp, 0, 0,
- new Rectangle(-AutoScrollPosition.X, 0, Width, Height),
- GraphicsUnit.Pixel);
- }
-
- private void buttonZoomIn_Click(object sender, System.EventArgs e)
- {
- if (_stride < 4)
- {
- Stride++;
- }
- else
- {
- Stride = (int)(_stride * 1.25);
- }
- }
-
- private void buttonZoomOut_Click(object sender, System.EventArgs e)
- {
- Stride = (int)(_stride / 1.25);
- }
-
-
- private Bitmap _bmp;
-
- private void MakeBitmap()
- {
- var width = Math.Max(AutoScrollMinSize.Width, Width);
-
- _bmp = new Bitmap(width, Height);
-
- var g = Graphics.FromImage(_bmp);
- g.Clear(Color.White);
-
- var offset = Height / 2;
-
- var gray = new Pen(Color.LightGray) { DashPattern = new[] { 2f, 2f } };
-
- for (var k = 0; k < offset; k += 10)
- {
- g.DrawLine(gray, 0, offset + k, width, offset + k);
- g.DrawLine(gray, 0, offset - k, width, offset - k);
- }
-
- gray.Dispose();
-
- if (_signal != null)
- {
- DrawAxes(g, -(Height - 2 * PaddingY) / (2 * Gain),
- (Height - 2 * PaddingY) / (2 * Gain));
-
- var pen = new Pen(ForeColor);
-
- var i = 0;
- var x = PaddingX;
-
- while (i < _signal.Length - _stride)
- {
- var j = 0;
- var min = 0.0;
- var max = 0.0;
- while (j < _stride)
- {
- if (_signal[i + j] > max) max = _signal[i + j];
- if (_signal[i + j] < min) min = _signal[i + j];
- j++;
- }
- g.DrawLine(pen, x, (float) (-min*Gain) + offset, x, (float) (-max*Gain) + offset);
- x++;
- i += _stride;
- }
-
- pen.Dispose();
- }
-
- g.Dispose();
- }
-
- private void DrawAxes(Graphics g, float min, float max)
- {
- var black = new Pen(Color.Black);
-
- g.DrawLine(black, PaddingX, Height/2, _bmp.Width, Height/2);
- g.DrawLine(black, PaddingX, 10, PaddingX, Height - PaddingY);
-
- var font = new Font("arial", 5);
- var brush = new SolidBrush(Color.Black);
-
- const int stride = 20;
- var pos = Height + 2;
- var n = (Height - 2 * PaddingY) / stride;
- for (var i = 0; i <= n; i++)
- {
- g.DrawString(string.Format("{0:F2}", min + i * (max - min) / n), font, brush, 1, pos -= stride);
- }
-
- font.Dispose();
- brush.Dispose();
-
- black.Dispose();
- }
- }
-}
diff --git a/NWaves.DemoForms/UserControls/SignalPlot.resx b/NWaves.DemoForms/UserControls/SignalPlot.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NWaves.DemoForms/UserControls/SignalPlot.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/UserControls/SpectrogramPlot.Designer.cs b/NWaves.DemoForms/UserControls/SpectrogramPlot.Designer.cs
deleted file mode 100644
index a102c8c..0000000
--- a/NWaves.DemoForms/UserControls/SpectrogramPlot.Designer.cs
+++ /dev/null
@@ -1,48 +0,0 @@
-namespace NWaves.DemoForms.UserControls
-{
- partial class SpectrogramPlot
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Component Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.SuspendLayout();
- //
- // SpectrogramPlot
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.AutoScroll = true;
- this.BackColor = System.Drawing.Color.Black;
- this.DoubleBuffered = true;
- this.Name = "SpectrogramPlot";
- this.Size = new System.Drawing.Size(374, 147);
- this.ResumeLayout(false);
-
- }
-
- #endregion
- }
-}
diff --git a/NWaves.DemoForms/UserControls/SpectrogramPlot.cs b/NWaves.DemoForms/UserControls/SpectrogramPlot.cs
deleted file mode 100644
index 69f6ef4..0000000
--- a/NWaves.DemoForms/UserControls/SpectrogramPlot.cs
+++ /dev/null
@@ -1,125 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Drawing;
-using System.Linq;
-using System.Windows.Forms;
-using SciColorMaps;
-
-namespace NWaves.DemoForms.UserControls
-{
- public partial class SpectrogramPlot : UserControl
- {
- private List _spectrogram;
- public List Spectrogram
- {
- get { return _spectrogram; }
- set
- {
- _spectrogram = value;
-
- if (_spectrogram == null)
- {
- return;
- }
-
- // post-process spectrogram for better visualization
-
- var spectraCount = _spectrogram.Count;
-
- var minValue = _spectrogram.SelectMany(s => s).Min();
- var maxValue = _spectrogram.SelectMany(s => s).Max();
-
- for (var i = 0; i < spectraCount; i++)
- {
- _spectrogram[i] = _spectrogram[i].Select(s =>
- {
- var sqrt = (float)Math.Sqrt(s);
- return sqrt*3 < maxValue ? sqrt*3 : sqrt/1.5f;
- })
- .ToArray();
- }
- maxValue /= 12;
-
- _cmap = new ColorMap(ColorMapName, minValue, maxValue);
-
- AutoScrollMinSize = new Size(_spectrogram.Count, 0);
-
- Invalidate();
- }
- }
-
- private float[] _markline;
- public float[] Markline
- {
- get { return _markline; }
- set
- {
- _markline = value;
- Invalidate();
- }
- }
-
- private int _marklineThickness;
- public int MarklineThickness
- {
- get { return _marklineThickness; }
- set
- {
- _marklineThickness = value;
- Invalidate();
- }
- }
-
- public string ColorMapName { get; set; } = "magma";
-
- private ColorMap _cmap;
-
-
- public SpectrogramPlot()
- {
- InitializeComponent();
- }
-
- protected override void OnPaint(PaintEventArgs e)
- {
- base.OnPaint(e);
-
- if (_spectrogram == null)
- {
- return;
- }
-
- var g = e.Graphics;
- g.Clear(Color.White);
-
- var width = Math.Min(Width, _spectrogram.Count);
- var spectrogramBitmap = new Bitmap(width, _spectrogram[0].Length);
-
- var realPos = 0;
- var startPos = -AutoScrollPosition.X;
- for (var i = startPos; i < startPos + spectrogramBitmap.Width; i++, realPos++)
- {
- for (var j = 0; j < _spectrogram[i].Length; j++)
- {
- spectrogramBitmap.SetPixel(realPos, _spectrogram[i].Length - 1 - j, _cmap.GetColor(_spectrogram[i][j]));
- }
- }
-
- g.DrawImage(spectrogramBitmap, 0, 0);
-
- if (_markline != null)
- {
- var pen = new Pen(Color.DeepPink, _marklineThickness);
-
- realPos = 1;
- for (var i = startPos + 1; i < Math.Min(startPos + spectrogramBitmap.Width, _markline.Length); i++, realPos++)
- {
- g.DrawLine(pen, realPos - 1, _spectrogram[i].Length - 1 - (int) (_markline[i - 1]),
- realPos, _spectrogram[i].Length - 1 - (int) (_markline[i]));
- }
-
- pen.Dispose();
- }
- }
- }
-}
diff --git a/NWaves.DemoForms/UserControls/SpectrogramPlot.resx b/NWaves.DemoForms/UserControls/SpectrogramPlot.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NWaves.DemoForms/UserControls/SpectrogramPlot.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/WaveletForm.Designer.cs b/NWaves.DemoForms/WaveletForm.Designer.cs
deleted file mode 100644
index ddc99a1..0000000
--- a/NWaves.DemoForms/WaveletForm.Designer.cs
+++ /dev/null
@@ -1,263 +0,0 @@
-namespace NWaves.DemoForms
-{
- partial class WaveletForm
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.comboBoxFamily = new System.Windows.Forms.ComboBox();
- this.comboBoxTaps = new System.Windows.Forms.ComboBox();
- this.textBoxSize = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.linePlotWavelet = new NWaves.DemoForms.UserControls.LinePlot();
- this.textBoxCoeffs = new System.Windows.Forms.TextBox();
- this.textBoxResult = new System.Windows.Forms.TextBox();
- this.buttonCompute = new System.Windows.Forms.Button();
- this.labelWaveletName = new System.Windows.Forms.Label();
- this.textBoxResultInv = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.label8 = new System.Windows.Forms.Label();
- this.comboBoxLevel = new System.Windows.Forms.ComboBox();
- this.SuspendLayout();
- //
- // comboBoxFamily
- //
- this.comboBoxFamily.FormattingEnabled = true;
- this.comboBoxFamily.Location = new System.Drawing.Point(66, 34);
- this.comboBoxFamily.Name = "comboBoxFamily";
- this.comboBoxFamily.Size = new System.Drawing.Size(162, 24);
- this.comboBoxFamily.TabIndex = 0;
- //
- // comboBoxTaps
- //
- this.comboBoxTaps.FormattingEnabled = true;
- this.comboBoxTaps.Location = new System.Drawing.Point(66, 64);
- this.comboBoxTaps.Name = "comboBoxTaps";
- this.comboBoxTaps.Size = new System.Drawing.Size(162, 24);
- this.comboBoxTaps.TabIndex = 1;
- //
- // textBoxSize
- //
- this.textBoxSize.Location = new System.Drawing.Point(66, 6);
- this.textBoxSize.Name = "textBoxSize";
- this.textBoxSize.Size = new System.Drawing.Size(162, 22);
- this.textBoxSize.TabIndex = 3;
- this.textBoxSize.Text = "64";
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(12, 6);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(35, 17);
- this.label1.TabIndex = 4;
- this.label1.Text = "Size";
- //
- // linePlotWavelet
- //
- this.linePlotWavelet.AutoScroll = true;
- this.linePlotWavelet.BackColor = System.Drawing.Color.White;
- this.linePlotWavelet.ForeColor = System.Drawing.Color.Blue;
- this.linePlotWavelet.Location = new System.Drawing.Point(15, 194);
- this.linePlotWavelet.Name = "linePlotWavelet";
- this.linePlotWavelet.PaddingX = 30;
- this.linePlotWavelet.PaddingY = 20;
- this.linePlotWavelet.Size = new System.Drawing.Size(357, 293);
- this.linePlotWavelet.Stride = 1;
- this.linePlotWavelet.TabIndex = 5;
- this.linePlotWavelet.Thickness = 1;
- //
- // textBoxCoeffs
- //
- this.textBoxCoeffs.Location = new System.Drawing.Point(378, 6);
- this.textBoxCoeffs.Multiline = true;
- this.textBoxCoeffs.Name = "textBoxCoeffs";
- this.textBoxCoeffs.Size = new System.Drawing.Size(208, 481);
- this.textBoxCoeffs.TabIndex = 6;
- //
- // textBoxResult
- //
- this.textBoxResult.Location = new System.Drawing.Point(592, 6);
- this.textBoxResult.Multiline = true;
- this.textBoxResult.Name = "textBoxResult";
- this.textBoxResult.Size = new System.Drawing.Size(203, 481);
- this.textBoxResult.TabIndex = 7;
- //
- // buttonCompute
- //
- this.buttonCompute.Location = new System.Drawing.Point(66, 124);
- this.buttonCompute.Name = "buttonCompute";
- this.buttonCompute.Size = new System.Drawing.Size(162, 56);
- this.buttonCompute.TabIndex = 8;
- this.buttonCompute.Text = "Go!";
- this.buttonCompute.UseVisualStyleBackColor = true;
- this.buttonCompute.Click += new System.EventHandler(this.buttonCompute_Click);
- //
- // labelWaveletName
- //
- this.labelWaveletName.Location = new System.Drawing.Point(252, 64);
- this.labelWaveletName.Name = "labelWaveletName";
- this.labelWaveletName.Size = new System.Drawing.Size(101, 23);
- this.labelWaveletName.TabIndex = 9;
- this.labelWaveletName.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
- //
- // textBoxResultInv
- //
- this.textBoxResultInv.Location = new System.Drawing.Point(801, 6);
- this.textBoxResultInv.Multiline = true;
- this.textBoxResultInv.Name = "textBoxResultInv";
- this.textBoxResultInv.Size = new System.Drawing.Size(203, 481);
- this.textBoxResultInv.TabIndex = 10;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(12, 37);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(48, 17);
- this.label2.TabIndex = 11;
- this.label2.Text = "Family";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(12, 67);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(40, 17);
- this.label3.TabIndex = 12;
- this.label3.Text = "Taps";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(110, 505);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(162, 17);
- this.label4.TabIndex = 13;
- this.label4.Text = "Lo_Dec and Hi_Dec plot";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(432, 505);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(99, 17);
- this.label5.TabIndex = 14;
- this.label5.Text = "Lo_Dec coeffs";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(608, 505);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(158, 17);
- this.label6.TabIndex = 15;
- this.label6.Text = "FWT of [0,1,2,...,Size-1]";
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(818, 505);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(166, 17);
- this.label7.TabIndex = 16;
- this.label7.Text = "Reconstructed from FWT";
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(12, 97);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(42, 17);
- this.label8.TabIndex = 18;
- this.label8.Text = "Level";
- //
- // comboBoxLevel
- //
- this.comboBoxLevel.FormattingEnabled = true;
- this.comboBoxLevel.Location = new System.Drawing.Point(66, 94);
- this.comboBoxLevel.Name = "comboBoxLevel";
- this.comboBoxLevel.Size = new System.Drawing.Size(162, 24);
- this.comboBoxLevel.TabIndex = 17;
- //
- // WaveletForm
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(1015, 547);
- this.Controls.Add(this.label8);
- this.Controls.Add(this.comboBoxLevel);
- this.Controls.Add(this.label7);
- this.Controls.Add(this.label6);
- this.Controls.Add(this.label5);
- this.Controls.Add(this.label4);
- this.Controls.Add(this.label3);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.textBoxResultInv);
- this.Controls.Add(this.labelWaveletName);
- this.Controls.Add(this.buttonCompute);
- this.Controls.Add(this.textBoxResult);
- this.Controls.Add(this.textBoxCoeffs);
- this.Controls.Add(this.linePlotWavelet);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.textBoxSize);
- this.Controls.Add(this.comboBoxTaps);
- this.Controls.Add(this.comboBoxFamily);
- this.Name = "WaveletForm";
- this.Text = "WaveletForm";
- this.Load += new System.EventHandler(this.WaveletForm_Load);
- this.ResumeLayout(false);
- this.PerformLayout();
-
- }
-
- #endregion
-
- private System.Windows.Forms.ComboBox comboBoxFamily;
- private System.Windows.Forms.ComboBox comboBoxTaps;
- private System.Windows.Forms.TextBox textBoxSize;
- private System.Windows.Forms.Label label1;
- private UserControls.LinePlot linePlotWavelet;
- private System.Windows.Forms.TextBox textBoxCoeffs;
- private System.Windows.Forms.TextBox textBoxResult;
- private System.Windows.Forms.Button buttonCompute;
- private System.Windows.Forms.Label labelWaveletName;
- private System.Windows.Forms.TextBox textBoxResultInv;
- private System.Windows.Forms.Label label2;
- private System.Windows.Forms.Label label3;
- private System.Windows.Forms.Label label4;
- private System.Windows.Forms.Label label5;
- private System.Windows.Forms.Label label6;
- private System.Windows.Forms.Label label7;
- private System.Windows.Forms.Label label8;
- private System.Windows.Forms.ComboBox comboBoxLevel;
- }
-}
\ No newline at end of file
diff --git a/NWaves.DemoForms/WaveletForm.cs b/NWaves.DemoForms/WaveletForm.cs
deleted file mode 100644
index 3ba322f..0000000
--- a/NWaves.DemoForms/WaveletForm.cs
+++ /dev/null
@@ -1,58 +0,0 @@
-using NWaves.Transforms.Wavelets;
-using System;
-using System.Data;
-using System.Linq;
-using System.Windows.Forms;
-
-namespace NWaves.DemoForms
-{
- public partial class WaveletForm : Form
- {
- public WaveletForm()
- {
- InitializeComponent();
- }
-
- private void WaveletForm_Load(object sender, EventArgs e)
- {
- comboBoxFamily.Items.AddRange(Enum.GetNames(typeof(WaveletFamily)));
- comboBoxTaps.Items.AddRange(Enumerable.Range(1, 20).Select(i => i.ToString()).ToArray());
- comboBoxLevel.Items.Add("Auto");
- comboBoxLevel.Items.AddRange(Enumerable.Range(1, 20).Select(i => i.ToString()).ToArray());
- }
-
- private void buttonCompute_Click(object sender, EventArgs e)
- {
- var size = int.Parse(textBoxSize.Text);
- var family = (WaveletFamily)comboBoxFamily.SelectedIndex;
- var taps = comboBoxTaps.SelectedIndex + 1;
- var level = comboBoxLevel.SelectedIndex;
-
- var wavelet = new Wavelet(family, taps);
-
- var fwt = new Fwt(size, wavelet);
-
- var output = new float[size];
- var reconstructed = new float[size];
-
- fwt.Direct(Enumerable.Range(0, size).Select(x => (float)x).ToArray(), output, level);
- fwt.Inverse(output, reconstructed, level);
-
- var res = string.Join("\r\n", output.Select(o => o.ToString()));
- textBoxResult.Text = res;
-
- var inv = string.Join("\r\n", reconstructed.Select(o => o.ToString()));
- textBoxResultInv.Text = inv;
-
- labelWaveletName.Text = wavelet.Name;
-
- linePlotWavelet.Thickness = 2;
- linePlotWavelet.Stride = 8;
- linePlotWavelet.Line = wavelet.LoD;
- linePlotWavelet.Markline = wavelet.HiD;
-
- var coeffs = string.Join("\r\n", wavelet.LoD.Select(o => o.ToString()));
- textBoxCoeffs.Text = coeffs;
- }
- }
-}
diff --git a/NWaves.DemoForms/WaveletForm.resx b/NWaves.DemoForms/WaveletForm.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/NWaves.DemoForms/WaveletForm.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- text/microsoft-resx
-
-
- 2.0
-
-
- System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
- System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
-
\ No newline at end of file
diff --git a/NWaves.DemoForms/packages.config b/NWaves.DemoForms/packages.config
deleted file mode 100644
index 9ca959c..0000000
--- a/NWaves.DemoForms/packages.config
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoUwp/App.xaml b/NWaves.DemoUwp/App.xaml
deleted file mode 100644
index f0e7d95..0000000
--- a/NWaves.DemoUwp/App.xaml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
diff --git a/NWaves.DemoUwp/App.xaml.cs b/NWaves.DemoUwp/App.xaml.cs
deleted file mode 100644
index 668c9a5..0000000
--- a/NWaves.DemoUwp/App.xaml.cs
+++ /dev/null
@@ -1,100 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Runtime.InteropServices.WindowsRuntime;
-using Windows.ApplicationModel;
-using Windows.ApplicationModel.Activation;
-using Windows.Foundation;
-using Windows.Foundation.Collections;
-using Windows.UI.Xaml;
-using Windows.UI.Xaml.Controls;
-using Windows.UI.Xaml.Controls.Primitives;
-using Windows.UI.Xaml.Data;
-using Windows.UI.Xaml.Input;
-using Windows.UI.Xaml.Media;
-using Windows.UI.Xaml.Navigation;
-
-namespace NWaves.DemoUwp
-{
- ///
- /// Provides application-specific behavior to supplement the default Application class.
- ///
- sealed partial class App : Application
- {
- ///
- /// Initializes the singleton application object. This is the first line of authored code
- /// executed, and as such is the logical equivalent of main() or WinMain().
- ///
- public App()
- {
- this.InitializeComponent();
- this.Suspending += OnSuspending;
- }
-
- ///
- /// Invoked when the application is launched normally by the end user. Other entry points
- /// will be used such as when the application is launched to open a specific file.
- ///
- /// Details about the launch request and process.
- protected override void OnLaunched(LaunchActivatedEventArgs e)
- {
- Frame rootFrame = Window.Current.Content as Frame;
-
- // Do not repeat app initialization when the Window already has content,
- // just ensure that the window is active
- if (rootFrame == null)
- {
- // Create a Frame to act as the navigation context and navigate to the first page
- rootFrame = new Frame();
-
- rootFrame.NavigationFailed += OnNavigationFailed;
-
- if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
- {
- //TODO: Load state from previously suspended application
- }
-
- // Place the frame in the current Window
- Window.Current.Content = rootFrame;
- }
-
- if (e.PrelaunchActivated == false)
- {
- if (rootFrame.Content == null)
- {
- // When the navigation stack isn't restored navigate to the first page,
- // configuring the new page by passing required information as a navigation
- // parameter
- rootFrame.Navigate(typeof(MainPage), e.Arguments);
- }
- // Ensure the current window is active
- Window.Current.Activate();
- }
- }
-
- ///
- /// Invoked when Navigation to a certain page fails
- ///
- /// The Frame which failed navigation
- /// Details about the navigation failure
- void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
- {
- throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
- }
-
- ///
- /// Invoked when application execution is being suspended. Application state is saved
- /// without knowing whether the application will be terminated or resumed with the contents
- /// of memory still intact.
- ///
- /// The source of the suspend request.
- /// Details about the suspend request.
- private void OnSuspending(object sender, SuspendingEventArgs e)
- {
- var deferral = e.SuspendingOperation.GetDeferral();
- //TODO: Save application state and stop any background activity
- deferral.Complete();
- }
- }
-}
diff --git a/NWaves.DemoUwp/Assets/LockScreenLogo.scale-200.png b/NWaves.DemoUwp/Assets/LockScreenLogo.scale-200.png
deleted file mode 100644
index 735f57a..0000000
Binary files a/NWaves.DemoUwp/Assets/LockScreenLogo.scale-200.png and /dev/null differ
diff --git a/NWaves.DemoUwp/Assets/SplashScreen.scale-200.png b/NWaves.DemoUwp/Assets/SplashScreen.scale-200.png
deleted file mode 100644
index 023e7f1..0000000
Binary files a/NWaves.DemoUwp/Assets/SplashScreen.scale-200.png and /dev/null differ
diff --git a/NWaves.DemoUwp/Assets/Square150x150Logo.scale-200.png b/NWaves.DemoUwp/Assets/Square150x150Logo.scale-200.png
deleted file mode 100644
index af49fec..0000000
Binary files a/NWaves.DemoUwp/Assets/Square150x150Logo.scale-200.png and /dev/null differ
diff --git a/NWaves.DemoUwp/Assets/Square44x44Logo.scale-200.png b/NWaves.DemoUwp/Assets/Square44x44Logo.scale-200.png
deleted file mode 100644
index ce342a2..0000000
Binary files a/NWaves.DemoUwp/Assets/Square44x44Logo.scale-200.png and /dev/null differ
diff --git a/NWaves.DemoUwp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/NWaves.DemoUwp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png
deleted file mode 100644
index f6c02ce..0000000
Binary files a/NWaves.DemoUwp/Assets/Square44x44Logo.targetsize-24_altform-unplated.png and /dev/null differ
diff --git a/NWaves.DemoUwp/Assets/StoreLogo.png b/NWaves.DemoUwp/Assets/StoreLogo.png
deleted file mode 100644
index 7385b56..0000000
Binary files a/NWaves.DemoUwp/Assets/StoreLogo.png and /dev/null differ
diff --git a/NWaves.DemoUwp/Assets/Wide310x150Logo.scale-200.png b/NWaves.DemoUwp/Assets/Wide310x150Logo.scale-200.png
deleted file mode 100644
index 288995b..0000000
Binary files a/NWaves.DemoUwp/Assets/Wide310x150Logo.scale-200.png and /dev/null differ
diff --git a/NWaves.DemoUwp/MainPage.xaml b/NWaves.DemoUwp/MainPage.xaml
deleted file mode 100644
index 4d9d991..0000000
--- a/NWaves.DemoUwp/MainPage.xaml
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/NWaves.DemoUwp/MainPage.xaml.cs b/NWaves.DemoUwp/MainPage.xaml.cs
deleted file mode 100644
index 4a41c6c..0000000
--- a/NWaves.DemoUwp/MainPage.xaml.cs
+++ /dev/null
@@ -1,244 +0,0 @@
-using NWaves.DemoUwpEffect;
-using System;
-using System.Linq;
-using System.Threading.Tasks;
-using Windows.Foundation.Collections;
-using Windows.Media.Audio;
-using Windows.Media.Effects;
-using Windows.Media.Render;
-using Windows.Storage;
-using Windows.Storage.Pickers;
-using Windows.UI;
-using Windows.UI.Core;
-using Windows.UI.Xaml;
-using Windows.UI.Xaml.Automation.Peers;
-using Windows.UI.Xaml.Controls;
-using Windows.UI.Xaml.Controls.Primitives;
-using Windows.UI.Xaml.Media;
-
-namespace NWaves.DemoUwp
-{
- ///
- /// An empty page that can be used on its own or navigated to within a Frame.
- ///
- public sealed partial class MainPage : Page
- {
- private AudioGraph graph;
- private AudioFileInputNode fileInputNode;
- private AudioDeviceOutputNode deviceOutputNode;
-
- public MainPage()
- {
- this.InitializeComponent();
- }
-
- private async void File_Click(object sender, RoutedEventArgs e)
- {
- if (graph == null)
- {
- await CreateAudioGraph();
- }
-
- await SelectInputFile();
- }
-
- private async Task SelectInputFile()
- {
- if (fileInputNode != null)
- {
- fileInputNode.Dispose();
-
- if (graphButton.Content.Equals("Stop Graph"))
- {
- TogglePlay();
- }
- }
-
- FileOpenPicker filePicker = new FileOpenPicker();
- filePicker.SuggestedStartLocation = PickerLocationId.MusicLibrary;
- filePicker.FileTypeFilter.Add(".mp3");
- filePicker.FileTypeFilter.Add(".wav");
- filePicker.FileTypeFilter.Add(".wma");
- filePicker.FileTypeFilter.Add(".m4a");
- filePicker.ViewMode = PickerViewMode.Thumbnail;
- StorageFile file = await filePicker.PickSingleFileAsync();
-
- if (file == null)
- {
- return;
- }
-
- CreateAudioFileInputNodeResult fileInputNodeResult = await graph.CreateFileInputNodeAsync(file);
- if (fileInputNodeResult.Status != AudioFileNodeCreationStatus.Success)
- {
- NotifyUser(String.Format("Cannot read input file because {0}", fileInputNodeResult.Status.ToString()), NotifyType.ErrorMessage);
- return;
- }
-
- fileInputNode = fileInputNodeResult.FileInputNode;
- fileInputNode.AddOutgoingConnection(deviceOutputNode);
- fileButton.Background = new SolidColorBrush(Colors.Green);
-
- fileInputNode.FileCompleted += FileInput_FileCompleted;
-
- graphButton.IsEnabled = true;
-
- AddCustomEffect();
- }
-
- private void Graph_Click(object sender, RoutedEventArgs e)
- {
- TogglePlay();
- }
-
- private void TogglePlay()
- {
- if (graphButton.Content.Equals("Start Graph"))
- {
- graph.Start();
- graphButton.Content = "Stop Graph";
- audioPipe.Fill = new SolidColorBrush(Colors.Blue);
- }
- else
- {
- graph.Stop();
- graphButton.Content = "Start Graph";
- audioPipe.Fill = new SolidColorBrush(Color.FromArgb(255, 49, 49, 49));
- }
- }
-
- private async Task CreateAudioGraph()
- {
- AudioGraphSettings settings = new AudioGraphSettings(AudioRenderCategory.Media);
- CreateAudioGraphResult result = await AudioGraph.CreateAsync(settings);
-
- if (result.Status != AudioGraphCreationStatus.Success)
- {
- NotifyUser(String.Format("AudioGraph Creation Error because {0}", result.Status.ToString()), NotifyType.ErrorMessage);
- return;
- }
-
- graph = result.Graph;
-
- graph.EncodingProperties.SampleRate = 44100;
-
- CreateAudioDeviceOutputNodeResult deviceOutputResult = await graph.CreateDeviceOutputNodeAsync();
-
- if (deviceOutputResult.Status != AudioDeviceNodeCreationStatus.Success)
- {
- NotifyUser(String.Format("Audio Device Output unavailable because {0}", deviceOutputResult.Status.ToString()), NotifyType.ErrorMessage);
- speakerContainer.Background = new SolidColorBrush(Colors.Red);
- return;
- }
-
- deviceOutputNode = deviceOutputResult.DeviceOutputNode;
- NotifyUser("Device Output Node successfully created", NotifyType.StatusMessage);
- speakerContainer.Background = new SolidColorBrush(Colors.Green);
- }
-
- private void AddCustomEffect()
- {
- PropertySet wahwahProperties = new PropertySet
- {
- { "Max frequency", 2000f },
- { "Q", 0.5f }
- };
-
- AudioEffectDefinition wahwahDefinition = new AudioEffectDefinition(typeof(NWavesEffect).FullName, wahwahProperties);
- fileInputNode.EffectDefinitions.Add(wahwahDefinition);
- }
-
- ///
- /// Event handler for file completion event
- ///
- ///
- ///
- private async void FileInput_FileCompleted(AudioFileInputNode sender, object args)
- {
- // File playback is done. Stop the graph
- graph.Stop();
-
- // Reset the file input node so starting the graph will resume playback from beginning of the file
- sender.Reset();
-
- await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
- {
- NotifyUser("End of file reached", NotifyType.StatusMessage);
- graphButton.Content = "Start Graph";
- });
- }
-
-
- ///
- /// Display a message to the user
- ///
- ///
- ///
- public void NotifyUser(string message, NotifyType type)
- {
- if (Dispatcher.HasThreadAccess)
- {
- UpdateStatus(message, type);
- }
- else
- {
- var task = Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => UpdateStatus(message, type));
- }
- }
-
- private void UpdateStatus(string strMessage, NotifyType type)
- {
- switch (type)
- {
- case NotifyType.StatusMessage:
- StatusBlock.Foreground = new SolidColorBrush(Colors.Green);
- break;
- case NotifyType.ErrorMessage:
- StatusBlock.Foreground = new SolidColorBrush(Colors.Red);
- break;
- }
-
- StatusBlock.Text = strMessage;
-
- StatusBlock.Visibility = (StatusBlock.Text != String.Empty) ? Visibility.Visible : Visibility.Collapsed;
-
- if (StatusBlock.Text != String.Empty)
- {
- StatusBlock.Visibility = Visibility.Visible;
- }
- else
- {
- StatusBlock.Visibility = Visibility.Collapsed;
- }
-
- // Raise an event if necessary to enable a screen reader to announce the status update.
- var peer = FrameworkElementAutomationPeer.FromElement(StatusBlock);
- if (peer != null)
- {
- peer.RaiseAutomationEvent(AutomationEvents.LiveRegionChanged);
- }
- }
-
- private void MaxFreqChanged(object sender, RangeBaseValueChangedEventArgs e)
- {
- if (fileInputNode != null)
- {
- fileInputNode.EffectDefinitions.Last().Properties["Max frequency"] = (float)e.NewValue;
- }
- }
-
- private void QChanged(object sender, RangeBaseValueChangedEventArgs e)
- {
- if (fileInputNode != null)
- {
- fileInputNode.EffectDefinitions.Last().Properties["Q"] = (float)e.NewValue / 50;
- }
- }
- }
-
- public enum NotifyType
- {
- StatusMessage,
- ErrorMessage
- };
-}
diff --git a/NWaves.DemoUwp/NWaves.DemoUwp.csproj b/NWaves.DemoUwp/NWaves.DemoUwp.csproj
deleted file mode 100644
index 7ac094d..0000000
--- a/NWaves.DemoUwp/NWaves.DemoUwp.csproj
+++ /dev/null
@@ -1,152 +0,0 @@
-
-
-
-
- Debug
- x86
- {77E7136D-AA04-4FEC-9BEF-0054E2265A4F}
- AppContainerExe
- Properties
- NWaves.DemoUwp
- NWaves.DemoUwp
- en-US
- UAP
- 10.0.17134.0
- 10.0.17134.0
- 14
- 512
- {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- true
- NWaves.DemoUwp_TemporaryKey.pfx
-
-
- true
- bin\x86\Debug\
- DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
- ;2008
- full
- x86
- false
- prompt
- true
-
-
- bin\x86\Release\
- TRACE;NETFX_CORE;WINDOWS_UWP
- true
- ;2008
- pdbonly
- x86
- false
- prompt
- true
- true
- false
-
-
- true
- bin\ARM\Debug\
- DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
- ;2008
- full
- ARM
- false
- prompt
- true
-
-
- bin\ARM\Release\
- TRACE;NETFX_CORE;WINDOWS_UWP
- true
- ;2008
- pdbonly
- ARM
- false
- prompt
- true
- true
-
-
- true
- bin\x64\Debug\
- DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
- ;2008
- full
- x64
- false
- prompt
- true
-
-
- bin\x64\Release\
- TRACE;NETFX_CORE;WINDOWS_UWP
- true
- ;2008
- pdbonly
- x64
- false
- prompt
- true
- true
-
-
- PackageReference
-
-
-
- App.xaml
-
-
- MainPage.xaml
-
-
-
-
-
- Designer
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MSBuild:Compile
- Designer
-
-
- MSBuild:Compile
- Designer
-
-
-
-
- 6.1.5
-
-
-
-
- {3e65575d-3719-48d3-bb57-4e2453e83936}
- NWaves.DemoUwpEffect
-
-
-
- 14.0
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoUwp/Package.appxmanifest b/NWaves.DemoUwp/Package.appxmanifest
deleted file mode 100644
index 541fe68..0000000
--- a/NWaves.DemoUwp/Package.appxmanifest
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
- NWaves.DemoUwp
- Tim
- Assets\StoreLogo.png
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoUwp/Properties/AssemblyInfo.cs b/NWaves.DemoUwp/Properties/AssemblyInfo.cs
deleted file mode 100644
index 7fccf86..0000000
--- a/NWaves.DemoUwp/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("NWaves.DemoUwp")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("NWaves.DemoUwp")]
-[assembly: AssemblyCopyright("Copyright © 2019")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
-[assembly: ComVisible(false)]
\ No newline at end of file
diff --git a/NWaves.DemoUwp/Properties/Default.rd.xml b/NWaves.DemoUwp/Properties/Default.rd.xml
deleted file mode 100644
index af00722..0000000
--- a/NWaves.DemoUwp/Properties/Default.rd.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoUwp/README.md b/NWaves.DemoUwp/README.md
deleted file mode 100644
index 9bbb5d0..0000000
--- a/NWaves.DemoUwp/README.md
+++ /dev/null
@@ -1,26 +0,0 @@
-This demo shows how we can add NWaves audio effects, filters and block convolvers to UWP projects for online audio processing. In this example we work with ```AutowahEffect``` and allow user online-tweaking only couple of its parameters: maximum LFO frequency and Q factor.
-
-![UWP](https://github.com/ar1st0crat/NWaves/blob/master/screenshots/uwp.png)
-
-Most of the code simply repeats [AudioCreation UWP sample code](https://github.com/microsoft/Windows-universal-samples/tree/master/Samples/AudioCreation/cs).
-
-Effect is added to the ```AudioGraph``` here:
-
-```C#
-private void AddCustomEffect()
-{
- PropertySet wahwahProperties = new PropertySet
- {
- { "Max frequency", 2000f },
- { "Q", 0.5f }
- };
-
- AudioEffectDefinition wahwahDefinition =
- new AudioEffectDefinition(typeof(NWavesEffect).FullName, wahwahProperties);
-
- fileInputNode.EffectDefinitions.Add(wahwahDefinition);
-}
-```
-
-
-According to MS documentation, custom sound effects must be implemented in separate projects as Windows runtime components. [This project contains implementation of the effect](https://github.com/ar1st0crat/NWaves/tree/master/NWaves.DemoUwpEffect).
diff --git a/NWaves.DemoUwpEffect/NWaves.DemoUwpEffect.csproj b/NWaves.DemoUwpEffect/NWaves.DemoUwpEffect.csproj
deleted file mode 100644
index 4e0b931..0000000
--- a/NWaves.DemoUwpEffect/NWaves.DemoUwpEffect.csproj
+++ /dev/null
@@ -1,137 +0,0 @@
-
-
-
-
- Debug
- AnyCPU
- {3E65575D-3719-48D3-BB57-4E2453E83936}
- winmdobj
- Properties
- NWaves.DemoUwpEffect
- NWaves.DemoUwpEffect
- en-US
- UAP
- 10.0.17134.0
- 10.0.17134.0
- 14
- 512
- {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- false
-
-
- AnyCPU
- true
- full
- false
- bin\Debug\
- DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
- prompt
- 4
-
-
- AnyCPU
- pdbonly
- true
- bin\Release\
- TRACE;NETFX_CORE;WINDOWS_UWP
- prompt
- 4
- true
-
-
- x86
- true
- bin\x86\Debug\
- DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
- ;2008
- full
- x86
- false
- prompt
-
-
- x86
- bin\x86\Release\
- TRACE;NETFX_CORE;WINDOWS_UWP
- true
- ;2008
- pdbonly
- x86
- false
- prompt
- true
-
-
- ARM
- true
- bin\ARM\Debug\
- DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
- ;2008
- full
- ARM
- false
- prompt
-
-
- ARM
- bin\ARM\Release\
- TRACE;NETFX_CORE;WINDOWS_UWP
- true
- ;2008
- pdbonly
- ARM
- false
- prompt
-
-
- x64
- true
- bin\x64\Debug\
- DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP
- ;2008
- full
- x64
- false
- prompt
-
-
- x64
- bin\x64\Release\
- TRACE;NETFX_CORE;WINDOWS_UWP
- true
- ;2008
- pdbonly
- x64
- false
- prompt
-
-
- PackageReference
-
-
-
-
-
-
-
- 6.1.5
-
-
-
-
- {3fbf1b3a-3bed-4f2f-8008-871acf83e352}
- NWaves
-
-
-
- 14.0
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoUwpEffect/NWavesEffect.cs b/NWaves.DemoUwpEffect/NWavesEffect.cs
deleted file mode 100644
index 81fabd7..0000000
--- a/NWaves.DemoUwpEffect/NWavesEffect.cs
+++ /dev/null
@@ -1,155 +0,0 @@
-using NWaves.Effects;
-using System;
-using System.Collections.Generic;
-using System.Runtime.InteropServices;
-using Windows.Foundation;
-using Windows.Foundation.Collections;
-using Windows.Media;
-using Windows.Media.Effects;
-using Windows.Media.MediaProperties;
-
-namespace NWaves.DemoUwpEffect
-{
- ///
- /// Adapter pattern:
- ///
- /// 1) aggregate audio effect from NWaves lib
- /// 2) implement IBasicAudioEffect interface and see UWP sample code
- ///
- ///
- public sealed class NWavesEffect : IBasicAudioEffect
- {
- // aggregate AutoWah effect
-
- AutowahEffect autowahEffect;
-
- // everythin else is adopted from UWP code samples:
-
- private AudioEncodingProperties currentEncodingProperties;
- private List supportedEncodingProperties;
-
- private IPropertySet propertySet;
-
- private float MaxFrequency
- {
- get
- {
- if (propertySet != null && propertySet.TryGetValue("Max frequency", out object val))
- {
- return (float)val;
- }
- return 1;
- }
- }
-
- private float Q
- {
- get
- {
- if (propertySet != null && propertySet.TryGetValue("Q", out object val))
- {
- return (float)val;
- }
- return 0.5f;
- }
- }
-
- public bool UseInputFrameForOutput => false;
-
- ///
- /// Set up constant members in the constructor
- ///
- public NWavesEffect()
- {
- // Support 16kHz, 22.05kHz, 44.1kHz and 48kHz mono float
-
- supportedEncodingProperties = new List();
- AudioEncodingProperties encodingProps1 = AudioEncodingProperties.CreatePcm(16000, 1, 32);
- encodingProps1.Subtype = MediaEncodingSubtypes.Float;
- AudioEncodingProperties encodingProps2 = AudioEncodingProperties.CreatePcm(22050, 1, 32);
- encodingProps2.Subtype = MediaEncodingSubtypes.Float;
- AudioEncodingProperties encodingProps3 = AudioEncodingProperties.CreatePcm(44100, 1, 32);
- encodingProps3.Subtype = MediaEncodingSubtypes.Float;
- AudioEncodingProperties encodingProps4 = AudioEncodingProperties.CreatePcm(48000, 1, 32);
- encodingProps4.Subtype = MediaEncodingSubtypes.Float;
-
- supportedEncodingProperties.Add(encodingProps1);
- supportedEncodingProperties.Add(encodingProps2);
- supportedEncodingProperties.Add(encodingProps3);
- supportedEncodingProperties.Add(encodingProps4);
- }
-
- public IReadOnlyList SupportedEncodingProperties => supportedEncodingProperties;
-
- public void SetEncodingProperties(AudioEncodingProperties encodingProperties)
- {
- currentEncodingProperties = encodingProperties;
-
- autowahEffect = new AutowahEffect((int)encodingProperties.SampleRate, maxFrequency: MaxFrequency, q: Q)
- {
- Wet = 0.8f,
- Dry = 0.4f
- };
- }
-
- unsafe public void ProcessFrame(ProcessAudioFrameContext context)
- {
- var q = Q;
- var maxFrequency = MaxFrequency;
-
- if (maxFrequency != autowahEffect.MaxFrequency)
- {
- autowahEffect.MaxFrequency = maxFrequency;
- }
- if (q != autowahEffect.Q)
- {
- autowahEffect.Q = q;
- }
-
- AudioFrame inputFrame = context.InputFrame;
- AudioFrame outputFrame = context.OutputFrame;
-
- using (AudioBuffer inputBuffer = inputFrame.LockBuffer(AudioBufferAccessMode.Read),
- outputBuffer = outputFrame.LockBuffer(AudioBufferAccessMode.Write))
- using (IMemoryBufferReference inputReference = inputBuffer.CreateReference(),
- outputReference = outputBuffer.CreateReference())
- {
- ((IMemoryBufferByteAccess)inputReference).GetBuffer(out byte* inputDataInBytes, out uint inputCapacity);
- ((IMemoryBufferByteAccess)outputReference).GetBuffer(out byte* outputDataInBytes, out uint outputCapacity);
-
- float* inputDataInFloat = (float*)inputDataInBytes;
- float* outputDataInFloat = (float*)outputDataInBytes;
-
- int dataInFloatLength = (int)inputBuffer.Length / sizeof(float);
-
- for (int i = 0; i < dataInFloatLength; i++)
- {
- outputDataInFloat[i] = autowahEffect.Process(inputDataInFloat[i]);
- }
- }
- }
-
- public void Close(MediaEffectClosedReason reason)
- {
- }
-
- public void DiscardQueuedFrames()
- {
- autowahEffect.Reset();
- }
-
- public void SetProperties(IPropertySet configuration)
- {
- propertySet = configuration;
- }
- }
-
- // Using the COM interface IMemoryBufferByteAccess allows us to access the underlying byte array in an AudioFrame
- [ComImport]
- [Guid("5B0D3235-4DBA-4D44-865E-8F1D0E4FD04D")]
- [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
- unsafe interface IMemoryBufferByteAccess
- {
- void GetBuffer(out byte* buffer, out uint capacity);
- }
-}
diff --git a/NWaves.DemoUwpEffect/Properties/AssemblyInfo.cs b/NWaves.DemoUwpEffect/Properties/AssemblyInfo.cs
deleted file mode 100644
index b318a0c..0000000
--- a/NWaves.DemoUwpEffect/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("NWaves.DemoUwpEffect")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("NWaves.DemoUwpEffect")]
-[assembly: AssemblyCopyright("Copyright © 2019")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
-[assembly: ComVisible(false)]
\ No newline at end of file
diff --git a/NWaves.DemoUwpEffect/README.md b/NWaves.DemoUwpEffect/README.md
deleted file mode 100644
index aeff316..0000000
--- a/NWaves.DemoUwpEffect/README.md
+++ /dev/null
@@ -1,60 +0,0 @@
-NWaves effects are UWP-friendly. All we need to do is just adapt audio effect object to ```IBasicAudioEffect``` interface (i.e. Adapter pattern (GOF)) and add few lines of code:
-
-```C#
-public sealed class NWavesEffect : IBasicAudioEffect
-{
- // aggregate AutoWah effect
-
- AutowahEffect autowahEffect;
-
- // ...
-
- unsafe public void ProcessFrame(ProcessAudioFrameContext context)
- {
- // update effect settings if necessary
-
- var q = Q;
- var maxFrequency = MaxFrequency;
-
- if (maxFrequency != autowahEffect.MaxFrequency)
- {
- autowahEffect.MaxFrequency = maxFrequency;
- }
- if (q != autowahEffect.Q)
- {
- autowahEffect.Q = q;
- }
-
-
- // this is a standard UWP code for casting byte arrays to float (unsafe) arrays:
-
-
- AudioFrame inputFrame = context.InputFrame;
- AudioFrame outputFrame = context.OutputFrame;
-
- using (AudioBuffer inputBuffer = inputFrame.LockBuffer(AudioBufferAccessMode.Read),
- outputBuffer = outputFrame.LockBuffer(AudioBufferAccessMode.Write))
- using (IMemoryBufferReference inputReference = inputBuffer.CreateReference(),
- outputReference = outputBuffer.CreateReference())
- {
- ((IMemoryBufferByteAccess)inputReference).GetBuffer(out byte* inputDataInBytes, out uint inputCapacity);
- ((IMemoryBufferByteAccess)outputReference).GetBuffer(out byte* outputDataInBytes, out uint outputCapacity);
-
- float* inputDataInFloat = (float*)inputDataInBytes;
- float* outputDataInFloat = (float*)outputDataInBytes;
-
- int dataInFloatLength = (int)inputBuffer.Length / sizeof(float);
-
-
- // ========= the simplest approach -
- // === just call Process() method in the loop:
-
-
- for (int i = 0; i < dataInFloatLength; i++)
- {
- outputDataInFloat[i] = autowahEffect.Process(inputDataInFloat[i]);
- }
- }
- }
-}
-```
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Assets/AboutAssets.txt b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Assets/AboutAssets.txt
deleted file mode 100644
index 5ddf087..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Assets/AboutAssets.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Any raw assets you want to be deployed with your application can be placed in
-this directory (and child directories) and given a Build Action of "AndroidAsset".
-
-These files will be deployed with you package and will be accessible using Android's
-AssetManager, like this:
-
-public class ReadAsset : Activity
-{
- protected override void OnCreate (Bundle bundle)
- {
- base.OnCreate (bundle);
-
- InputStream input = Assets.Open ("my_asset.txt");
- }
-}
-
-Additionally, some Android functions will automatically load asset files:
-
-Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/DependencyServices/AudioService.cs b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/DependencyServices/AudioService.cs
deleted file mode 100644
index 78a4c45..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/DependencyServices/AudioService.cs
+++ /dev/null
@@ -1,180 +0,0 @@
-using System;
-using System.IO;
-using System.Threading.Tasks;
-using Android.Content;
-using Android.Media;
-using NWaves.Audio;
-using NWaves.DemoXamarin.DependencyServices;
-using NWaves.Effects;
-using NWaves.FeatureExtractors;
-using NWaves.FeatureExtractors.Options;
-using NWaves.Features;
-using NWaves.Filters.Base;
-using NWaves.Signals;
-using Xamarin.Forms;
-
-[assembly: Dependency(typeof(NWaves.DemoXamarin.Droid.DependencyServices.AudioService))]
-namespace NWaves.DemoXamarin.Droid.DependencyServices
-{
- public class AudioService : IAudioService
- {
- private int _samplingRate;
-
- private readonly ChannelIn _channelCount = ChannelIn.Mono;
- //private readonly Encoding _audioEncodingType = Encoding.PcmFloat; //not available for older Android versions
- private readonly Encoding _audioEncodingType = Encoding.Pcm16bit;
-
- private AudioRecord _recorder;
-
- private int _bufferSize;
- private int _sizeInFloats;
- private byte[] _bytes, _temp;
- private float[][] _data; // array of samples in each channel
- private bool _isRecording;
-
- private float[] _pitch;
- private PitchEstimatedEventArgs _pitchArgs = new PitchEstimatedEventArgs();
- public event EventHandler PitchEstimated;
-
- private PitchExtractor _pitchExtractor;
- private IOnlineFilter _robotizer;
-
-
- public AudioService()
- {
- }
-
- public async void StartRecording()
- {
- if (_recorder != null)
- {
- StopRecording();
- }
-
- var context = Android.App.Application.Context;
- var audioManager = (AudioManager)context.GetSystemService(Context.AudioService);
- _samplingRate = int.Parse(audioManager.GetProperty(AudioManager.PropertyOutputSampleRate));
-
- //_bufferSize = 4 * AudioRecord.GetMinBufferSize(_samplingRate, ChannelIn.Mono, Encoding.PcmFloat);
- _bufferSize = 4 * AudioRecord.GetMinBufferSize(_samplingRate, ChannelIn.Mono, Encoding.Pcm16bit);
- _recorder = new AudioRecord(AudioSource.Mic, _samplingRate, _channelCount, _audioEncodingType, _bufferSize);
-
- //uncomment for PcmFloat mode: =====================
- //_sizeInFloats = _bufferSize / sizeof(float);
- //instead of Pcm16bit: =============================
- _sizeInFloats = _bufferSize / sizeof(short);
- _data = new float[1][];
- _data[0] = new float[_sizeInFloats]; // only one channel (mono)
-
- _bytes = new byte[_bufferSize];
- _temp = new byte[_sizeInFloats * sizeof(float)];
-
-
- var options = new PitchOptions
- {
- SamplingRate = _samplingRate,
- FrameDuration = (double)_sizeInFloats / _samplingRate
- };
- _pitchExtractor = new PitchExtractor(options);
- _pitch = new float[1];
-
- _robotizer = new RobotEffect(216, 1024);
-
- _recorder.StartRecording();
- _isRecording = true;
-
- await ProcessAudioData();
- }
-
- public void StopRecording()
- {
- if (_recorder == null)
- {
- return;
- }
-
- _isRecording = false;
-
- _recorder.Stop();
- _recorder.Release();
- _recorder = null;
- }
-
- private async Task ProcessAudioData()
- {
- var data = _data[0];
-
- var filename = TempFileName;
-
- using (var tempStream = new FileStream(filename, FileMode.Create))
- {
- // ==================================== main recording loop ========================================
-
- while (_isRecording)
- {
- // ====================================== read data ============================================
-
- //uncomment for PcmFloat mode: ============================
- //await _recorder.ReadAsync(data, 0, _sizeInFloats, 0);
- //instead of Pcm16bit:
- await _recorder.ReadAsync(_bytes, 0, _bufferSize);
- ByteConverter.ToFloats16Bit(_bytes, _data);
- // ========================================================
-
- // ===================================== process data ==========================================
-
- _pitchExtractor.ProcessFrame(data, _pitch);
-
- _pitchArgs.PitchZcr = Pitch.FromZeroCrossingsSchmitt(data, _samplingRate);
- _pitchArgs.PitchAutoCorr = _pitch[0];
-
- PitchEstimated(this, _pitchArgs); // event
-
- _robotizer.Process(data, data);
-
- // ==================== write data to output stream (if necessary) =============================
-
- //uncomment for PcmFloat mode: =========================
- //Buffer.BlockCopy(data, 0, _bytes, 0, _bufferSize); // faster than writing float-after-float
- //await tempStream.WriteAsync(_bytes, 0, _bufferSize);
- //instead of Pcm16bit:
- Buffer.BlockCopy(data, 0, _temp, 0, _temp.Length);
- await tempStream.WriteAsync(_temp, 0, _temp.Length);
- // =====================================================
- }
- }
-
- SaveToFile();
- }
-
- private void SaveToFile()
- {
- using (var tempStream = new FileStream(TempFileName, FileMode.Open))
- using (var br = new BinaryReader(tempStream))
- {
- var samples = new float[tempStream.Length / sizeof(float)];
-
- for (var i = 0; i < samples.Length; i++)
- {
- samples[i] = br.ReadSingle();
- }
-
- var waveFile = new WaveFile(new DiscreteSignal(_samplingRate, samples));
-
- using (var outputStream = new FileStream(OutputFileName, FileMode.Create))
- {
- waveFile.SaveTo(outputStream);
- }
- }
-
- using (var file = new Java.IO.File(TempFileName))
- {
- file.Delete();
- }
- }
-
- private string TempFileName => Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Personal), "temp.wav");
-
- private string OutputFileName => Path.Combine(Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "Android/media", "recorded.wav");
- }
-}
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/MainActivity.cs b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/MainActivity.cs
deleted file mode 100644
index 7c20ec7..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/MainActivity.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-
-using Android.App;
-using Android.Content.PM;
-using Android.Runtime;
-using Android.Views;
-using Android.Widget;
-using Android.OS;
-using Android.Support.V4.Content;
-using Android.Support.V4.App;
-using Android;
-
-namespace NWaves.DemoXamarin.Droid
-{
- [Activity(Label = "NWaves.DemoXamarin", Icon = "@mipmap/icon", Theme = "@style/MainTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation)]
- public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
- {
- protected override void OnCreate(Bundle bundle)
- {
- TabLayoutResource = Resource.Layout.Tabbar;
- ToolbarResource = Resource.Layout.Toolbar;
-
- base.OnCreate(bundle);
-
- global::Xamarin.Forms.Forms.Init(this, bundle);
- LoadApplication(new App());
-
- if (ContextCompat.CheckSelfPermission(this, Manifest.Permission.RecordAudio) != Permission.Granted)
- {
- ActivityCompat.RequestPermissions(this, new String[] { Manifest.Permission.RecordAudio }, 1);
- }
- }
- }
-}
-
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/NWaves.DemoXamarin.Android.csproj b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/NWaves.DemoXamarin.Android.csproj
deleted file mode 100644
index 3f7d7fc..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/NWaves.DemoXamarin.Android.csproj
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
- Debug
- AnyCPU
- {4E69D1A8-4D08-436A-9CBB-106770206401}
- {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
- {c9e5eea5-ca05-42a1-839b-61506e0a37df}
- Library
- NWaves.DemoXamarin.Droid
- NWaves.DemoXamarin.Android
- True
- Resources\Resource.designer.cs
- Resource
- Properties\AndroidManifest.xml
- Resources
- Assets
- false
- v8.1
-
-
-
-
- true
- full
- false
- bin\Debug
- DEBUG;
- prompt
- 4
- None
-
-
- true
- pdbonly
- true
- bin\Release
- prompt
- 4
- true
- false
- false
- false
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {3fbf1b3a-3bed-4f2f-8008-871acf83e352}
- NWaves
-
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Properties/AndroidManifest.xml b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Properties/AndroidManifest.xml
deleted file mode 100644
index e577129..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Properties/AndroidManifest.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Properties/AssemblyInfo.cs b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Properties/AssemblyInfo.cs
deleted file mode 100644
index 7055797..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,34 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-using Android.App;
-
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("NWaves.DemoXamarin.Android")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("NWaves.DemoXamarin.Android")]
-[assembly: AssemblyCopyright("Copyright © 2014")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-[assembly: ComVisible(false)]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
-
-// Add some common permissions, these can be removed if not needed
-[assembly: UsesPermission(Android.Manifest.Permission.Internet)]
-[assembly: UsesPermission(Android.Manifest.Permission.WriteExternalStorage)]
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/AboutResources.txt b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/AboutResources.txt
deleted file mode 100644
index cb30f20..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/AboutResources.txt
+++ /dev/null
@@ -1,50 +0,0 @@
-Images, layout descriptions, binary blobs and string dictionaries can be included
-in your application as resource files. Various Android APIs are designed to
-operate on the resource IDs instead of dealing with images, strings or binary blobs
-directly.
-
-For example, a sample Android app that contains a user interface layout (main.xml),
-an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)
-would keep its resources in the "Resources" directory of the application:
-
-Resources/
- drawable-hdpi/
- icon.png
-
- drawable-ldpi/
- icon.png
-
- drawable-mdpi/
- icon.png
-
- layout/
- main.xml
-
- values/
- strings.xml
-
-In order to get the build system to recognize Android resources, set the build action to
-"AndroidResource". The native Android APIs do not operate directly with filenames, but
-instead operate on resource IDs. When you compile an Android application that uses resources,
-the build system will package the resources for distribution and generate a class called
-"Resource" that contains the tokens for each one of the resources included. For example,
-for the above Resources layout, this is what the Resource class would expose:
-
-public class Resource {
- public class drawable {
- public const int icon = 0x123;
- }
-
- public class layout {
- public const int main = 0x456;
- }
-
- public class strings {
- public const int first_string = 0xabc;
- public const int second_string = 0xbcd;
- }
-}
-
-You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main
-to reference the layout/main.xml file, or Resource.strings.first_string to reference the first
-string in the dictionary file values/strings.xml.
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/Resource.designer.cs b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/Resource.designer.cs
deleted file mode 100644
index df730e4..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/Resource.designer.cs
+++ /dev/null
@@ -1,7504 +0,0 @@
-#pragma warning disable 1591
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-[assembly: global::Android.Runtime.ResourceDesignerAttribute("NWaves.DemoXamarin.Droid.Resource", IsApplication=true)]
-
-namespace NWaves.DemoXamarin.Droid
-{
-
-
- [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")]
- public partial class Resource
- {
-
- static Resource()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- public static void UpdateIdValues()
- {
- global::Xamarin.Forms.Platform.Android.Resource.Attribute.actionBarSize = global::NWaves.DemoXamarin.Droid.Resource.Attribute.actionBarSize;
- }
-
- public partial class Animation
- {
-
- // aapt resource value: 0x7f050000
- public const int abc_fade_in = 2131034112;
-
- // aapt resource value: 0x7f050001
- public const int abc_fade_out = 2131034113;
-
- // aapt resource value: 0x7f050002
- public const int abc_grow_fade_in_from_bottom = 2131034114;
-
- // aapt resource value: 0x7f050003
- public const int abc_popup_enter = 2131034115;
-
- // aapt resource value: 0x7f050004
- public const int abc_popup_exit = 2131034116;
-
- // aapt resource value: 0x7f050005
- public const int abc_shrink_fade_out_from_bottom = 2131034117;
-
- // aapt resource value: 0x7f050006
- public const int abc_slide_in_bottom = 2131034118;
-
- // aapt resource value: 0x7f050007
- public const int abc_slide_in_top = 2131034119;
-
- // aapt resource value: 0x7f050008
- public const int abc_slide_out_bottom = 2131034120;
-
- // aapt resource value: 0x7f050009
- public const int abc_slide_out_top = 2131034121;
-
- // aapt resource value: 0x7f05000a
- public const int design_bottom_sheet_slide_in = 2131034122;
-
- // aapt resource value: 0x7f05000b
- public const int design_bottom_sheet_slide_out = 2131034123;
-
- // aapt resource value: 0x7f05000c
- public const int design_snackbar_in = 2131034124;
-
- // aapt resource value: 0x7f05000d
- public const int design_snackbar_out = 2131034125;
-
- // aapt resource value: 0x7f05000e
- public const int tooltip_enter = 2131034126;
-
- // aapt resource value: 0x7f05000f
- public const int tooltip_exit = 2131034127;
-
- static Animation()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Animation()
- {
- }
- }
-
- public partial class Animator
- {
-
- // aapt resource value: 0x7f060000
- public const int design_appbar_state_list_animator = 2131099648;
-
- static Animator()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Animator()
- {
- }
- }
-
- public partial class Attribute
- {
-
- // aapt resource value: 0x7f01006b
- public const int actionBarDivider = 2130772075;
-
- // aapt resource value: 0x7f01006c
- public const int actionBarItemBackground = 2130772076;
-
- // aapt resource value: 0x7f010065
- public const int actionBarPopupTheme = 2130772069;
-
- // aapt resource value: 0x7f01006a
- public const int actionBarSize = 2130772074;
-
- // aapt resource value: 0x7f010067
- public const int actionBarSplitStyle = 2130772071;
-
- // aapt resource value: 0x7f010066
- public const int actionBarStyle = 2130772070;
-
- // aapt resource value: 0x7f010061
- public const int actionBarTabBarStyle = 2130772065;
-
- // aapt resource value: 0x7f010060
- public const int actionBarTabStyle = 2130772064;
-
- // aapt resource value: 0x7f010062
- public const int actionBarTabTextStyle = 2130772066;
-
- // aapt resource value: 0x7f010068
- public const int actionBarTheme = 2130772072;
-
- // aapt resource value: 0x7f010069
- public const int actionBarWidgetTheme = 2130772073;
-
- // aapt resource value: 0x7f010086
- public const int actionButtonStyle = 2130772102;
-
- // aapt resource value: 0x7f010082
- public const int actionDropDownStyle = 2130772098;
-
- // aapt resource value: 0x7f0100dd
- public const int actionLayout = 2130772189;
-
- // aapt resource value: 0x7f01006d
- public const int actionMenuTextAppearance = 2130772077;
-
- // aapt resource value: 0x7f01006e
- public const int actionMenuTextColor = 2130772078;
-
- // aapt resource value: 0x7f010071
- public const int actionModeBackground = 2130772081;
-
- // aapt resource value: 0x7f010070
- public const int actionModeCloseButtonStyle = 2130772080;
-
- // aapt resource value: 0x7f010073
- public const int actionModeCloseDrawable = 2130772083;
-
- // aapt resource value: 0x7f010075
- public const int actionModeCopyDrawable = 2130772085;
-
- // aapt resource value: 0x7f010074
- public const int actionModeCutDrawable = 2130772084;
-
- // aapt resource value: 0x7f010079
- public const int actionModeFindDrawable = 2130772089;
-
- // aapt resource value: 0x7f010076
- public const int actionModePasteDrawable = 2130772086;
-
- // aapt resource value: 0x7f01007b
- public const int actionModePopupWindowStyle = 2130772091;
-
- // aapt resource value: 0x7f010077
- public const int actionModeSelectAllDrawable = 2130772087;
-
- // aapt resource value: 0x7f010078
- public const int actionModeShareDrawable = 2130772088;
-
- // aapt resource value: 0x7f010072
- public const int actionModeSplitBackground = 2130772082;
-
- // aapt resource value: 0x7f01006f
- public const int actionModeStyle = 2130772079;
-
- // aapt resource value: 0x7f01007a
- public const int actionModeWebSearchDrawable = 2130772090;
-
- // aapt resource value: 0x7f010063
- public const int actionOverflowButtonStyle = 2130772067;
-
- // aapt resource value: 0x7f010064
- public const int actionOverflowMenuStyle = 2130772068;
-
- // aapt resource value: 0x7f0100df
- public const int actionProviderClass = 2130772191;
-
- // aapt resource value: 0x7f0100de
- public const int actionViewClass = 2130772190;
-
- // aapt resource value: 0x7f01008e
- public const int activityChooserViewStyle = 2130772110;
-
- // aapt resource value: 0x7f0100b3
- public const int alertDialogButtonGroupStyle = 2130772147;
-
- // aapt resource value: 0x7f0100b4
- public const int alertDialogCenterButtons = 2130772148;
-
- // aapt resource value: 0x7f0100b2
- public const int alertDialogStyle = 2130772146;
-
- // aapt resource value: 0x7f0100b5
- public const int alertDialogTheme = 2130772149;
-
- // aapt resource value: 0x7f0100cb
- public const int allowStacking = 2130772171;
-
- // aapt resource value: 0x7f0100cc
- public const int alpha = 2130772172;
-
- // aapt resource value: 0x7f0100da
- public const int alphabeticModifiers = 2130772186;
-
- // aapt resource value: 0x7f0100d3
- public const int arrowHeadLength = 2130772179;
-
- // aapt resource value: 0x7f0100d4
- public const int arrowShaftLength = 2130772180;
-
- // aapt resource value: 0x7f0100ba
- public const int autoCompleteTextViewStyle = 2130772154;
-
- // aapt resource value: 0x7f010054
- public const int autoSizeMaxTextSize = 2130772052;
-
- // aapt resource value: 0x7f010053
- public const int autoSizeMinTextSize = 2130772051;
-
- // aapt resource value: 0x7f010052
- public const int autoSizePresetSizes = 2130772050;
-
- // aapt resource value: 0x7f010051
- public const int autoSizeStepGranularity = 2130772049;
-
- // aapt resource value: 0x7f010050
- public const int autoSizeTextType = 2130772048;
-
- // aapt resource value: 0x7f01002e
- public const int background = 2130772014;
-
- // aapt resource value: 0x7f010030
- public const int backgroundSplit = 2130772016;
-
- // aapt resource value: 0x7f01002f
- public const int backgroundStacked = 2130772015;
-
- // aapt resource value: 0x7f010116
- public const int backgroundTint = 2130772246;
-
- // aapt resource value: 0x7f010117
- public const int backgroundTintMode = 2130772247;
-
- // aapt resource value: 0x7f0100d5
- public const int barLength = 2130772181;
-
- // aapt resource value: 0x7f010141
- public const int behavior_autoHide = 2130772289;
-
- // aapt resource value: 0x7f01011e
- public const int behavior_hideable = 2130772254;
-
- // aapt resource value: 0x7f01014a
- public const int behavior_overlapTop = 2130772298;
-
- // aapt resource value: 0x7f01011d
- public const int behavior_peekHeight = 2130772253;
-
- // aapt resource value: 0x7f01011f
- public const int behavior_skipCollapsed = 2130772255;
-
- // aapt resource value: 0x7f01013f
- public const int borderWidth = 2130772287;
-
- // aapt resource value: 0x7f01008b
- public const int borderlessButtonStyle = 2130772107;
-
- // aapt resource value: 0x7f010139
- public const int bottomSheetDialogTheme = 2130772281;
-
- // aapt resource value: 0x7f01013a
- public const int bottomSheetStyle = 2130772282;
-
- // aapt resource value: 0x7f010088
- public const int buttonBarButtonStyle = 2130772104;
-
- // aapt resource value: 0x7f0100b8
- public const int buttonBarNegativeButtonStyle = 2130772152;
-
- // aapt resource value: 0x7f0100b9
- public const int buttonBarNeutralButtonStyle = 2130772153;
-
- // aapt resource value: 0x7f0100b7
- public const int buttonBarPositiveButtonStyle = 2130772151;
-
- // aapt resource value: 0x7f010087
- public const int buttonBarStyle = 2130772103;
-
- // aapt resource value: 0x7f01010b
- public const int buttonGravity = 2130772235;
-
- // aapt resource value: 0x7f010043
- public const int buttonPanelSideLayout = 2130772035;
-
- // aapt resource value: 0x7f0100bb
- public const int buttonStyle = 2130772155;
-
- // aapt resource value: 0x7f0100bc
- public const int buttonStyleSmall = 2130772156;
-
- // aapt resource value: 0x7f0100cd
- public const int buttonTint = 2130772173;
-
- // aapt resource value: 0x7f0100ce
- public const int buttonTintMode = 2130772174;
-
- // aapt resource value: 0x7f010017
- public const int cardBackgroundColor = 2130771991;
-
- // aapt resource value: 0x7f010018
- public const int cardCornerRadius = 2130771992;
-
- // aapt resource value: 0x7f010019
- public const int cardElevation = 2130771993;
-
- // aapt resource value: 0x7f01001a
- public const int cardMaxElevation = 2130771994;
-
- // aapt resource value: 0x7f01001c
- public const int cardPreventCornerOverlap = 2130771996;
-
- // aapt resource value: 0x7f01001b
- public const int cardUseCompatPadding = 2130771995;
-
- // aapt resource value: 0x7f0100bd
- public const int checkboxStyle = 2130772157;
-
- // aapt resource value: 0x7f0100be
- public const int checkedTextViewStyle = 2130772158;
-
- // aapt resource value: 0x7f0100ee
- public const int closeIcon = 2130772206;
-
- // aapt resource value: 0x7f010040
- public const int closeItemLayout = 2130772032;
-
- // aapt resource value: 0x7f01010d
- public const int collapseContentDescription = 2130772237;
-
- // aapt resource value: 0x7f01010c
- public const int collapseIcon = 2130772236;
-
- // aapt resource value: 0x7f01012c
- public const int collapsedTitleGravity = 2130772268;
-
- // aapt resource value: 0x7f010126
- public const int collapsedTitleTextAppearance = 2130772262;
-
- // aapt resource value: 0x7f0100cf
- public const int color = 2130772175;
-
- // aapt resource value: 0x7f0100aa
- public const int colorAccent = 2130772138;
-
- // aapt resource value: 0x7f0100b1
- public const int colorBackgroundFloating = 2130772145;
-
- // aapt resource value: 0x7f0100ae
- public const int colorButtonNormal = 2130772142;
-
- // aapt resource value: 0x7f0100ac
- public const int colorControlActivated = 2130772140;
-
- // aapt resource value: 0x7f0100ad
- public const int colorControlHighlight = 2130772141;
-
- // aapt resource value: 0x7f0100ab
- public const int colorControlNormal = 2130772139;
-
- // aapt resource value: 0x7f0100ca
- public const int colorError = 2130772170;
-
- // aapt resource value: 0x7f0100a8
- public const int colorPrimary = 2130772136;
-
- // aapt resource value: 0x7f0100a9
- public const int colorPrimaryDark = 2130772137;
-
- // aapt resource value: 0x7f0100af
- public const int colorSwitchThumbNormal = 2130772143;
-
- // aapt resource value: 0x7f0100f3
- public const int commitIcon = 2130772211;
-
- // aapt resource value: 0x7f0100e0
- public const int contentDescription = 2130772192;
-
- // aapt resource value: 0x7f010039
- public const int contentInsetEnd = 2130772025;
-
- // aapt resource value: 0x7f01003d
- public const int contentInsetEndWithActions = 2130772029;
-
- // aapt resource value: 0x7f01003a
- public const int contentInsetLeft = 2130772026;
-
- // aapt resource value: 0x7f01003b
- public const int contentInsetRight = 2130772027;
-
- // aapt resource value: 0x7f010038
- public const int contentInsetStart = 2130772024;
-
- // aapt resource value: 0x7f01003c
- public const int contentInsetStartWithNavigation = 2130772028;
-
- // aapt resource value: 0x7f01001d
- public const int contentPadding = 2130771997;
-
- // aapt resource value: 0x7f010021
- public const int contentPaddingBottom = 2130772001;
-
- // aapt resource value: 0x7f01001e
- public const int contentPaddingLeft = 2130771998;
-
- // aapt resource value: 0x7f01001f
- public const int contentPaddingRight = 2130771999;
-
- // aapt resource value: 0x7f010020
- public const int contentPaddingTop = 2130772000;
-
- // aapt resource value: 0x7f010127
- public const int contentScrim = 2130772263;
-
- // aapt resource value: 0x7f0100b0
- public const int controlBackground = 2130772144;
-
- // aapt resource value: 0x7f010160
- public const int counterEnabled = 2130772320;
-
- // aapt resource value: 0x7f010161
- public const int counterMaxLength = 2130772321;
-
- // aapt resource value: 0x7f010163
- public const int counterOverflowTextAppearance = 2130772323;
-
- // aapt resource value: 0x7f010162
- public const int counterTextAppearance = 2130772322;
-
- // aapt resource value: 0x7f010031
- public const int customNavigationLayout = 2130772017;
-
- // aapt resource value: 0x7f0100ed
- public const int defaultQueryHint = 2130772205;
-
- // aapt resource value: 0x7f010080
- public const int dialogPreferredPadding = 2130772096;
-
- // aapt resource value: 0x7f01007f
- public const int dialogTheme = 2130772095;
-
- // aapt resource value: 0x7f010027
- public const int displayOptions = 2130772007;
-
- // aapt resource value: 0x7f01002d
- public const int divider = 2130772013;
-
- // aapt resource value: 0x7f01008d
- public const int dividerHorizontal = 2130772109;
-
- // aapt resource value: 0x7f0100d9
- public const int dividerPadding = 2130772185;
-
- // aapt resource value: 0x7f01008c
- public const int dividerVertical = 2130772108;
-
- // aapt resource value: 0x7f0100d1
- public const int drawableSize = 2130772177;
-
- // aapt resource value: 0x7f010022
- public const int drawerArrowStyle = 2130772002;
-
- // aapt resource value: 0x7f01009f
- public const int dropDownListViewStyle = 2130772127;
-
- // aapt resource value: 0x7f010083
- public const int dropdownListPreferredItemHeight = 2130772099;
-
- // aapt resource value: 0x7f010094
- public const int editTextBackground = 2130772116;
-
- // aapt resource value: 0x7f010093
- public const int editTextColor = 2130772115;
-
- // aapt resource value: 0x7f0100bf
- public const int editTextStyle = 2130772159;
-
- // aapt resource value: 0x7f01003e
- public const int elevation = 2130772030;
-
- // aapt resource value: 0x7f01015e
- public const int errorEnabled = 2130772318;
-
- // aapt resource value: 0x7f01015f
- public const int errorTextAppearance = 2130772319;
-
- // aapt resource value: 0x7f010042
- public const int expandActivityOverflowButtonDrawable = 2130772034;
-
- // aapt resource value: 0x7f010118
- public const int expanded = 2130772248;
-
- // aapt resource value: 0x7f01012d
- public const int expandedTitleGravity = 2130772269;
-
- // aapt resource value: 0x7f010120
- public const int expandedTitleMargin = 2130772256;
-
- // aapt resource value: 0x7f010124
- public const int expandedTitleMarginBottom = 2130772260;
-
- // aapt resource value: 0x7f010123
- public const int expandedTitleMarginEnd = 2130772259;
-
- // aapt resource value: 0x7f010121
- public const int expandedTitleMarginStart = 2130772257;
-
- // aapt resource value: 0x7f010122
- public const int expandedTitleMarginTop = 2130772258;
-
- // aapt resource value: 0x7f010125
- public const int expandedTitleTextAppearance = 2130772261;
-
- // aapt resource value: 0x7f010015
- public const int externalRouteEnabledDrawable = 2130771989;
-
- // aapt resource value: 0x7f01013d
- public const int fabSize = 2130772285;
-
- // aapt resource value: 0x7f010004
- public const int fastScrollEnabled = 2130771972;
-
- // aapt resource value: 0x7f010007
- public const int fastScrollHorizontalThumbDrawable = 2130771975;
-
- // aapt resource value: 0x7f010008
- public const int fastScrollHorizontalTrackDrawable = 2130771976;
-
- // aapt resource value: 0x7f010005
- public const int fastScrollVerticalThumbDrawable = 2130771973;
-
- // aapt resource value: 0x7f010006
- public const int fastScrollVerticalTrackDrawable = 2130771974;
-
- // aapt resource value: 0x7f010171
- public const int font = 2130772337;
-
- // aapt resource value: 0x7f010055
- public const int fontFamily = 2130772053;
-
- // aapt resource value: 0x7f01016a
- public const int fontProviderAuthority = 2130772330;
-
- // aapt resource value: 0x7f01016d
- public const int fontProviderCerts = 2130772333;
-
- // aapt resource value: 0x7f01016e
- public const int fontProviderFetchStrategy = 2130772334;
-
- // aapt resource value: 0x7f01016f
- public const int fontProviderFetchTimeout = 2130772335;
-
- // aapt resource value: 0x7f01016b
- public const int fontProviderPackage = 2130772331;
-
- // aapt resource value: 0x7f01016c
- public const int fontProviderQuery = 2130772332;
-
- // aapt resource value: 0x7f010170
- public const int fontStyle = 2130772336;
-
- // aapt resource value: 0x7f010172
- public const int fontWeight = 2130772338;
-
- // aapt resource value: 0x7f010142
- public const int foregroundInsidePadding = 2130772290;
-
- // aapt resource value: 0x7f0100d2
- public const int gapBetweenBars = 2130772178;
-
- // aapt resource value: 0x7f0100ef
- public const int goIcon = 2130772207;
-
- // aapt resource value: 0x7f010148
- public const int headerLayout = 2130772296;
-
- // aapt resource value: 0x7f010023
- public const int height = 2130772003;
-
- // aapt resource value: 0x7f010037
- public const int hideOnContentScroll = 2130772023;
-
- // aapt resource value: 0x7f010164
- public const int hintAnimationEnabled = 2130772324;
-
- // aapt resource value: 0x7f01015d
- public const int hintEnabled = 2130772317;
-
- // aapt resource value: 0x7f01015c
- public const int hintTextAppearance = 2130772316;
-
- // aapt resource value: 0x7f010085
- public const int homeAsUpIndicator = 2130772101;
-
- // aapt resource value: 0x7f010032
- public const int homeLayout = 2130772018;
-
- // aapt resource value: 0x7f01002b
- public const int icon = 2130772011;
-
- // aapt resource value: 0x7f0100e2
- public const int iconTint = 2130772194;
-
- // aapt resource value: 0x7f0100e3
- public const int iconTintMode = 2130772195;
-
- // aapt resource value: 0x7f0100eb
- public const int iconifiedByDefault = 2130772203;
-
- // aapt resource value: 0x7f010095
- public const int imageButtonStyle = 2130772117;
-
- // aapt resource value: 0x7f010034
- public const int indeterminateProgressStyle = 2130772020;
-
- // aapt resource value: 0x7f010041
- public const int initialActivityCount = 2130772033;
-
- // aapt resource value: 0x7f010149
- public const int insetForeground = 2130772297;
-
- // aapt resource value: 0x7f010024
- public const int isLightTheme = 2130772004;
-
- // aapt resource value: 0x7f010146
- public const int itemBackground = 2130772294;
-
- // aapt resource value: 0x7f010144
- public const int itemIconTint = 2130772292;
-
- // aapt resource value: 0x7f010036
- public const int itemPadding = 2130772022;
-
- // aapt resource value: 0x7f010147
- public const int itemTextAppearance = 2130772295;
-
- // aapt resource value: 0x7f010145
- public const int itemTextColor = 2130772293;
-
- // aapt resource value: 0x7f010131
- public const int keylines = 2130772273;
-
- // aapt resource value: 0x7f0100ea
- public const int layout = 2130772202;
-
- // aapt resource value: 0x7f010000
- public const int layoutManager = 2130771968;
-
- // aapt resource value: 0x7f010134
- public const int layout_anchor = 2130772276;
-
- // aapt resource value: 0x7f010136
- public const int layout_anchorGravity = 2130772278;
-
- // aapt resource value: 0x7f010133
- public const int layout_behavior = 2130772275;
-
- // aapt resource value: 0x7f01012f
- public const int layout_collapseMode = 2130772271;
-
- // aapt resource value: 0x7f010130
- public const int layout_collapseParallaxMultiplier = 2130772272;
-
- // aapt resource value: 0x7f010138
- public const int layout_dodgeInsetEdges = 2130772280;
-
- // aapt resource value: 0x7f010137
- public const int layout_insetEdge = 2130772279;
-
- // aapt resource value: 0x7f010135
- public const int layout_keyline = 2130772277;
-
- // aapt resource value: 0x7f01011b
- public const int layout_scrollFlags = 2130772251;
-
- // aapt resource value: 0x7f01011c
- public const int layout_scrollInterpolator = 2130772252;
-
- // aapt resource value: 0x7f0100a7
- public const int listChoiceBackgroundIndicator = 2130772135;
-
- // aapt resource value: 0x7f010081
- public const int listDividerAlertDialog = 2130772097;
-
- // aapt resource value: 0x7f010047
- public const int listItemLayout = 2130772039;
-
- // aapt resource value: 0x7f010044
- public const int listLayout = 2130772036;
-
- // aapt resource value: 0x7f0100c7
- public const int listMenuViewStyle = 2130772167;
-
- // aapt resource value: 0x7f0100a0
- public const int listPopupWindowStyle = 2130772128;
-
- // aapt resource value: 0x7f01009a
- public const int listPreferredItemHeight = 2130772122;
-
- // aapt resource value: 0x7f01009c
- public const int listPreferredItemHeightLarge = 2130772124;
-
- // aapt resource value: 0x7f01009b
- public const int listPreferredItemHeightSmall = 2130772123;
-
- // aapt resource value: 0x7f01009d
- public const int listPreferredItemPaddingLeft = 2130772125;
-
- // aapt resource value: 0x7f01009e
- public const int listPreferredItemPaddingRight = 2130772126;
-
- // aapt resource value: 0x7f01002c
- public const int logo = 2130772012;
-
- // aapt resource value: 0x7f010110
- public const int logoDescription = 2130772240;
-
- // aapt resource value: 0x7f01014b
- public const int maxActionInlineWidth = 2130772299;
-
- // aapt resource value: 0x7f01010a
- public const int maxButtonHeight = 2130772234;
-
- // aapt resource value: 0x7f0100d7
- public const int measureWithLargestChild = 2130772183;
-
- // aapt resource value: 0x7f010009
- public const int mediaRouteAudioTrackDrawable = 2130771977;
-
- // aapt resource value: 0x7f01000a
- public const int mediaRouteButtonStyle = 2130771978;
-
- // aapt resource value: 0x7f010016
- public const int mediaRouteButtonTint = 2130771990;
-
- // aapt resource value: 0x7f01000b
- public const int mediaRouteCloseDrawable = 2130771979;
-
- // aapt resource value: 0x7f01000c
- public const int mediaRouteControlPanelThemeOverlay = 2130771980;
-
- // aapt resource value: 0x7f01000d
- public const int mediaRouteDefaultIconDrawable = 2130771981;
-
- // aapt resource value: 0x7f01000e
- public const int mediaRoutePauseDrawable = 2130771982;
-
- // aapt resource value: 0x7f01000f
- public const int mediaRoutePlayDrawable = 2130771983;
-
- // aapt resource value: 0x7f010010
- public const int mediaRouteSpeakerGroupIconDrawable = 2130771984;
-
- // aapt resource value: 0x7f010011
- public const int mediaRouteSpeakerIconDrawable = 2130771985;
-
- // aapt resource value: 0x7f010012
- public const int mediaRouteStopDrawable = 2130771986;
-
- // aapt resource value: 0x7f010013
- public const int mediaRouteTheme = 2130771987;
-
- // aapt resource value: 0x7f010014
- public const int mediaRouteTvIconDrawable = 2130771988;
-
- // aapt resource value: 0x7f010143
- public const int menu = 2130772291;
-
- // aapt resource value: 0x7f010045
- public const int multiChoiceItemLayout = 2130772037;
-
- // aapt resource value: 0x7f01010f
- public const int navigationContentDescription = 2130772239;
-
- // aapt resource value: 0x7f01010e
- public const int navigationIcon = 2130772238;
-
- // aapt resource value: 0x7f010026
- public const int navigationMode = 2130772006;
-
- // aapt resource value: 0x7f0100db
- public const int numericModifiers = 2130772187;
-
- // aapt resource value: 0x7f0100e6
- public const int overlapAnchor = 2130772198;
-
- // aapt resource value: 0x7f0100e8
- public const int paddingBottomNoButtons = 2130772200;
-
- // aapt resource value: 0x7f010114
- public const int paddingEnd = 2130772244;
-
- // aapt resource value: 0x7f010113
- public const int paddingStart = 2130772243;
-
- // aapt resource value: 0x7f0100e9
- public const int paddingTopNoTitle = 2130772201;
-
- // aapt resource value: 0x7f0100a4
- public const int panelBackground = 2130772132;
-
- // aapt resource value: 0x7f0100a6
- public const int panelMenuListTheme = 2130772134;
-
- // aapt resource value: 0x7f0100a5
- public const int panelMenuListWidth = 2130772133;
-
- // aapt resource value: 0x7f010167
- public const int passwordToggleContentDescription = 2130772327;
-
- // aapt resource value: 0x7f010166
- public const int passwordToggleDrawable = 2130772326;
-
- // aapt resource value: 0x7f010165
- public const int passwordToggleEnabled = 2130772325;
-
- // aapt resource value: 0x7f010168
- public const int passwordToggleTint = 2130772328;
-
- // aapt resource value: 0x7f010169
- public const int passwordToggleTintMode = 2130772329;
-
- // aapt resource value: 0x7f010091
- public const int popupMenuStyle = 2130772113;
-
- // aapt resource value: 0x7f01003f
- public const int popupTheme = 2130772031;
-
- // aapt resource value: 0x7f010092
- public const int popupWindowStyle = 2130772114;
-
- // aapt resource value: 0x7f0100e4
- public const int preserveIconSpacing = 2130772196;
-
- // aapt resource value: 0x7f01013e
- public const int pressedTranslationZ = 2130772286;
-
- // aapt resource value: 0x7f010035
- public const int progressBarPadding = 2130772021;
-
- // aapt resource value: 0x7f010033
- public const int progressBarStyle = 2130772019;
-
- // aapt resource value: 0x7f0100f5
- public const int queryBackground = 2130772213;
-
- // aapt resource value: 0x7f0100ec
- public const int queryHint = 2130772204;
-
- // aapt resource value: 0x7f0100c0
- public const int radioButtonStyle = 2130772160;
-
- // aapt resource value: 0x7f0100c1
- public const int ratingBarStyle = 2130772161;
-
- // aapt resource value: 0x7f0100c2
- public const int ratingBarStyleIndicator = 2130772162;
-
- // aapt resource value: 0x7f0100c3
- public const int ratingBarStyleSmall = 2130772163;
-
- // aapt resource value: 0x7f010002
- public const int reverseLayout = 2130771970;
-
- // aapt resource value: 0x7f01013c
- public const int rippleColor = 2130772284;
-
- // aapt resource value: 0x7f01012b
- public const int scrimAnimationDuration = 2130772267;
-
- // aapt resource value: 0x7f01012a
- public const int scrimVisibleHeightTrigger = 2130772266;
-
- // aapt resource value: 0x7f0100f1
- public const int searchHintIcon = 2130772209;
-
- // aapt resource value: 0x7f0100f0
- public const int searchIcon = 2130772208;
-
- // aapt resource value: 0x7f010099
- public const int searchViewStyle = 2130772121;
-
- // aapt resource value: 0x7f0100c4
- public const int seekBarStyle = 2130772164;
-
- // aapt resource value: 0x7f010089
- public const int selectableItemBackground = 2130772105;
-
- // aapt resource value: 0x7f01008a
- public const int selectableItemBackgroundBorderless = 2130772106;
-
- // aapt resource value: 0x7f0100dc
- public const int showAsAction = 2130772188;
-
- // aapt resource value: 0x7f0100d8
- public const int showDividers = 2130772184;
-
- // aapt resource value: 0x7f010101
- public const int showText = 2130772225;
-
- // aapt resource value: 0x7f010048
- public const int showTitle = 2130772040;
-
- // aapt resource value: 0x7f010046
- public const int singleChoiceItemLayout = 2130772038;
-
- // aapt resource value: 0x7f010001
- public const int spanCount = 2130771969;
-
- // aapt resource value: 0x7f0100d0
- public const int spinBars = 2130772176;
-
- // aapt resource value: 0x7f010084
- public const int spinnerDropDownItemStyle = 2130772100;
-
- // aapt resource value: 0x7f0100c5
- public const int spinnerStyle = 2130772165;
-
- // aapt resource value: 0x7f010100
- public const int splitTrack = 2130772224;
-
- // aapt resource value: 0x7f010049
- public const int srcCompat = 2130772041;
-
- // aapt resource value: 0x7f010003
- public const int stackFromEnd = 2130771971;
-
- // aapt resource value: 0x7f0100e7
- public const int state_above_anchor = 2130772199;
-
- // aapt resource value: 0x7f010119
- public const int state_collapsed = 2130772249;
-
- // aapt resource value: 0x7f01011a
- public const int state_collapsible = 2130772250;
-
- // aapt resource value: 0x7f010132
- public const int statusBarBackground = 2130772274;
-
- // aapt resource value: 0x7f010128
- public const int statusBarScrim = 2130772264;
-
- // aapt resource value: 0x7f0100e5
- public const int subMenuArrow = 2130772197;
-
- // aapt resource value: 0x7f0100f6
- public const int submitBackground = 2130772214;
-
- // aapt resource value: 0x7f010028
- public const int subtitle = 2130772008;
-
- // aapt resource value: 0x7f010103
- public const int subtitleTextAppearance = 2130772227;
-
- // aapt resource value: 0x7f010112
- public const int subtitleTextColor = 2130772242;
-
- // aapt resource value: 0x7f01002a
- public const int subtitleTextStyle = 2130772010;
-
- // aapt resource value: 0x7f0100f4
- public const int suggestionRowLayout = 2130772212;
-
- // aapt resource value: 0x7f0100fe
- public const int switchMinWidth = 2130772222;
-
- // aapt resource value: 0x7f0100ff
- public const int switchPadding = 2130772223;
-
- // aapt resource value: 0x7f0100c6
- public const int switchStyle = 2130772166;
-
- // aapt resource value: 0x7f0100fd
- public const int switchTextAppearance = 2130772221;
-
- // aapt resource value: 0x7f01014f
- public const int tabBackground = 2130772303;
-
- // aapt resource value: 0x7f01014e
- public const int tabContentStart = 2130772302;
-
- // aapt resource value: 0x7f010151
- public const int tabGravity = 2130772305;
-
- // aapt resource value: 0x7f01014c
- public const int tabIndicatorColor = 2130772300;
-
- // aapt resource value: 0x7f01014d
- public const int tabIndicatorHeight = 2130772301;
-
- // aapt resource value: 0x7f010153
- public const int tabMaxWidth = 2130772307;
-
- // aapt resource value: 0x7f010152
- public const int tabMinWidth = 2130772306;
-
- // aapt resource value: 0x7f010150
- public const int tabMode = 2130772304;
-
- // aapt resource value: 0x7f01015b
- public const int tabPadding = 2130772315;
-
- // aapt resource value: 0x7f01015a
- public const int tabPaddingBottom = 2130772314;
-
- // aapt resource value: 0x7f010159
- public const int tabPaddingEnd = 2130772313;
-
- // aapt resource value: 0x7f010157
- public const int tabPaddingStart = 2130772311;
-
- // aapt resource value: 0x7f010158
- public const int tabPaddingTop = 2130772312;
-
- // aapt resource value: 0x7f010156
- public const int tabSelectedTextColor = 2130772310;
-
- // aapt resource value: 0x7f010154
- public const int tabTextAppearance = 2130772308;
-
- // aapt resource value: 0x7f010155
- public const int tabTextColor = 2130772309;
-
- // aapt resource value: 0x7f01004f
- public const int textAllCaps = 2130772047;
-
- // aapt resource value: 0x7f01007c
- public const int textAppearanceLargePopupMenu = 2130772092;
-
- // aapt resource value: 0x7f0100a1
- public const int textAppearanceListItem = 2130772129;
-
- // aapt resource value: 0x7f0100a2
- public const int textAppearanceListItemSecondary = 2130772130;
-
- // aapt resource value: 0x7f0100a3
- public const int textAppearanceListItemSmall = 2130772131;
-
- // aapt resource value: 0x7f01007e
- public const int textAppearancePopupMenuHeader = 2130772094;
-
- // aapt resource value: 0x7f010097
- public const int textAppearanceSearchResultSubtitle = 2130772119;
-
- // aapt resource value: 0x7f010096
- public const int textAppearanceSearchResultTitle = 2130772118;
-
- // aapt resource value: 0x7f01007d
- public const int textAppearanceSmallPopupMenu = 2130772093;
-
- // aapt resource value: 0x7f0100b6
- public const int textColorAlertDialogListItem = 2130772150;
-
- // aapt resource value: 0x7f01013b
- public const int textColorError = 2130772283;
-
- // aapt resource value: 0x7f010098
- public const int textColorSearchUrl = 2130772120;
-
- // aapt resource value: 0x7f010115
- public const int theme = 2130772245;
-
- // aapt resource value: 0x7f0100d6
- public const int thickness = 2130772182;
-
- // aapt resource value: 0x7f0100fc
- public const int thumbTextPadding = 2130772220;
-
- // aapt resource value: 0x7f0100f7
- public const int thumbTint = 2130772215;
-
- // aapt resource value: 0x7f0100f8
- public const int thumbTintMode = 2130772216;
-
- // aapt resource value: 0x7f01004c
- public const int tickMark = 2130772044;
-
- // aapt resource value: 0x7f01004d
- public const int tickMarkTint = 2130772045;
-
- // aapt resource value: 0x7f01004e
- public const int tickMarkTintMode = 2130772046;
-
- // aapt resource value: 0x7f01004a
- public const int tint = 2130772042;
-
- // aapt resource value: 0x7f01004b
- public const int tintMode = 2130772043;
-
- // aapt resource value: 0x7f010025
- public const int title = 2130772005;
-
- // aapt resource value: 0x7f01012e
- public const int titleEnabled = 2130772270;
-
- // aapt resource value: 0x7f010104
- public const int titleMargin = 2130772228;
-
- // aapt resource value: 0x7f010108
- public const int titleMarginBottom = 2130772232;
-
- // aapt resource value: 0x7f010106
- public const int titleMarginEnd = 2130772230;
-
- // aapt resource value: 0x7f010105
- public const int titleMarginStart = 2130772229;
-
- // aapt resource value: 0x7f010107
- public const int titleMarginTop = 2130772231;
-
- // aapt resource value: 0x7f010109
- public const int titleMargins = 2130772233;
-
- // aapt resource value: 0x7f010102
- public const int titleTextAppearance = 2130772226;
-
- // aapt resource value: 0x7f010111
- public const int titleTextColor = 2130772241;
-
- // aapt resource value: 0x7f010029
- public const int titleTextStyle = 2130772009;
-
- // aapt resource value: 0x7f010129
- public const int toolbarId = 2130772265;
-
- // aapt resource value: 0x7f010090
- public const int toolbarNavigationButtonStyle = 2130772112;
-
- // aapt resource value: 0x7f01008f
- public const int toolbarStyle = 2130772111;
-
- // aapt resource value: 0x7f0100c9
- public const int tooltipForegroundColor = 2130772169;
-
- // aapt resource value: 0x7f0100c8
- public const int tooltipFrameBackground = 2130772168;
-
- // aapt resource value: 0x7f0100e1
- public const int tooltipText = 2130772193;
-
- // aapt resource value: 0x7f0100f9
- public const int track = 2130772217;
-
- // aapt resource value: 0x7f0100fa
- public const int trackTint = 2130772218;
-
- // aapt resource value: 0x7f0100fb
- public const int trackTintMode = 2130772219;
-
- // aapt resource value: 0x7f010140
- public const int useCompatPadding = 2130772288;
-
- // aapt resource value: 0x7f0100f2
- public const int voiceIcon = 2130772210;
-
- // aapt resource value: 0x7f010056
- public const int windowActionBar = 2130772054;
-
- // aapt resource value: 0x7f010058
- public const int windowActionBarOverlay = 2130772056;
-
- // aapt resource value: 0x7f010059
- public const int windowActionModeOverlay = 2130772057;
-
- // aapt resource value: 0x7f01005d
- public const int windowFixedHeightMajor = 2130772061;
-
- // aapt resource value: 0x7f01005b
- public const int windowFixedHeightMinor = 2130772059;
-
- // aapt resource value: 0x7f01005a
- public const int windowFixedWidthMajor = 2130772058;
-
- // aapt resource value: 0x7f01005c
- public const int windowFixedWidthMinor = 2130772060;
-
- // aapt resource value: 0x7f01005e
- public const int windowMinWidthMajor = 2130772062;
-
- // aapt resource value: 0x7f01005f
- public const int windowMinWidthMinor = 2130772063;
-
- // aapt resource value: 0x7f010057
- public const int windowNoTitle = 2130772055;
-
- static Attribute()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Attribute()
- {
- }
- }
-
- public partial class Boolean
- {
-
- // aapt resource value: 0x7f0e0000
- public const int abc_action_bar_embed_tabs = 2131623936;
-
- // aapt resource value: 0x7f0e0001
- public const int abc_allow_stacked_button_bar = 2131623937;
-
- // aapt resource value: 0x7f0e0002
- public const int abc_config_actionMenuItemAllCaps = 2131623938;
-
- // aapt resource value: 0x7f0e0003
- public const int abc_config_closeDialogWhenTouchOutside = 2131623939;
-
- // aapt resource value: 0x7f0e0004
- public const int abc_config_showMenuShortcutsWhenKeyboardPresent = 2131623940;
-
- static Boolean()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Boolean()
- {
- }
- }
-
- public partial class Color
- {
-
- // aapt resource value: 0x7f0d004f
- public const int abc_background_cache_hint_selector_material_dark = 2131558479;
-
- // aapt resource value: 0x7f0d0050
- public const int abc_background_cache_hint_selector_material_light = 2131558480;
-
- // aapt resource value: 0x7f0d0051
- public const int abc_btn_colored_borderless_text_material = 2131558481;
-
- // aapt resource value: 0x7f0d0052
- public const int abc_btn_colored_text_material = 2131558482;
-
- // aapt resource value: 0x7f0d0053
- public const int abc_color_highlight_material = 2131558483;
-
- // aapt resource value: 0x7f0d0054
- public const int abc_hint_foreground_material_dark = 2131558484;
-
- // aapt resource value: 0x7f0d0055
- public const int abc_hint_foreground_material_light = 2131558485;
-
- // aapt resource value: 0x7f0d0004
- public const int abc_input_method_navigation_guard = 2131558404;
-
- // aapt resource value: 0x7f0d0056
- public const int abc_primary_text_disable_only_material_dark = 2131558486;
-
- // aapt resource value: 0x7f0d0057
- public const int abc_primary_text_disable_only_material_light = 2131558487;
-
- // aapt resource value: 0x7f0d0058
- public const int abc_primary_text_material_dark = 2131558488;
-
- // aapt resource value: 0x7f0d0059
- public const int abc_primary_text_material_light = 2131558489;
-
- // aapt resource value: 0x7f0d005a
- public const int abc_search_url_text = 2131558490;
-
- // aapt resource value: 0x7f0d0005
- public const int abc_search_url_text_normal = 2131558405;
-
- // aapt resource value: 0x7f0d0006
- public const int abc_search_url_text_pressed = 2131558406;
-
- // aapt resource value: 0x7f0d0007
- public const int abc_search_url_text_selected = 2131558407;
-
- // aapt resource value: 0x7f0d005b
- public const int abc_secondary_text_material_dark = 2131558491;
-
- // aapt resource value: 0x7f0d005c
- public const int abc_secondary_text_material_light = 2131558492;
-
- // aapt resource value: 0x7f0d005d
- public const int abc_tint_btn_checkable = 2131558493;
-
- // aapt resource value: 0x7f0d005e
- public const int abc_tint_default = 2131558494;
-
- // aapt resource value: 0x7f0d005f
- public const int abc_tint_edittext = 2131558495;
-
- // aapt resource value: 0x7f0d0060
- public const int abc_tint_seek_thumb = 2131558496;
-
- // aapt resource value: 0x7f0d0061
- public const int abc_tint_spinner = 2131558497;
-
- // aapt resource value: 0x7f0d0062
- public const int abc_tint_switch_track = 2131558498;
-
- // aapt resource value: 0x7f0d0008
- public const int accent_material_dark = 2131558408;
-
- // aapt resource value: 0x7f0d0009
- public const int accent_material_light = 2131558409;
-
- // aapt resource value: 0x7f0d000a
- public const int background_floating_material_dark = 2131558410;
-
- // aapt resource value: 0x7f0d000b
- public const int background_floating_material_light = 2131558411;
-
- // aapt resource value: 0x7f0d000c
- public const int background_material_dark = 2131558412;
-
- // aapt resource value: 0x7f0d000d
- public const int background_material_light = 2131558413;
-
- // aapt resource value: 0x7f0d000e
- public const int bright_foreground_disabled_material_dark = 2131558414;
-
- // aapt resource value: 0x7f0d000f
- public const int bright_foreground_disabled_material_light = 2131558415;
-
- // aapt resource value: 0x7f0d0010
- public const int bright_foreground_inverse_material_dark = 2131558416;
-
- // aapt resource value: 0x7f0d0011
- public const int bright_foreground_inverse_material_light = 2131558417;
-
- // aapt resource value: 0x7f0d0012
- public const int bright_foreground_material_dark = 2131558418;
-
- // aapt resource value: 0x7f0d0013
- public const int bright_foreground_material_light = 2131558419;
-
- // aapt resource value: 0x7f0d0014
- public const int button_material_dark = 2131558420;
-
- // aapt resource value: 0x7f0d0015
- public const int button_material_light = 2131558421;
-
- // aapt resource value: 0x7f0d0000
- public const int cardview_dark_background = 2131558400;
-
- // aapt resource value: 0x7f0d0001
- public const int cardview_light_background = 2131558401;
-
- // aapt resource value: 0x7f0d0002
- public const int cardview_shadow_end_color = 2131558402;
-
- // aapt resource value: 0x7f0d0003
- public const int cardview_shadow_start_color = 2131558403;
-
- // aapt resource value: 0x7f0d004e
- public const int colorAccent = 2131558478;
-
- // aapt resource value: 0x7f0d004c
- public const int colorPrimary = 2131558476;
-
- // aapt resource value: 0x7f0d004d
- public const int colorPrimaryDark = 2131558477;
-
- // aapt resource value: 0x7f0d0040
- public const int design_bottom_navigation_shadow_color = 2131558464;
-
- // aapt resource value: 0x7f0d0063
- public const int design_error = 2131558499;
-
- // aapt resource value: 0x7f0d0041
- public const int design_fab_shadow_end_color = 2131558465;
-
- // aapt resource value: 0x7f0d0042
- public const int design_fab_shadow_mid_color = 2131558466;
-
- // aapt resource value: 0x7f0d0043
- public const int design_fab_shadow_start_color = 2131558467;
-
- // aapt resource value: 0x7f0d0044
- public const int design_fab_stroke_end_inner_color = 2131558468;
-
- // aapt resource value: 0x7f0d0045
- public const int design_fab_stroke_end_outer_color = 2131558469;
-
- // aapt resource value: 0x7f0d0046
- public const int design_fab_stroke_top_inner_color = 2131558470;
-
- // aapt resource value: 0x7f0d0047
- public const int design_fab_stroke_top_outer_color = 2131558471;
-
- // aapt resource value: 0x7f0d0048
- public const int design_snackbar_background_color = 2131558472;
-
- // aapt resource value: 0x7f0d0064
- public const int design_tint_password_toggle = 2131558500;
-
- // aapt resource value: 0x7f0d0016
- public const int dim_foreground_disabled_material_dark = 2131558422;
-
- // aapt resource value: 0x7f0d0017
- public const int dim_foreground_disabled_material_light = 2131558423;
-
- // aapt resource value: 0x7f0d0018
- public const int dim_foreground_material_dark = 2131558424;
-
- // aapt resource value: 0x7f0d0019
- public const int dim_foreground_material_light = 2131558425;
-
- // aapt resource value: 0x7f0d001a
- public const int error_color_material = 2131558426;
-
- // aapt resource value: 0x7f0d001b
- public const int foreground_material_dark = 2131558427;
-
- // aapt resource value: 0x7f0d001c
- public const int foreground_material_light = 2131558428;
-
- // aapt resource value: 0x7f0d001d
- public const int highlighted_text_material_dark = 2131558429;
-
- // aapt resource value: 0x7f0d001e
- public const int highlighted_text_material_light = 2131558430;
-
- // aapt resource value: 0x7f0d004b
- public const int launcher_background = 2131558475;
-
- // aapt resource value: 0x7f0d001f
- public const int material_blue_grey_800 = 2131558431;
-
- // aapt resource value: 0x7f0d0020
- public const int material_blue_grey_900 = 2131558432;
-
- // aapt resource value: 0x7f0d0021
- public const int material_blue_grey_950 = 2131558433;
-
- // aapt resource value: 0x7f0d0022
- public const int material_deep_teal_200 = 2131558434;
-
- // aapt resource value: 0x7f0d0023
- public const int material_deep_teal_500 = 2131558435;
-
- // aapt resource value: 0x7f0d0024
- public const int material_grey_100 = 2131558436;
-
- // aapt resource value: 0x7f0d0025
- public const int material_grey_300 = 2131558437;
-
- // aapt resource value: 0x7f0d0026
- public const int material_grey_50 = 2131558438;
-
- // aapt resource value: 0x7f0d0027
- public const int material_grey_600 = 2131558439;
-
- // aapt resource value: 0x7f0d0028
- public const int material_grey_800 = 2131558440;
-
- // aapt resource value: 0x7f0d0029
- public const int material_grey_850 = 2131558441;
-
- // aapt resource value: 0x7f0d002a
- public const int material_grey_900 = 2131558442;
-
- // aapt resource value: 0x7f0d0049
- public const int notification_action_color_filter = 2131558473;
-
- // aapt resource value: 0x7f0d004a
- public const int notification_icon_bg_color = 2131558474;
-
- // aapt resource value: 0x7f0d003f
- public const int notification_material_background_media_default_color = 2131558463;
-
- // aapt resource value: 0x7f0d002b
- public const int primary_dark_material_dark = 2131558443;
-
- // aapt resource value: 0x7f0d002c
- public const int primary_dark_material_light = 2131558444;
-
- // aapt resource value: 0x7f0d002d
- public const int primary_material_dark = 2131558445;
-
- // aapt resource value: 0x7f0d002e
- public const int primary_material_light = 2131558446;
-
- // aapt resource value: 0x7f0d002f
- public const int primary_text_default_material_dark = 2131558447;
-
- // aapt resource value: 0x7f0d0030
- public const int primary_text_default_material_light = 2131558448;
-
- // aapt resource value: 0x7f0d0031
- public const int primary_text_disabled_material_dark = 2131558449;
-
- // aapt resource value: 0x7f0d0032
- public const int primary_text_disabled_material_light = 2131558450;
-
- // aapt resource value: 0x7f0d0033
- public const int ripple_material_dark = 2131558451;
-
- // aapt resource value: 0x7f0d0034
- public const int ripple_material_light = 2131558452;
-
- // aapt resource value: 0x7f0d0035
- public const int secondary_text_default_material_dark = 2131558453;
-
- // aapt resource value: 0x7f0d0036
- public const int secondary_text_default_material_light = 2131558454;
-
- // aapt resource value: 0x7f0d0037
- public const int secondary_text_disabled_material_dark = 2131558455;
-
- // aapt resource value: 0x7f0d0038
- public const int secondary_text_disabled_material_light = 2131558456;
-
- // aapt resource value: 0x7f0d0039
- public const int switch_thumb_disabled_material_dark = 2131558457;
-
- // aapt resource value: 0x7f0d003a
- public const int switch_thumb_disabled_material_light = 2131558458;
-
- // aapt resource value: 0x7f0d0065
- public const int switch_thumb_material_dark = 2131558501;
-
- // aapt resource value: 0x7f0d0066
- public const int switch_thumb_material_light = 2131558502;
-
- // aapt resource value: 0x7f0d003b
- public const int switch_thumb_normal_material_dark = 2131558459;
-
- // aapt resource value: 0x7f0d003c
- public const int switch_thumb_normal_material_light = 2131558460;
-
- // aapt resource value: 0x7f0d003d
- public const int tooltip_background_dark = 2131558461;
-
- // aapt resource value: 0x7f0d003e
- public const int tooltip_background_light = 2131558462;
-
- static Color()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Color()
- {
- }
- }
-
- public partial class Dimension
- {
-
- // aapt resource value: 0x7f08001b
- public const int abc_action_bar_content_inset_material = 2131230747;
-
- // aapt resource value: 0x7f08001c
- public const int abc_action_bar_content_inset_with_nav = 2131230748;
-
- // aapt resource value: 0x7f080010
- public const int abc_action_bar_default_height_material = 2131230736;
-
- // aapt resource value: 0x7f08001d
- public const int abc_action_bar_default_padding_end_material = 2131230749;
-
- // aapt resource value: 0x7f08001e
- public const int abc_action_bar_default_padding_start_material = 2131230750;
-
- // aapt resource value: 0x7f080020
- public const int abc_action_bar_elevation_material = 2131230752;
-
- // aapt resource value: 0x7f080021
- public const int abc_action_bar_icon_vertical_padding_material = 2131230753;
-
- // aapt resource value: 0x7f080022
- public const int abc_action_bar_overflow_padding_end_material = 2131230754;
-
- // aapt resource value: 0x7f080023
- public const int abc_action_bar_overflow_padding_start_material = 2131230755;
-
- // aapt resource value: 0x7f080011
- public const int abc_action_bar_progress_bar_size = 2131230737;
-
- // aapt resource value: 0x7f080024
- public const int abc_action_bar_stacked_max_height = 2131230756;
-
- // aapt resource value: 0x7f080025
- public const int abc_action_bar_stacked_tab_max_width = 2131230757;
-
- // aapt resource value: 0x7f080026
- public const int abc_action_bar_subtitle_bottom_margin_material = 2131230758;
-
- // aapt resource value: 0x7f080027
- public const int abc_action_bar_subtitle_top_margin_material = 2131230759;
-
- // aapt resource value: 0x7f080028
- public const int abc_action_button_min_height_material = 2131230760;
-
- // aapt resource value: 0x7f080029
- public const int abc_action_button_min_width_material = 2131230761;
-
- // aapt resource value: 0x7f08002a
- public const int abc_action_button_min_width_overflow_material = 2131230762;
-
- // aapt resource value: 0x7f08000f
- public const int abc_alert_dialog_button_bar_height = 2131230735;
-
- // aapt resource value: 0x7f08002b
- public const int abc_button_inset_horizontal_material = 2131230763;
-
- // aapt resource value: 0x7f08002c
- public const int abc_button_inset_vertical_material = 2131230764;
-
- // aapt resource value: 0x7f08002d
- public const int abc_button_padding_horizontal_material = 2131230765;
-
- // aapt resource value: 0x7f08002e
- public const int abc_button_padding_vertical_material = 2131230766;
-
- // aapt resource value: 0x7f08002f
- public const int abc_cascading_menus_min_smallest_width = 2131230767;
-
- // aapt resource value: 0x7f080014
- public const int abc_config_prefDialogWidth = 2131230740;
-
- // aapt resource value: 0x7f080030
- public const int abc_control_corner_material = 2131230768;
-
- // aapt resource value: 0x7f080031
- public const int abc_control_inset_material = 2131230769;
-
- // aapt resource value: 0x7f080032
- public const int abc_control_padding_material = 2131230770;
-
- // aapt resource value: 0x7f080015
- public const int abc_dialog_fixed_height_major = 2131230741;
-
- // aapt resource value: 0x7f080016
- public const int abc_dialog_fixed_height_minor = 2131230742;
-
- // aapt resource value: 0x7f080017
- public const int abc_dialog_fixed_width_major = 2131230743;
-
- // aapt resource value: 0x7f080018
- public const int abc_dialog_fixed_width_minor = 2131230744;
-
- // aapt resource value: 0x7f080033
- public const int abc_dialog_list_padding_bottom_no_buttons = 2131230771;
-
- // aapt resource value: 0x7f080034
- public const int abc_dialog_list_padding_top_no_title = 2131230772;
-
- // aapt resource value: 0x7f080019
- public const int abc_dialog_min_width_major = 2131230745;
-
- // aapt resource value: 0x7f08001a
- public const int abc_dialog_min_width_minor = 2131230746;
-
- // aapt resource value: 0x7f080035
- public const int abc_dialog_padding_material = 2131230773;
-
- // aapt resource value: 0x7f080036
- public const int abc_dialog_padding_top_material = 2131230774;
-
- // aapt resource value: 0x7f080037
- public const int abc_dialog_title_divider_material = 2131230775;
-
- // aapt resource value: 0x7f080038
- public const int abc_disabled_alpha_material_dark = 2131230776;
-
- // aapt resource value: 0x7f080039
- public const int abc_disabled_alpha_material_light = 2131230777;
-
- // aapt resource value: 0x7f08003a
- public const int abc_dropdownitem_icon_width = 2131230778;
-
- // aapt resource value: 0x7f08003b
- public const int abc_dropdownitem_text_padding_left = 2131230779;
-
- // aapt resource value: 0x7f08003c
- public const int abc_dropdownitem_text_padding_right = 2131230780;
-
- // aapt resource value: 0x7f08003d
- public const int abc_edit_text_inset_bottom_material = 2131230781;
-
- // aapt resource value: 0x7f08003e
- public const int abc_edit_text_inset_horizontal_material = 2131230782;
-
- // aapt resource value: 0x7f08003f
- public const int abc_edit_text_inset_top_material = 2131230783;
-
- // aapt resource value: 0x7f080040
- public const int abc_floating_window_z = 2131230784;
-
- // aapt resource value: 0x7f080041
- public const int abc_list_item_padding_horizontal_material = 2131230785;
-
- // aapt resource value: 0x7f080042
- public const int abc_panel_menu_list_width = 2131230786;
-
- // aapt resource value: 0x7f080043
- public const int abc_progress_bar_height_material = 2131230787;
-
- // aapt resource value: 0x7f080044
- public const int abc_search_view_preferred_height = 2131230788;
-
- // aapt resource value: 0x7f080045
- public const int abc_search_view_preferred_width = 2131230789;
-
- // aapt resource value: 0x7f080046
- public const int abc_seekbar_track_background_height_material = 2131230790;
-
- // aapt resource value: 0x7f080047
- public const int abc_seekbar_track_progress_height_material = 2131230791;
-
- // aapt resource value: 0x7f080048
- public const int abc_select_dialog_padding_start_material = 2131230792;
-
- // aapt resource value: 0x7f08001f
- public const int abc_switch_padding = 2131230751;
-
- // aapt resource value: 0x7f080049
- public const int abc_text_size_body_1_material = 2131230793;
-
- // aapt resource value: 0x7f08004a
- public const int abc_text_size_body_2_material = 2131230794;
-
- // aapt resource value: 0x7f08004b
- public const int abc_text_size_button_material = 2131230795;
-
- // aapt resource value: 0x7f08004c
- public const int abc_text_size_caption_material = 2131230796;
-
- // aapt resource value: 0x7f08004d
- public const int abc_text_size_display_1_material = 2131230797;
-
- // aapt resource value: 0x7f08004e
- public const int abc_text_size_display_2_material = 2131230798;
-
- // aapt resource value: 0x7f08004f
- public const int abc_text_size_display_3_material = 2131230799;
-
- // aapt resource value: 0x7f080050
- public const int abc_text_size_display_4_material = 2131230800;
-
- // aapt resource value: 0x7f080051
- public const int abc_text_size_headline_material = 2131230801;
-
- // aapt resource value: 0x7f080052
- public const int abc_text_size_large_material = 2131230802;
-
- // aapt resource value: 0x7f080053
- public const int abc_text_size_medium_material = 2131230803;
-
- // aapt resource value: 0x7f080054
- public const int abc_text_size_menu_header_material = 2131230804;
-
- // aapt resource value: 0x7f080055
- public const int abc_text_size_menu_material = 2131230805;
-
- // aapt resource value: 0x7f080056
- public const int abc_text_size_small_material = 2131230806;
-
- // aapt resource value: 0x7f080057
- public const int abc_text_size_subhead_material = 2131230807;
-
- // aapt resource value: 0x7f080012
- public const int abc_text_size_subtitle_material_toolbar = 2131230738;
-
- // aapt resource value: 0x7f080058
- public const int abc_text_size_title_material = 2131230808;
-
- // aapt resource value: 0x7f080013
- public const int abc_text_size_title_material_toolbar = 2131230739;
-
- // aapt resource value: 0x7f08000c
- public const int cardview_compat_inset_shadow = 2131230732;
-
- // aapt resource value: 0x7f08000d
- public const int cardview_default_elevation = 2131230733;
-
- // aapt resource value: 0x7f08000e
- public const int cardview_default_radius = 2131230734;
-
- // aapt resource value: 0x7f080094
- public const int compat_button_inset_horizontal_material = 2131230868;
-
- // aapt resource value: 0x7f080095
- public const int compat_button_inset_vertical_material = 2131230869;
-
- // aapt resource value: 0x7f080096
- public const int compat_button_padding_horizontal_material = 2131230870;
-
- // aapt resource value: 0x7f080097
- public const int compat_button_padding_vertical_material = 2131230871;
-
- // aapt resource value: 0x7f080098
- public const int compat_control_corner_material = 2131230872;
-
- // aapt resource value: 0x7f080072
- public const int design_appbar_elevation = 2131230834;
-
- // aapt resource value: 0x7f080073
- public const int design_bottom_navigation_active_item_max_width = 2131230835;
-
- // aapt resource value: 0x7f080074
- public const int design_bottom_navigation_active_text_size = 2131230836;
-
- // aapt resource value: 0x7f080075
- public const int design_bottom_navigation_elevation = 2131230837;
-
- // aapt resource value: 0x7f080076
- public const int design_bottom_navigation_height = 2131230838;
-
- // aapt resource value: 0x7f080077
- public const int design_bottom_navigation_item_max_width = 2131230839;
-
- // aapt resource value: 0x7f080078
- public const int design_bottom_navigation_item_min_width = 2131230840;
-
- // aapt resource value: 0x7f080079
- public const int design_bottom_navigation_margin = 2131230841;
-
- // aapt resource value: 0x7f08007a
- public const int design_bottom_navigation_shadow_height = 2131230842;
-
- // aapt resource value: 0x7f08007b
- public const int design_bottom_navigation_text_size = 2131230843;
-
- // aapt resource value: 0x7f08007c
- public const int design_bottom_sheet_modal_elevation = 2131230844;
-
- // aapt resource value: 0x7f08007d
- public const int design_bottom_sheet_peek_height_min = 2131230845;
-
- // aapt resource value: 0x7f08007e
- public const int design_fab_border_width = 2131230846;
-
- // aapt resource value: 0x7f08007f
- public const int design_fab_elevation = 2131230847;
-
- // aapt resource value: 0x7f080080
- public const int design_fab_image_size = 2131230848;
-
- // aapt resource value: 0x7f080081
- public const int design_fab_size_mini = 2131230849;
-
- // aapt resource value: 0x7f080082
- public const int design_fab_size_normal = 2131230850;
-
- // aapt resource value: 0x7f080083
- public const int design_fab_translation_z_pressed = 2131230851;
-
- // aapt resource value: 0x7f080084
- public const int design_navigation_elevation = 2131230852;
-
- // aapt resource value: 0x7f080085
- public const int design_navigation_icon_padding = 2131230853;
-
- // aapt resource value: 0x7f080086
- public const int design_navigation_icon_size = 2131230854;
-
- // aapt resource value: 0x7f08006a
- public const int design_navigation_max_width = 2131230826;
-
- // aapt resource value: 0x7f080087
- public const int design_navigation_padding_bottom = 2131230855;
-
- // aapt resource value: 0x7f080088
- public const int design_navigation_separator_vertical_padding = 2131230856;
-
- // aapt resource value: 0x7f08006b
- public const int design_snackbar_action_inline_max_width = 2131230827;
-
- // aapt resource value: 0x7f08006c
- public const int design_snackbar_background_corner_radius = 2131230828;
-
- // aapt resource value: 0x7f080089
- public const int design_snackbar_elevation = 2131230857;
-
- // aapt resource value: 0x7f08006d
- public const int design_snackbar_extra_spacing_horizontal = 2131230829;
-
- // aapt resource value: 0x7f08006e
- public const int design_snackbar_max_width = 2131230830;
-
- // aapt resource value: 0x7f08006f
- public const int design_snackbar_min_width = 2131230831;
-
- // aapt resource value: 0x7f08008a
- public const int design_snackbar_padding_horizontal = 2131230858;
-
- // aapt resource value: 0x7f08008b
- public const int design_snackbar_padding_vertical = 2131230859;
-
- // aapt resource value: 0x7f080070
- public const int design_snackbar_padding_vertical_2lines = 2131230832;
-
- // aapt resource value: 0x7f08008c
- public const int design_snackbar_text_size = 2131230860;
-
- // aapt resource value: 0x7f08008d
- public const int design_tab_max_width = 2131230861;
-
- // aapt resource value: 0x7f080071
- public const int design_tab_scrollable_min_width = 2131230833;
-
- // aapt resource value: 0x7f08008e
- public const int design_tab_text_size = 2131230862;
-
- // aapt resource value: 0x7f08008f
- public const int design_tab_text_size_2line = 2131230863;
-
- // aapt resource value: 0x7f080059
- public const int disabled_alpha_material_dark = 2131230809;
-
- // aapt resource value: 0x7f08005a
- public const int disabled_alpha_material_light = 2131230810;
-
- // aapt resource value: 0x7f080000
- public const int fastscroll_default_thickness = 2131230720;
-
- // aapt resource value: 0x7f080001
- public const int fastscroll_margin = 2131230721;
-
- // aapt resource value: 0x7f080002
- public const int fastscroll_minimum_range = 2131230722;
-
- // aapt resource value: 0x7f08005b
- public const int highlight_alpha_material_colored = 2131230811;
-
- // aapt resource value: 0x7f08005c
- public const int highlight_alpha_material_dark = 2131230812;
-
- // aapt resource value: 0x7f08005d
- public const int highlight_alpha_material_light = 2131230813;
-
- // aapt resource value: 0x7f08005e
- public const int hint_alpha_material_dark = 2131230814;
-
- // aapt resource value: 0x7f08005f
- public const int hint_alpha_material_light = 2131230815;
-
- // aapt resource value: 0x7f080060
- public const int hint_pressed_alpha_material_dark = 2131230816;
-
- // aapt resource value: 0x7f080061
- public const int hint_pressed_alpha_material_light = 2131230817;
-
- // aapt resource value: 0x7f080003
- public const int item_touch_helper_max_drag_scroll_per_frame = 2131230723;
-
- // aapt resource value: 0x7f080004
- public const int item_touch_helper_swipe_escape_max_velocity = 2131230724;
-
- // aapt resource value: 0x7f080005
- public const int item_touch_helper_swipe_escape_velocity = 2131230725;
-
- // aapt resource value: 0x7f080006
- public const int mr_controller_volume_group_list_item_height = 2131230726;
-
- // aapt resource value: 0x7f080007
- public const int mr_controller_volume_group_list_item_icon_size = 2131230727;
-
- // aapt resource value: 0x7f080008
- public const int mr_controller_volume_group_list_max_height = 2131230728;
-
- // aapt resource value: 0x7f08000b
- public const int mr_controller_volume_group_list_padding_top = 2131230731;
-
- // aapt resource value: 0x7f080009
- public const int mr_dialog_fixed_width_major = 2131230729;
-
- // aapt resource value: 0x7f08000a
- public const int mr_dialog_fixed_width_minor = 2131230730;
-
- // aapt resource value: 0x7f080099
- public const int notification_action_icon_size = 2131230873;
-
- // aapt resource value: 0x7f08009a
- public const int notification_action_text_size = 2131230874;
-
- // aapt resource value: 0x7f08009b
- public const int notification_big_circle_margin = 2131230875;
-
- // aapt resource value: 0x7f080091
- public const int notification_content_margin_start = 2131230865;
-
- // aapt resource value: 0x7f08009c
- public const int notification_large_icon_height = 2131230876;
-
- // aapt resource value: 0x7f08009d
- public const int notification_large_icon_width = 2131230877;
-
- // aapt resource value: 0x7f080092
- public const int notification_main_column_padding_top = 2131230866;
-
- // aapt resource value: 0x7f080093
- public const int notification_media_narrow_margin = 2131230867;
-
- // aapt resource value: 0x7f08009e
- public const int notification_right_icon_size = 2131230878;
-
- // aapt resource value: 0x7f080090
- public const int notification_right_side_padding_top = 2131230864;
-
- // aapt resource value: 0x7f08009f
- public const int notification_small_icon_background_padding = 2131230879;
-
- // aapt resource value: 0x7f0800a0
- public const int notification_small_icon_size_as_large = 2131230880;
-
- // aapt resource value: 0x7f0800a1
- public const int notification_subtext_size = 2131230881;
-
- // aapt resource value: 0x7f0800a2
- public const int notification_top_pad = 2131230882;
-
- // aapt resource value: 0x7f0800a3
- public const int notification_top_pad_large_text = 2131230883;
-
- // aapt resource value: 0x7f080062
- public const int tooltip_corner_radius = 2131230818;
-
- // aapt resource value: 0x7f080063
- public const int tooltip_horizontal_padding = 2131230819;
-
- // aapt resource value: 0x7f080064
- public const int tooltip_margin = 2131230820;
-
- // aapt resource value: 0x7f080065
- public const int tooltip_precise_anchor_extra_offset = 2131230821;
-
- // aapt resource value: 0x7f080066
- public const int tooltip_precise_anchor_threshold = 2131230822;
-
- // aapt resource value: 0x7f080067
- public const int tooltip_vertical_padding = 2131230823;
-
- // aapt resource value: 0x7f080068
- public const int tooltip_y_offset_non_touch = 2131230824;
-
- // aapt resource value: 0x7f080069
- public const int tooltip_y_offset_touch = 2131230825;
-
- static Dimension()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Dimension()
- {
- }
- }
-
- public partial class Drawable
- {
-
- // aapt resource value: 0x7f020000
- public const int abc_ab_share_pack_mtrl_alpha = 2130837504;
-
- // aapt resource value: 0x7f020001
- public const int abc_action_bar_item_background_material = 2130837505;
-
- // aapt resource value: 0x7f020002
- public const int abc_btn_borderless_material = 2130837506;
-
- // aapt resource value: 0x7f020003
- public const int abc_btn_check_material = 2130837507;
-
- // aapt resource value: 0x7f020004
- public const int abc_btn_check_to_on_mtrl_000 = 2130837508;
-
- // aapt resource value: 0x7f020005
- public const int abc_btn_check_to_on_mtrl_015 = 2130837509;
-
- // aapt resource value: 0x7f020006
- public const int abc_btn_colored_material = 2130837510;
-
- // aapt resource value: 0x7f020007
- public const int abc_btn_default_mtrl_shape = 2130837511;
-
- // aapt resource value: 0x7f020008
- public const int abc_btn_radio_material = 2130837512;
-
- // aapt resource value: 0x7f020009
- public const int abc_btn_radio_to_on_mtrl_000 = 2130837513;
-
- // aapt resource value: 0x7f02000a
- public const int abc_btn_radio_to_on_mtrl_015 = 2130837514;
-
- // aapt resource value: 0x7f02000b
- public const int abc_btn_switch_to_on_mtrl_00001 = 2130837515;
-
- // aapt resource value: 0x7f02000c
- public const int abc_btn_switch_to_on_mtrl_00012 = 2130837516;
-
- // aapt resource value: 0x7f02000d
- public const int abc_cab_background_internal_bg = 2130837517;
-
- // aapt resource value: 0x7f02000e
- public const int abc_cab_background_top_material = 2130837518;
-
- // aapt resource value: 0x7f02000f
- public const int abc_cab_background_top_mtrl_alpha = 2130837519;
-
- // aapt resource value: 0x7f020010
- public const int abc_control_background_material = 2130837520;
-
- // aapt resource value: 0x7f020011
- public const int abc_dialog_material_background = 2130837521;
-
- // aapt resource value: 0x7f020012
- public const int abc_edit_text_material = 2130837522;
-
- // aapt resource value: 0x7f020013
- public const int abc_ic_ab_back_material = 2130837523;
-
- // aapt resource value: 0x7f020014
- public const int abc_ic_arrow_drop_right_black_24dp = 2130837524;
-
- // aapt resource value: 0x7f020015
- public const int abc_ic_clear_material = 2130837525;
-
- // aapt resource value: 0x7f020016
- public const int abc_ic_commit_search_api_mtrl_alpha = 2130837526;
-
- // aapt resource value: 0x7f020017
- public const int abc_ic_go_search_api_material = 2130837527;
-
- // aapt resource value: 0x7f020018
- public const int abc_ic_menu_copy_mtrl_am_alpha = 2130837528;
-
- // aapt resource value: 0x7f020019
- public const int abc_ic_menu_cut_mtrl_alpha = 2130837529;
-
- // aapt resource value: 0x7f02001a
- public const int abc_ic_menu_overflow_material = 2130837530;
-
- // aapt resource value: 0x7f02001b
- public const int abc_ic_menu_paste_mtrl_am_alpha = 2130837531;
-
- // aapt resource value: 0x7f02001c
- public const int abc_ic_menu_selectall_mtrl_alpha = 2130837532;
-
- // aapt resource value: 0x7f02001d
- public const int abc_ic_menu_share_mtrl_alpha = 2130837533;
-
- // aapt resource value: 0x7f02001e
- public const int abc_ic_search_api_material = 2130837534;
-
- // aapt resource value: 0x7f02001f
- public const int abc_ic_star_black_16dp = 2130837535;
-
- // aapt resource value: 0x7f020020
- public const int abc_ic_star_black_36dp = 2130837536;
-
- // aapt resource value: 0x7f020021
- public const int abc_ic_star_black_48dp = 2130837537;
-
- // aapt resource value: 0x7f020022
- public const int abc_ic_star_half_black_16dp = 2130837538;
-
- // aapt resource value: 0x7f020023
- public const int abc_ic_star_half_black_36dp = 2130837539;
-
- // aapt resource value: 0x7f020024
- public const int abc_ic_star_half_black_48dp = 2130837540;
-
- // aapt resource value: 0x7f020025
- public const int abc_ic_voice_search_api_material = 2130837541;
-
- // aapt resource value: 0x7f020026
- public const int abc_item_background_holo_dark = 2130837542;
-
- // aapt resource value: 0x7f020027
- public const int abc_item_background_holo_light = 2130837543;
-
- // aapt resource value: 0x7f020028
- public const int abc_list_divider_mtrl_alpha = 2130837544;
-
- // aapt resource value: 0x7f020029
- public const int abc_list_focused_holo = 2130837545;
-
- // aapt resource value: 0x7f02002a
- public const int abc_list_longpressed_holo = 2130837546;
-
- // aapt resource value: 0x7f02002b
- public const int abc_list_pressed_holo_dark = 2130837547;
-
- // aapt resource value: 0x7f02002c
- public const int abc_list_pressed_holo_light = 2130837548;
-
- // aapt resource value: 0x7f02002d
- public const int abc_list_selector_background_transition_holo_dark = 2130837549;
-
- // aapt resource value: 0x7f02002e
- public const int abc_list_selector_background_transition_holo_light = 2130837550;
-
- // aapt resource value: 0x7f02002f
- public const int abc_list_selector_disabled_holo_dark = 2130837551;
-
- // aapt resource value: 0x7f020030
- public const int abc_list_selector_disabled_holo_light = 2130837552;
-
- // aapt resource value: 0x7f020031
- public const int abc_list_selector_holo_dark = 2130837553;
-
- // aapt resource value: 0x7f020032
- public const int abc_list_selector_holo_light = 2130837554;
-
- // aapt resource value: 0x7f020033
- public const int abc_menu_hardkey_panel_mtrl_mult = 2130837555;
-
- // aapt resource value: 0x7f020034
- public const int abc_popup_background_mtrl_mult = 2130837556;
-
- // aapt resource value: 0x7f020035
- public const int abc_ratingbar_indicator_material = 2130837557;
-
- // aapt resource value: 0x7f020036
- public const int abc_ratingbar_material = 2130837558;
-
- // aapt resource value: 0x7f020037
- public const int abc_ratingbar_small_material = 2130837559;
-
- // aapt resource value: 0x7f020038
- public const int abc_scrubber_control_off_mtrl_alpha = 2130837560;
-
- // aapt resource value: 0x7f020039
- public const int abc_scrubber_control_to_pressed_mtrl_000 = 2130837561;
-
- // aapt resource value: 0x7f02003a
- public const int abc_scrubber_control_to_pressed_mtrl_005 = 2130837562;
-
- // aapt resource value: 0x7f02003b
- public const int abc_scrubber_primary_mtrl_alpha = 2130837563;
-
- // aapt resource value: 0x7f02003c
- public const int abc_scrubber_track_mtrl_alpha = 2130837564;
-
- // aapt resource value: 0x7f02003d
- public const int abc_seekbar_thumb_material = 2130837565;
-
- // aapt resource value: 0x7f02003e
- public const int abc_seekbar_tick_mark_material = 2130837566;
-
- // aapt resource value: 0x7f02003f
- public const int abc_seekbar_track_material = 2130837567;
-
- // aapt resource value: 0x7f020040
- public const int abc_spinner_mtrl_am_alpha = 2130837568;
-
- // aapt resource value: 0x7f020041
- public const int abc_spinner_textfield_background_material = 2130837569;
-
- // aapt resource value: 0x7f020042
- public const int abc_switch_thumb_material = 2130837570;
-
- // aapt resource value: 0x7f020043
- public const int abc_switch_track_mtrl_alpha = 2130837571;
-
- // aapt resource value: 0x7f020044
- public const int abc_tab_indicator_material = 2130837572;
-
- // aapt resource value: 0x7f020045
- public const int abc_tab_indicator_mtrl_alpha = 2130837573;
-
- // aapt resource value: 0x7f020046
- public const int abc_text_cursor_material = 2130837574;
-
- // aapt resource value: 0x7f020047
- public const int abc_text_select_handle_left_mtrl_dark = 2130837575;
-
- // aapt resource value: 0x7f020048
- public const int abc_text_select_handle_left_mtrl_light = 2130837576;
-
- // aapt resource value: 0x7f020049
- public const int abc_text_select_handle_middle_mtrl_dark = 2130837577;
-
- // aapt resource value: 0x7f02004a
- public const int abc_text_select_handle_middle_mtrl_light = 2130837578;
-
- // aapt resource value: 0x7f02004b
- public const int abc_text_select_handle_right_mtrl_dark = 2130837579;
-
- // aapt resource value: 0x7f02004c
- public const int abc_text_select_handle_right_mtrl_light = 2130837580;
-
- // aapt resource value: 0x7f02004d
- public const int abc_textfield_activated_mtrl_alpha = 2130837581;
-
- // aapt resource value: 0x7f02004e
- public const int abc_textfield_default_mtrl_alpha = 2130837582;
-
- // aapt resource value: 0x7f02004f
- public const int abc_textfield_search_activated_mtrl_alpha = 2130837583;
-
- // aapt resource value: 0x7f020050
- public const int abc_textfield_search_default_mtrl_alpha = 2130837584;
-
- // aapt resource value: 0x7f020051
- public const int abc_textfield_search_material = 2130837585;
-
- // aapt resource value: 0x7f020052
- public const int abc_vector_test = 2130837586;
-
- // aapt resource value: 0x7f020053
- public const int avd_hide_password = 2130837587;
-
- // aapt resource value: 0x7f02012f
- public const int avd_hide_password_1 = 2130837807;
-
- // aapt resource value: 0x7f020130
- public const int avd_hide_password_2 = 2130837808;
-
- // aapt resource value: 0x7f020131
- public const int avd_hide_password_3 = 2130837809;
-
- // aapt resource value: 0x7f020054
- public const int avd_show_password = 2130837588;
-
- // aapt resource value: 0x7f020132
- public const int avd_show_password_1 = 2130837810;
-
- // aapt resource value: 0x7f020133
- public const int avd_show_password_2 = 2130837811;
-
- // aapt resource value: 0x7f020134
- public const int avd_show_password_3 = 2130837812;
-
- // aapt resource value: 0x7f020055
- public const int design_bottom_navigation_item_background = 2130837589;
-
- // aapt resource value: 0x7f020056
- public const int design_fab_background = 2130837590;
-
- // aapt resource value: 0x7f020057
- public const int design_ic_visibility = 2130837591;
-
- // aapt resource value: 0x7f020058
- public const int design_ic_visibility_off = 2130837592;
-
- // aapt resource value: 0x7f020059
- public const int design_password_eye = 2130837593;
-
- // aapt resource value: 0x7f02005a
- public const int design_snackbar_background = 2130837594;
-
- // aapt resource value: 0x7f02005b
- public const int ic_audiotrack_dark = 2130837595;
-
- // aapt resource value: 0x7f02005c
- public const int ic_audiotrack_light = 2130837596;
-
- // aapt resource value: 0x7f02005d
- public const int ic_dialog_close_dark = 2130837597;
-
- // aapt resource value: 0x7f02005e
- public const int ic_dialog_close_light = 2130837598;
-
- // aapt resource value: 0x7f02005f
- public const int ic_group_collapse_00 = 2130837599;
-
- // aapt resource value: 0x7f020060
- public const int ic_group_collapse_01 = 2130837600;
-
- // aapt resource value: 0x7f020061
- public const int ic_group_collapse_02 = 2130837601;
-
- // aapt resource value: 0x7f020062
- public const int ic_group_collapse_03 = 2130837602;
-
- // aapt resource value: 0x7f020063
- public const int ic_group_collapse_04 = 2130837603;
-
- // aapt resource value: 0x7f020064
- public const int ic_group_collapse_05 = 2130837604;
-
- // aapt resource value: 0x7f020065
- public const int ic_group_collapse_06 = 2130837605;
-
- // aapt resource value: 0x7f020066
- public const int ic_group_collapse_07 = 2130837606;
-
- // aapt resource value: 0x7f020067
- public const int ic_group_collapse_08 = 2130837607;
-
- // aapt resource value: 0x7f020068
- public const int ic_group_collapse_09 = 2130837608;
-
- // aapt resource value: 0x7f020069
- public const int ic_group_collapse_10 = 2130837609;
-
- // aapt resource value: 0x7f02006a
- public const int ic_group_collapse_11 = 2130837610;
-
- // aapt resource value: 0x7f02006b
- public const int ic_group_collapse_12 = 2130837611;
-
- // aapt resource value: 0x7f02006c
- public const int ic_group_collapse_13 = 2130837612;
-
- // aapt resource value: 0x7f02006d
- public const int ic_group_collapse_14 = 2130837613;
-
- // aapt resource value: 0x7f02006e
- public const int ic_group_collapse_15 = 2130837614;
-
- // aapt resource value: 0x7f02006f
- public const int ic_group_expand_00 = 2130837615;
-
- // aapt resource value: 0x7f020070
- public const int ic_group_expand_01 = 2130837616;
-
- // aapt resource value: 0x7f020071
- public const int ic_group_expand_02 = 2130837617;
-
- // aapt resource value: 0x7f020072
- public const int ic_group_expand_03 = 2130837618;
-
- // aapt resource value: 0x7f020073
- public const int ic_group_expand_04 = 2130837619;
-
- // aapt resource value: 0x7f020074
- public const int ic_group_expand_05 = 2130837620;
-
- // aapt resource value: 0x7f020075
- public const int ic_group_expand_06 = 2130837621;
-
- // aapt resource value: 0x7f020076
- public const int ic_group_expand_07 = 2130837622;
-
- // aapt resource value: 0x7f020077
- public const int ic_group_expand_08 = 2130837623;
-
- // aapt resource value: 0x7f020078
- public const int ic_group_expand_09 = 2130837624;
-
- // aapt resource value: 0x7f020079
- public const int ic_group_expand_10 = 2130837625;
-
- // aapt resource value: 0x7f02007a
- public const int ic_group_expand_11 = 2130837626;
-
- // aapt resource value: 0x7f02007b
- public const int ic_group_expand_12 = 2130837627;
-
- // aapt resource value: 0x7f02007c
- public const int ic_group_expand_13 = 2130837628;
-
- // aapt resource value: 0x7f02007d
- public const int ic_group_expand_14 = 2130837629;
-
- // aapt resource value: 0x7f02007e
- public const int ic_group_expand_15 = 2130837630;
-
- // aapt resource value: 0x7f02007f
- public const int ic_media_pause_dark = 2130837631;
-
- // aapt resource value: 0x7f020080
- public const int ic_media_pause_light = 2130837632;
-
- // aapt resource value: 0x7f020081
- public const int ic_media_play_dark = 2130837633;
-
- // aapt resource value: 0x7f020082
- public const int ic_media_play_light = 2130837634;
-
- // aapt resource value: 0x7f020083
- public const int ic_media_stop_dark = 2130837635;
-
- // aapt resource value: 0x7f020084
- public const int ic_media_stop_light = 2130837636;
-
- // aapt resource value: 0x7f020085
- public const int ic_mr_button_connected_00_dark = 2130837637;
-
- // aapt resource value: 0x7f020086
- public const int ic_mr_button_connected_00_light = 2130837638;
-
- // aapt resource value: 0x7f020087
- public const int ic_mr_button_connected_01_dark = 2130837639;
-
- // aapt resource value: 0x7f020088
- public const int ic_mr_button_connected_01_light = 2130837640;
-
- // aapt resource value: 0x7f020089
- public const int ic_mr_button_connected_02_dark = 2130837641;
-
- // aapt resource value: 0x7f02008a
- public const int ic_mr_button_connected_02_light = 2130837642;
-
- // aapt resource value: 0x7f02008b
- public const int ic_mr_button_connected_03_dark = 2130837643;
-
- // aapt resource value: 0x7f02008c
- public const int ic_mr_button_connected_03_light = 2130837644;
-
- // aapt resource value: 0x7f02008d
- public const int ic_mr_button_connected_04_dark = 2130837645;
-
- // aapt resource value: 0x7f02008e
- public const int ic_mr_button_connected_04_light = 2130837646;
-
- // aapt resource value: 0x7f02008f
- public const int ic_mr_button_connected_05_dark = 2130837647;
-
- // aapt resource value: 0x7f020090
- public const int ic_mr_button_connected_05_light = 2130837648;
-
- // aapt resource value: 0x7f020091
- public const int ic_mr_button_connected_06_dark = 2130837649;
-
- // aapt resource value: 0x7f020092
- public const int ic_mr_button_connected_06_light = 2130837650;
-
- // aapt resource value: 0x7f020093
- public const int ic_mr_button_connected_07_dark = 2130837651;
-
- // aapt resource value: 0x7f020094
- public const int ic_mr_button_connected_07_light = 2130837652;
-
- // aapt resource value: 0x7f020095
- public const int ic_mr_button_connected_08_dark = 2130837653;
-
- // aapt resource value: 0x7f020096
- public const int ic_mr_button_connected_08_light = 2130837654;
-
- // aapt resource value: 0x7f020097
- public const int ic_mr_button_connected_09_dark = 2130837655;
-
- // aapt resource value: 0x7f020098
- public const int ic_mr_button_connected_09_light = 2130837656;
-
- // aapt resource value: 0x7f020099
- public const int ic_mr_button_connected_10_dark = 2130837657;
-
- // aapt resource value: 0x7f02009a
- public const int ic_mr_button_connected_10_light = 2130837658;
-
- // aapt resource value: 0x7f02009b
- public const int ic_mr_button_connected_11_dark = 2130837659;
-
- // aapt resource value: 0x7f02009c
- public const int ic_mr_button_connected_11_light = 2130837660;
-
- // aapt resource value: 0x7f02009d
- public const int ic_mr_button_connected_12_dark = 2130837661;
-
- // aapt resource value: 0x7f02009e
- public const int ic_mr_button_connected_12_light = 2130837662;
-
- // aapt resource value: 0x7f02009f
- public const int ic_mr_button_connected_13_dark = 2130837663;
-
- // aapt resource value: 0x7f0200a0
- public const int ic_mr_button_connected_13_light = 2130837664;
-
- // aapt resource value: 0x7f0200a1
- public const int ic_mr_button_connected_14_dark = 2130837665;
-
- // aapt resource value: 0x7f0200a2
- public const int ic_mr_button_connected_14_light = 2130837666;
-
- // aapt resource value: 0x7f0200a3
- public const int ic_mr_button_connected_15_dark = 2130837667;
-
- // aapt resource value: 0x7f0200a4
- public const int ic_mr_button_connected_15_light = 2130837668;
-
- // aapt resource value: 0x7f0200a5
- public const int ic_mr_button_connected_16_dark = 2130837669;
-
- // aapt resource value: 0x7f0200a6
- public const int ic_mr_button_connected_16_light = 2130837670;
-
- // aapt resource value: 0x7f0200a7
- public const int ic_mr_button_connected_17_dark = 2130837671;
-
- // aapt resource value: 0x7f0200a8
- public const int ic_mr_button_connected_17_light = 2130837672;
-
- // aapt resource value: 0x7f0200a9
- public const int ic_mr_button_connected_18_dark = 2130837673;
-
- // aapt resource value: 0x7f0200aa
- public const int ic_mr_button_connected_18_light = 2130837674;
-
- // aapt resource value: 0x7f0200ab
- public const int ic_mr_button_connected_19_dark = 2130837675;
-
- // aapt resource value: 0x7f0200ac
- public const int ic_mr_button_connected_19_light = 2130837676;
-
- // aapt resource value: 0x7f0200ad
- public const int ic_mr_button_connected_20_dark = 2130837677;
-
- // aapt resource value: 0x7f0200ae
- public const int ic_mr_button_connected_20_light = 2130837678;
-
- // aapt resource value: 0x7f0200af
- public const int ic_mr_button_connected_21_dark = 2130837679;
-
- // aapt resource value: 0x7f0200b0
- public const int ic_mr_button_connected_21_light = 2130837680;
-
- // aapt resource value: 0x7f0200b1
- public const int ic_mr_button_connected_22_dark = 2130837681;
-
- // aapt resource value: 0x7f0200b2
- public const int ic_mr_button_connected_22_light = 2130837682;
-
- // aapt resource value: 0x7f0200b3
- public const int ic_mr_button_connected_23_dark = 2130837683;
-
- // aapt resource value: 0x7f0200b4
- public const int ic_mr_button_connected_23_light = 2130837684;
-
- // aapt resource value: 0x7f0200b5
- public const int ic_mr_button_connected_24_dark = 2130837685;
-
- // aapt resource value: 0x7f0200b6
- public const int ic_mr_button_connected_24_light = 2130837686;
-
- // aapt resource value: 0x7f0200b7
- public const int ic_mr_button_connected_25_dark = 2130837687;
-
- // aapt resource value: 0x7f0200b8
- public const int ic_mr_button_connected_25_light = 2130837688;
-
- // aapt resource value: 0x7f0200b9
- public const int ic_mr_button_connected_26_dark = 2130837689;
-
- // aapt resource value: 0x7f0200ba
- public const int ic_mr_button_connected_26_light = 2130837690;
-
- // aapt resource value: 0x7f0200bb
- public const int ic_mr_button_connected_27_dark = 2130837691;
-
- // aapt resource value: 0x7f0200bc
- public const int ic_mr_button_connected_27_light = 2130837692;
-
- // aapt resource value: 0x7f0200bd
- public const int ic_mr_button_connected_28_dark = 2130837693;
-
- // aapt resource value: 0x7f0200be
- public const int ic_mr_button_connected_28_light = 2130837694;
-
- // aapt resource value: 0x7f0200bf
- public const int ic_mr_button_connected_29_dark = 2130837695;
-
- // aapt resource value: 0x7f0200c0
- public const int ic_mr_button_connected_29_light = 2130837696;
-
- // aapt resource value: 0x7f0200c1
- public const int ic_mr_button_connected_30_dark = 2130837697;
-
- // aapt resource value: 0x7f0200c2
- public const int ic_mr_button_connected_30_light = 2130837698;
-
- // aapt resource value: 0x7f0200c3
- public const int ic_mr_button_connecting_00_dark = 2130837699;
-
- // aapt resource value: 0x7f0200c4
- public const int ic_mr_button_connecting_00_light = 2130837700;
-
- // aapt resource value: 0x7f0200c5
- public const int ic_mr_button_connecting_01_dark = 2130837701;
-
- // aapt resource value: 0x7f0200c6
- public const int ic_mr_button_connecting_01_light = 2130837702;
-
- // aapt resource value: 0x7f0200c7
- public const int ic_mr_button_connecting_02_dark = 2130837703;
-
- // aapt resource value: 0x7f0200c8
- public const int ic_mr_button_connecting_02_light = 2130837704;
-
- // aapt resource value: 0x7f0200c9
- public const int ic_mr_button_connecting_03_dark = 2130837705;
-
- // aapt resource value: 0x7f0200ca
- public const int ic_mr_button_connecting_03_light = 2130837706;
-
- // aapt resource value: 0x7f0200cb
- public const int ic_mr_button_connecting_04_dark = 2130837707;
-
- // aapt resource value: 0x7f0200cc
- public const int ic_mr_button_connecting_04_light = 2130837708;
-
- // aapt resource value: 0x7f0200cd
- public const int ic_mr_button_connecting_05_dark = 2130837709;
-
- // aapt resource value: 0x7f0200ce
- public const int ic_mr_button_connecting_05_light = 2130837710;
-
- // aapt resource value: 0x7f0200cf
- public const int ic_mr_button_connecting_06_dark = 2130837711;
-
- // aapt resource value: 0x7f0200d0
- public const int ic_mr_button_connecting_06_light = 2130837712;
-
- // aapt resource value: 0x7f0200d1
- public const int ic_mr_button_connecting_07_dark = 2130837713;
-
- // aapt resource value: 0x7f0200d2
- public const int ic_mr_button_connecting_07_light = 2130837714;
-
- // aapt resource value: 0x7f0200d3
- public const int ic_mr_button_connecting_08_dark = 2130837715;
-
- // aapt resource value: 0x7f0200d4
- public const int ic_mr_button_connecting_08_light = 2130837716;
-
- // aapt resource value: 0x7f0200d5
- public const int ic_mr_button_connecting_09_dark = 2130837717;
-
- // aapt resource value: 0x7f0200d6
- public const int ic_mr_button_connecting_09_light = 2130837718;
-
- // aapt resource value: 0x7f0200d7
- public const int ic_mr_button_connecting_10_dark = 2130837719;
-
- // aapt resource value: 0x7f0200d8
- public const int ic_mr_button_connecting_10_light = 2130837720;
-
- // aapt resource value: 0x7f0200d9
- public const int ic_mr_button_connecting_11_dark = 2130837721;
-
- // aapt resource value: 0x7f0200da
- public const int ic_mr_button_connecting_11_light = 2130837722;
-
- // aapt resource value: 0x7f0200db
- public const int ic_mr_button_connecting_12_dark = 2130837723;
-
- // aapt resource value: 0x7f0200dc
- public const int ic_mr_button_connecting_12_light = 2130837724;
-
- // aapt resource value: 0x7f0200dd
- public const int ic_mr_button_connecting_13_dark = 2130837725;
-
- // aapt resource value: 0x7f0200de
- public const int ic_mr_button_connecting_13_light = 2130837726;
-
- // aapt resource value: 0x7f0200df
- public const int ic_mr_button_connecting_14_dark = 2130837727;
-
- // aapt resource value: 0x7f0200e0
- public const int ic_mr_button_connecting_14_light = 2130837728;
-
- // aapt resource value: 0x7f0200e1
- public const int ic_mr_button_connecting_15_dark = 2130837729;
-
- // aapt resource value: 0x7f0200e2
- public const int ic_mr_button_connecting_15_light = 2130837730;
-
- // aapt resource value: 0x7f0200e3
- public const int ic_mr_button_connecting_16_dark = 2130837731;
-
- // aapt resource value: 0x7f0200e4
- public const int ic_mr_button_connecting_16_light = 2130837732;
-
- // aapt resource value: 0x7f0200e5
- public const int ic_mr_button_connecting_17_dark = 2130837733;
-
- // aapt resource value: 0x7f0200e6
- public const int ic_mr_button_connecting_17_light = 2130837734;
-
- // aapt resource value: 0x7f0200e7
- public const int ic_mr_button_connecting_18_dark = 2130837735;
-
- // aapt resource value: 0x7f0200e8
- public const int ic_mr_button_connecting_18_light = 2130837736;
-
- // aapt resource value: 0x7f0200e9
- public const int ic_mr_button_connecting_19_dark = 2130837737;
-
- // aapt resource value: 0x7f0200ea
- public const int ic_mr_button_connecting_19_light = 2130837738;
-
- // aapt resource value: 0x7f0200eb
- public const int ic_mr_button_connecting_20_dark = 2130837739;
-
- // aapt resource value: 0x7f0200ec
- public const int ic_mr_button_connecting_20_light = 2130837740;
-
- // aapt resource value: 0x7f0200ed
- public const int ic_mr_button_connecting_21_dark = 2130837741;
-
- // aapt resource value: 0x7f0200ee
- public const int ic_mr_button_connecting_21_light = 2130837742;
-
- // aapt resource value: 0x7f0200ef
- public const int ic_mr_button_connecting_22_dark = 2130837743;
-
- // aapt resource value: 0x7f0200f0
- public const int ic_mr_button_connecting_22_light = 2130837744;
-
- // aapt resource value: 0x7f0200f1
- public const int ic_mr_button_connecting_23_dark = 2130837745;
-
- // aapt resource value: 0x7f0200f2
- public const int ic_mr_button_connecting_23_light = 2130837746;
-
- // aapt resource value: 0x7f0200f3
- public const int ic_mr_button_connecting_24_dark = 2130837747;
-
- // aapt resource value: 0x7f0200f4
- public const int ic_mr_button_connecting_24_light = 2130837748;
-
- // aapt resource value: 0x7f0200f5
- public const int ic_mr_button_connecting_25_dark = 2130837749;
-
- // aapt resource value: 0x7f0200f6
- public const int ic_mr_button_connecting_25_light = 2130837750;
-
- // aapt resource value: 0x7f0200f7
- public const int ic_mr_button_connecting_26_dark = 2130837751;
-
- // aapt resource value: 0x7f0200f8
- public const int ic_mr_button_connecting_26_light = 2130837752;
-
- // aapt resource value: 0x7f0200f9
- public const int ic_mr_button_connecting_27_dark = 2130837753;
-
- // aapt resource value: 0x7f0200fa
- public const int ic_mr_button_connecting_27_light = 2130837754;
-
- // aapt resource value: 0x7f0200fb
- public const int ic_mr_button_connecting_28_dark = 2130837755;
-
- // aapt resource value: 0x7f0200fc
- public const int ic_mr_button_connecting_28_light = 2130837756;
-
- // aapt resource value: 0x7f0200fd
- public const int ic_mr_button_connecting_29_dark = 2130837757;
-
- // aapt resource value: 0x7f0200fe
- public const int ic_mr_button_connecting_29_light = 2130837758;
-
- // aapt resource value: 0x7f0200ff
- public const int ic_mr_button_connecting_30_dark = 2130837759;
-
- // aapt resource value: 0x7f020100
- public const int ic_mr_button_connecting_30_light = 2130837760;
-
- // aapt resource value: 0x7f020101
- public const int ic_mr_button_disabled_dark = 2130837761;
-
- // aapt resource value: 0x7f020102
- public const int ic_mr_button_disabled_light = 2130837762;
-
- // aapt resource value: 0x7f020103
- public const int ic_mr_button_disconnected_dark = 2130837763;
-
- // aapt resource value: 0x7f020104
- public const int ic_mr_button_disconnected_light = 2130837764;
-
- // aapt resource value: 0x7f020105
- public const int ic_mr_button_grey = 2130837765;
-
- // aapt resource value: 0x7f020106
- public const int ic_vol_type_speaker_dark = 2130837766;
-
- // aapt resource value: 0x7f020107
- public const int ic_vol_type_speaker_group_dark = 2130837767;
-
- // aapt resource value: 0x7f020108
- public const int ic_vol_type_speaker_group_light = 2130837768;
-
- // aapt resource value: 0x7f020109
- public const int ic_vol_type_speaker_light = 2130837769;
-
- // aapt resource value: 0x7f02010a
- public const int ic_vol_type_tv_dark = 2130837770;
-
- // aapt resource value: 0x7f02010b
- public const int ic_vol_type_tv_light = 2130837771;
-
- // aapt resource value: 0x7f02010c
- public const int mr_button_connected_dark = 2130837772;
-
- // aapt resource value: 0x7f02010d
- public const int mr_button_connected_light = 2130837773;
-
- // aapt resource value: 0x7f02010e
- public const int mr_button_connecting_dark = 2130837774;
-
- // aapt resource value: 0x7f02010f
- public const int mr_button_connecting_light = 2130837775;
-
- // aapt resource value: 0x7f020110
- public const int mr_button_dark = 2130837776;
-
- // aapt resource value: 0x7f020111
- public const int mr_button_light = 2130837777;
-
- // aapt resource value: 0x7f020112
- public const int mr_dialog_close_dark = 2130837778;
-
- // aapt resource value: 0x7f020113
- public const int mr_dialog_close_light = 2130837779;
-
- // aapt resource value: 0x7f020114
- public const int mr_dialog_material_background_dark = 2130837780;
-
- // aapt resource value: 0x7f020115
- public const int mr_dialog_material_background_light = 2130837781;
-
- // aapt resource value: 0x7f020116
- public const int mr_group_collapse = 2130837782;
-
- // aapt resource value: 0x7f020117
- public const int mr_group_expand = 2130837783;
-
- // aapt resource value: 0x7f020118
- public const int mr_media_pause_dark = 2130837784;
-
- // aapt resource value: 0x7f020119
- public const int mr_media_pause_light = 2130837785;
-
- // aapt resource value: 0x7f02011a
- public const int mr_media_play_dark = 2130837786;
-
- // aapt resource value: 0x7f02011b
- public const int mr_media_play_light = 2130837787;
-
- // aapt resource value: 0x7f02011c
- public const int mr_media_stop_dark = 2130837788;
-
- // aapt resource value: 0x7f02011d
- public const int mr_media_stop_light = 2130837789;
-
- // aapt resource value: 0x7f02011e
- public const int mr_vol_type_audiotrack_dark = 2130837790;
-
- // aapt resource value: 0x7f02011f
- public const int mr_vol_type_audiotrack_light = 2130837791;
-
- // aapt resource value: 0x7f020120
- public const int navigation_empty_icon = 2130837792;
-
- // aapt resource value: 0x7f020121
- public const int notification_action_background = 2130837793;
-
- // aapt resource value: 0x7f020122
- public const int notification_bg = 2130837794;
-
- // aapt resource value: 0x7f020123
- public const int notification_bg_low = 2130837795;
-
- // aapt resource value: 0x7f020124
- public const int notification_bg_low_normal = 2130837796;
-
- // aapt resource value: 0x7f020125
- public const int notification_bg_low_pressed = 2130837797;
-
- // aapt resource value: 0x7f020126
- public const int notification_bg_normal = 2130837798;
-
- // aapt resource value: 0x7f020127
- public const int notification_bg_normal_pressed = 2130837799;
-
- // aapt resource value: 0x7f020128
- public const int notification_icon_background = 2130837800;
-
- // aapt resource value: 0x7f02012d
- public const int notification_template_icon_bg = 2130837805;
-
- // aapt resource value: 0x7f02012e
- public const int notification_template_icon_low_bg = 2130837806;
-
- // aapt resource value: 0x7f020129
- public const int notification_tile_bg = 2130837801;
-
- // aapt resource value: 0x7f02012a
- public const int notify_panel_notification_icon_bg = 2130837802;
-
- // aapt resource value: 0x7f02012b
- public const int tooltip_frame_dark = 2130837803;
-
- // aapt resource value: 0x7f02012c
- public const int tooltip_frame_light = 2130837804;
-
- static Drawable()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Drawable()
- {
- }
- }
-
- public partial class Id
- {
-
- // aapt resource value: 0x7f090032
- public const int ALT = 2131296306;
-
- // aapt resource value: 0x7f090033
- public const int CTRL = 2131296307;
-
- // aapt resource value: 0x7f090034
- public const int FUNCTION = 2131296308;
-
- // aapt resource value: 0x7f090035
- public const int META = 2131296309;
-
- // aapt resource value: 0x7f090036
- public const int SHIFT = 2131296310;
-
- // aapt resource value: 0x7f090037
- public const int SYM = 2131296311;
-
- // aapt resource value: 0x7f0900b6
- public const int action0 = 2131296438;
-
- // aapt resource value: 0x7f09007c
- public const int action_bar = 2131296380;
-
- // aapt resource value: 0x7f090001
- public const int action_bar_activity_content = 2131296257;
-
- // aapt resource value: 0x7f09007b
- public const int action_bar_container = 2131296379;
-
- // aapt resource value: 0x7f090077
- public const int action_bar_root = 2131296375;
-
- // aapt resource value: 0x7f090002
- public const int action_bar_spinner = 2131296258;
-
- // aapt resource value: 0x7f09005b
- public const int action_bar_subtitle = 2131296347;
-
- // aapt resource value: 0x7f09005a
- public const int action_bar_title = 2131296346;
-
- // aapt resource value: 0x7f0900b3
- public const int action_container = 2131296435;
-
- // aapt resource value: 0x7f09007d
- public const int action_context_bar = 2131296381;
-
- // aapt resource value: 0x7f0900ba
- public const int action_divider = 2131296442;
-
- // aapt resource value: 0x7f0900b4
- public const int action_image = 2131296436;
-
- // aapt resource value: 0x7f090003
- public const int action_menu_divider = 2131296259;
-
- // aapt resource value: 0x7f090004
- public const int action_menu_presenter = 2131296260;
-
- // aapt resource value: 0x7f090079
- public const int action_mode_bar = 2131296377;
-
- // aapt resource value: 0x7f090078
- public const int action_mode_bar_stub = 2131296376;
-
- // aapt resource value: 0x7f09005c
- public const int action_mode_close_button = 2131296348;
-
- // aapt resource value: 0x7f0900b5
- public const int action_text = 2131296437;
-
- // aapt resource value: 0x7f0900c3
- public const int actions = 2131296451;
-
- // aapt resource value: 0x7f09005d
- public const int activity_chooser_view_content = 2131296349;
-
- // aapt resource value: 0x7f090027
- public const int add = 2131296295;
-
- // aapt resource value: 0x7f090070
- public const int alertTitle = 2131296368;
-
- // aapt resource value: 0x7f090052
- public const int all = 2131296338;
-
- // aapt resource value: 0x7f090038
- public const int always = 2131296312;
-
- // aapt resource value: 0x7f090056
- public const int async = 2131296342;
-
- // aapt resource value: 0x7f090044
- public const int auto = 2131296324;
-
- // aapt resource value: 0x7f09002f
- public const int beginning = 2131296303;
-
- // aapt resource value: 0x7f090057
- public const int blocking = 2131296343;
-
- // aapt resource value: 0x7f09003d
- public const int bottom = 2131296317;
-
- // aapt resource value: 0x7f090063
- public const int buttonPanel = 2131296355;
-
- // aapt resource value: 0x7f0900b7
- public const int cancel_action = 2131296439;
-
- // aapt resource value: 0x7f090045
- public const int center = 2131296325;
-
- // aapt resource value: 0x7f090046
- public const int center_horizontal = 2131296326;
-
- // aapt resource value: 0x7f090047
- public const int center_vertical = 2131296327;
-
- // aapt resource value: 0x7f090073
- public const int checkbox = 2131296371;
-
- // aapt resource value: 0x7f0900bf
- public const int chronometer = 2131296447;
-
- // aapt resource value: 0x7f09004e
- public const int clip_horizontal = 2131296334;
-
- // aapt resource value: 0x7f09004f
- public const int clip_vertical = 2131296335;
-
- // aapt resource value: 0x7f090039
- public const int collapseActionView = 2131296313;
-
- // aapt resource value: 0x7f09008d
- public const int container = 2131296397;
-
- // aapt resource value: 0x7f090066
- public const int contentPanel = 2131296358;
-
- // aapt resource value: 0x7f09008e
- public const int coordinator = 2131296398;
-
- // aapt resource value: 0x7f09006d
- public const int custom = 2131296365;
-
- // aapt resource value: 0x7f09006c
- public const int customPanel = 2131296364;
-
- // aapt resource value: 0x7f09007a
- public const int decor_content_parent = 2131296378;
-
- // aapt resource value: 0x7f090060
- public const int default_activity_button = 2131296352;
-
- // aapt resource value: 0x7f090090
- public const int design_bottom_sheet = 2131296400;
-
- // aapt resource value: 0x7f090097
- public const int design_menu_item_action_area = 2131296407;
-
- // aapt resource value: 0x7f090096
- public const int design_menu_item_action_area_stub = 2131296406;
-
- // aapt resource value: 0x7f090095
- public const int design_menu_item_text = 2131296405;
-
- // aapt resource value: 0x7f090094
- public const int design_navigation_view = 2131296404;
-
- // aapt resource value: 0x7f090020
- public const int disableHome = 2131296288;
-
- // aapt resource value: 0x7f09007e
- public const int edit_query = 2131296382;
-
- // aapt resource value: 0x7f090030
- public const int end = 2131296304;
-
- // aapt resource value: 0x7f0900c5
- public const int end_padder = 2131296453;
-
- // aapt resource value: 0x7f09003f
- public const int enterAlways = 2131296319;
-
- // aapt resource value: 0x7f090040
- public const int enterAlwaysCollapsed = 2131296320;
-
- // aapt resource value: 0x7f090041
- public const int exitUntilCollapsed = 2131296321;
-
- // aapt resource value: 0x7f09005e
- public const int expand_activities_button = 2131296350;
-
- // aapt resource value: 0x7f090072
- public const int expanded_menu = 2131296370;
-
- // aapt resource value: 0x7f090050
- public const int fill = 2131296336;
-
- // aapt resource value: 0x7f090051
- public const int fill_horizontal = 2131296337;
-
- // aapt resource value: 0x7f090048
- public const int fill_vertical = 2131296328;
-
- // aapt resource value: 0x7f090054
- public const int @fixed = 2131296340;
-
- // aapt resource value: 0x7f090058
- public const int forever = 2131296344;
-
- // aapt resource value: 0x7f09000a
- public const int ghost_view = 2131296266;
-
- // aapt resource value: 0x7f090005
- public const int home = 2131296261;
-
- // aapt resource value: 0x7f090021
- public const int homeAsUp = 2131296289;
-
- // aapt resource value: 0x7f090062
- public const int icon = 2131296354;
-
- // aapt resource value: 0x7f0900c4
- public const int icon_group = 2131296452;
-
- // aapt resource value: 0x7f09003a
- public const int ifRoom = 2131296314;
-
- // aapt resource value: 0x7f09005f
- public const int image = 2131296351;
-
- // aapt resource value: 0x7f0900c0
- public const int info = 2131296448;
-
- // aapt resource value: 0x7f090059
- public const int italic = 2131296345;
-
- // aapt resource value: 0x7f090000
- public const int item_touch_helper_previous_elevation = 2131296256;
-
- // aapt resource value: 0x7f09008c
- public const int largeLabel = 2131296396;
-
- // aapt resource value: 0x7f090049
- public const int left = 2131296329;
-
- // aapt resource value: 0x7f090017
- public const int line1 = 2131296279;
-
- // aapt resource value: 0x7f090018
- public const int line3 = 2131296280;
-
- // aapt resource value: 0x7f09001d
- public const int listMode = 2131296285;
-
- // aapt resource value: 0x7f090061
- public const int list_item = 2131296353;
-
- // aapt resource value: 0x7f0900ca
- public const int masked = 2131296458;
-
- // aapt resource value: 0x7f0900b9
- public const int media_actions = 2131296441;
-
- // aapt resource value: 0x7f0900c8
- public const int message = 2131296456;
-
- // aapt resource value: 0x7f090031
- public const int middle = 2131296305;
-
- // aapt resource value: 0x7f090053
- public const int mini = 2131296339;
-
- // aapt resource value: 0x7f0900a5
- public const int mr_art = 2131296421;
-
- // aapt resource value: 0x7f09009a
- public const int mr_chooser_list = 2131296410;
-
- // aapt resource value: 0x7f09009d
- public const int mr_chooser_route_desc = 2131296413;
-
- // aapt resource value: 0x7f09009b
- public const int mr_chooser_route_icon = 2131296411;
-
- // aapt resource value: 0x7f09009c
- public const int mr_chooser_route_name = 2131296412;
-
- // aapt resource value: 0x7f090099
- public const int mr_chooser_title = 2131296409;
-
- // aapt resource value: 0x7f0900a2
- public const int mr_close = 2131296418;
-
- // aapt resource value: 0x7f0900a8
- public const int mr_control_divider = 2131296424;
-
- // aapt resource value: 0x7f0900ae
- public const int mr_control_playback_ctrl = 2131296430;
-
- // aapt resource value: 0x7f0900b1
- public const int mr_control_subtitle = 2131296433;
-
- // aapt resource value: 0x7f0900b0
- public const int mr_control_title = 2131296432;
-
- // aapt resource value: 0x7f0900af
- public const int mr_control_title_container = 2131296431;
-
- // aapt resource value: 0x7f0900a3
- public const int mr_custom_control = 2131296419;
-
- // aapt resource value: 0x7f0900a4
- public const int mr_default_control = 2131296420;
-
- // aapt resource value: 0x7f09009f
- public const int mr_dialog_area = 2131296415;
-
- // aapt resource value: 0x7f09009e
- public const int mr_expandable_area = 2131296414;
-
- // aapt resource value: 0x7f0900b2
- public const int mr_group_expand_collapse = 2131296434;
-
- // aapt resource value: 0x7f0900a6
- public const int mr_media_main_control = 2131296422;
-
- // aapt resource value: 0x7f0900a1
- public const int mr_name = 2131296417;
-
- // aapt resource value: 0x7f0900a7
- public const int mr_playback_control = 2131296423;
-
- // aapt resource value: 0x7f0900a0
- public const int mr_title_bar = 2131296416;
-
- // aapt resource value: 0x7f0900a9
- public const int mr_volume_control = 2131296425;
-
- // aapt resource value: 0x7f0900aa
- public const int mr_volume_group_list = 2131296426;
-
- // aapt resource value: 0x7f0900ac
- public const int mr_volume_item_icon = 2131296428;
-
- // aapt resource value: 0x7f0900ad
- public const int mr_volume_slider = 2131296429;
-
- // aapt resource value: 0x7f090028
- public const int multiply = 2131296296;
-
- // aapt resource value: 0x7f090093
- public const int navigation_header_container = 2131296403;
-
- // aapt resource value: 0x7f09003b
- public const int never = 2131296315;
-
- // aapt resource value: 0x7f090022
- public const int none = 2131296290;
-
- // aapt resource value: 0x7f09001e
- public const int normal = 2131296286;
-
- // aapt resource value: 0x7f0900c2
- public const int notification_background = 2131296450;
-
- // aapt resource value: 0x7f0900bc
- public const int notification_main_column = 2131296444;
-
- // aapt resource value: 0x7f0900bb
- public const int notification_main_column_container = 2131296443;
-
- // aapt resource value: 0x7f09004c
- public const int parallax = 2131296332;
-
- // aapt resource value: 0x7f090065
- public const int parentPanel = 2131296357;
-
- // aapt resource value: 0x7f09000b
- public const int parent_matrix = 2131296267;
-
- // aapt resource value: 0x7f09004d
- public const int pin = 2131296333;
-
- // aapt resource value: 0x7f090006
- public const int progress_circular = 2131296262;
-
- // aapt resource value: 0x7f090007
- public const int progress_horizontal = 2131296263;
-
- // aapt resource value: 0x7f090075
- public const int radio = 2131296373;
-
- // aapt resource value: 0x7f09004a
- public const int right = 2131296330;
-
- // aapt resource value: 0x7f0900c1
- public const int right_icon = 2131296449;
-
- // aapt resource value: 0x7f0900bd
- public const int right_side = 2131296445;
-
- // aapt resource value: 0x7f09000c
- public const int save_image_matrix = 2131296268;
-
- // aapt resource value: 0x7f09000d
- public const int save_non_transition_alpha = 2131296269;
-
- // aapt resource value: 0x7f09000e
- public const int save_scale_type = 2131296270;
-
- // aapt resource value: 0x7f090029
- public const int screen = 2131296297;
-
- // aapt resource value: 0x7f090042
- public const int scroll = 2131296322;
-
- // aapt resource value: 0x7f09006b
- public const int scrollIndicatorDown = 2131296363;
-
- // aapt resource value: 0x7f090067
- public const int scrollIndicatorUp = 2131296359;
-
- // aapt resource value: 0x7f090068
- public const int scrollView = 2131296360;
-
- // aapt resource value: 0x7f090055
- public const int scrollable = 2131296341;
-
- // aapt resource value: 0x7f090080
- public const int search_badge = 2131296384;
-
- // aapt resource value: 0x7f09007f
- public const int search_bar = 2131296383;
-
- // aapt resource value: 0x7f090081
- public const int search_button = 2131296385;
-
- // aapt resource value: 0x7f090086
- public const int search_close_btn = 2131296390;
-
- // aapt resource value: 0x7f090082
- public const int search_edit_frame = 2131296386;
-
- // aapt resource value: 0x7f090088
- public const int search_go_btn = 2131296392;
-
- // aapt resource value: 0x7f090083
- public const int search_mag_icon = 2131296387;
-
- // aapt resource value: 0x7f090084
- public const int search_plate = 2131296388;
-
- // aapt resource value: 0x7f090085
- public const int search_src_text = 2131296389;
-
- // aapt resource value: 0x7f090089
- public const int search_voice_btn = 2131296393;
-
- // aapt resource value: 0x7f09008a
- public const int select_dialog_listview = 2131296394;
-
- // aapt resource value: 0x7f090074
- public const int shortcut = 2131296372;
-
- // aapt resource value: 0x7f090023
- public const int showCustom = 2131296291;
-
- // aapt resource value: 0x7f090024
- public const int showHome = 2131296292;
-
- // aapt resource value: 0x7f090025
- public const int showTitle = 2131296293;
-
- // aapt resource value: 0x7f0900c6
- public const int sliding_tabs = 2131296454;
-
- // aapt resource value: 0x7f09008b
- public const int smallLabel = 2131296395;
-
- // aapt resource value: 0x7f090092
- public const int snackbar_action = 2131296402;
-
- // aapt resource value: 0x7f090091
- public const int snackbar_text = 2131296401;
-
- // aapt resource value: 0x7f090043
- public const int snap = 2131296323;
-
- // aapt resource value: 0x7f090064
- public const int spacer = 2131296356;
-
- // aapt resource value: 0x7f090008
- public const int split_action_bar = 2131296264;
-
- // aapt resource value: 0x7f09002a
- public const int src_atop = 2131296298;
-
- // aapt resource value: 0x7f09002b
- public const int src_in = 2131296299;
-
- // aapt resource value: 0x7f09002c
- public const int src_over = 2131296300;
-
- // aapt resource value: 0x7f09004b
- public const int start = 2131296331;
-
- // aapt resource value: 0x7f0900b8
- public const int status_bar_latest_event_content = 2131296440;
-
- // aapt resource value: 0x7f090076
- public const int submenuarrow = 2131296374;
-
- // aapt resource value: 0x7f090087
- public const int submit_area = 2131296391;
-
- // aapt resource value: 0x7f09001f
- public const int tabMode = 2131296287;
-
- // aapt resource value: 0x7f090019
- public const int tag_transition_group = 2131296281;
-
- // aapt resource value: 0x7f09001a
- public const int text = 2131296282;
-
- // aapt resource value: 0x7f09001b
- public const int text2 = 2131296283;
-
- // aapt resource value: 0x7f09006a
- public const int textSpacerNoButtons = 2131296362;
-
- // aapt resource value: 0x7f090069
- public const int textSpacerNoTitle = 2131296361;
-
- // aapt resource value: 0x7f090098
- public const int text_input_password_toggle = 2131296408;
-
- // aapt resource value: 0x7f090014
- public const int textinput_counter = 2131296276;
-
- // aapt resource value: 0x7f090015
- public const int textinput_error = 2131296277;
-
- // aapt resource value: 0x7f0900be
- public const int time = 2131296446;
-
- // aapt resource value: 0x7f09001c
- public const int title = 2131296284;
-
- // aapt resource value: 0x7f090071
- public const int titleDividerNoCustom = 2131296369;
-
- // aapt resource value: 0x7f09006f
- public const int title_template = 2131296367;
-
- // aapt resource value: 0x7f0900c7
- public const int toolbar = 2131296455;
-
- // aapt resource value: 0x7f09003e
- public const int top = 2131296318;
-
- // aapt resource value: 0x7f09006e
- public const int topPanel = 2131296366;
-
- // aapt resource value: 0x7f09008f
- public const int touch_outside = 2131296399;
-
- // aapt resource value: 0x7f09000f
- public const int transition_current_scene = 2131296271;
-
- // aapt resource value: 0x7f090010
- public const int transition_layout_save = 2131296272;
-
- // aapt resource value: 0x7f090011
- public const int transition_position = 2131296273;
-
- // aapt resource value: 0x7f090012
- public const int transition_scene_layoutid_cache = 2131296274;
-
- // aapt resource value: 0x7f090013
- public const int transition_transform = 2131296275;
-
- // aapt resource value: 0x7f09002d
- public const int uniform = 2131296301;
-
- // aapt resource value: 0x7f090009
- public const int up = 2131296265;
-
- // aapt resource value: 0x7f090026
- public const int useLogo = 2131296294;
-
- // aapt resource value: 0x7f090016
- public const int view_offset_helper = 2131296278;
-
- // aapt resource value: 0x7f0900c9
- public const int visible = 2131296457;
-
- // aapt resource value: 0x7f0900ab
- public const int volume_item_container = 2131296427;
-
- // aapt resource value: 0x7f09003c
- public const int withText = 2131296316;
-
- // aapt resource value: 0x7f09002e
- public const int wrap_content = 2131296302;
-
- static Id()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Id()
- {
- }
- }
-
- public partial class Integer
- {
-
- // aapt resource value: 0x7f0b0003
- public const int abc_config_activityDefaultDur = 2131427331;
-
- // aapt resource value: 0x7f0b0004
- public const int abc_config_activityShortDur = 2131427332;
-
- // aapt resource value: 0x7f0b0008
- public const int app_bar_elevation_anim_duration = 2131427336;
-
- // aapt resource value: 0x7f0b0009
- public const int bottom_sheet_slide_duration = 2131427337;
-
- // aapt resource value: 0x7f0b0005
- public const int cancel_button_image_alpha = 2131427333;
-
- // aapt resource value: 0x7f0b0006
- public const int config_tooltipAnimTime = 2131427334;
-
- // aapt resource value: 0x7f0b0007
- public const int design_snackbar_text_max_lines = 2131427335;
-
- // aapt resource value: 0x7f0b000a
- public const int hide_password_duration = 2131427338;
-
- // aapt resource value: 0x7f0b0000
- public const int mr_controller_volume_group_list_animation_duration_ms = 2131427328;
-
- // aapt resource value: 0x7f0b0001
- public const int mr_controller_volume_group_list_fade_in_duration_ms = 2131427329;
-
- // aapt resource value: 0x7f0b0002
- public const int mr_controller_volume_group_list_fade_out_duration_ms = 2131427330;
-
- // aapt resource value: 0x7f0b000b
- public const int show_password_duration = 2131427339;
-
- // aapt resource value: 0x7f0b000c
- public const int status_bar_notification_info_maxnum = 2131427340;
-
- static Integer()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Integer()
- {
- }
- }
-
- public partial class Interpolator
- {
-
- // aapt resource value: 0x7f070000
- public const int mr_fast_out_slow_in = 2131165184;
-
- // aapt resource value: 0x7f070001
- public const int mr_linear_out_slow_in = 2131165185;
-
- static Interpolator()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Interpolator()
- {
- }
- }
-
- public partial class Layout
- {
-
- // aapt resource value: 0x7f040000
- public const int abc_action_bar_title_item = 2130968576;
-
- // aapt resource value: 0x7f040001
- public const int abc_action_bar_up_container = 2130968577;
-
- // aapt resource value: 0x7f040002
- public const int abc_action_menu_item_layout = 2130968578;
-
- // aapt resource value: 0x7f040003
- public const int abc_action_menu_layout = 2130968579;
-
- // aapt resource value: 0x7f040004
- public const int abc_action_mode_bar = 2130968580;
-
- // aapt resource value: 0x7f040005
- public const int abc_action_mode_close_item_material = 2130968581;
-
- // aapt resource value: 0x7f040006
- public const int abc_activity_chooser_view = 2130968582;
-
- // aapt resource value: 0x7f040007
- public const int abc_activity_chooser_view_list_item = 2130968583;
-
- // aapt resource value: 0x7f040008
- public const int abc_alert_dialog_button_bar_material = 2130968584;
-
- // aapt resource value: 0x7f040009
- public const int abc_alert_dialog_material = 2130968585;
-
- // aapt resource value: 0x7f04000a
- public const int abc_alert_dialog_title_material = 2130968586;
-
- // aapt resource value: 0x7f04000b
- public const int abc_dialog_title_material = 2130968587;
-
- // aapt resource value: 0x7f04000c
- public const int abc_expanded_menu_layout = 2130968588;
-
- // aapt resource value: 0x7f04000d
- public const int abc_list_menu_item_checkbox = 2130968589;
-
- // aapt resource value: 0x7f04000e
- public const int abc_list_menu_item_icon = 2130968590;
-
- // aapt resource value: 0x7f04000f
- public const int abc_list_menu_item_layout = 2130968591;
-
- // aapt resource value: 0x7f040010
- public const int abc_list_menu_item_radio = 2130968592;
-
- // aapt resource value: 0x7f040011
- public const int abc_popup_menu_header_item_layout = 2130968593;
-
- // aapt resource value: 0x7f040012
- public const int abc_popup_menu_item_layout = 2130968594;
-
- // aapt resource value: 0x7f040013
- public const int abc_screen_content_include = 2130968595;
-
- // aapt resource value: 0x7f040014
- public const int abc_screen_simple = 2130968596;
-
- // aapt resource value: 0x7f040015
- public const int abc_screen_simple_overlay_action_mode = 2130968597;
-
- // aapt resource value: 0x7f040016
- public const int abc_screen_toolbar = 2130968598;
-
- // aapt resource value: 0x7f040017
- public const int abc_search_dropdown_item_icons_2line = 2130968599;
-
- // aapt resource value: 0x7f040018
- public const int abc_search_view = 2130968600;
-
- // aapt resource value: 0x7f040019
- public const int abc_select_dialog_material = 2130968601;
-
- // aapt resource value: 0x7f04001a
- public const int design_bottom_navigation_item = 2130968602;
-
- // aapt resource value: 0x7f04001b
- public const int design_bottom_sheet_dialog = 2130968603;
-
- // aapt resource value: 0x7f04001c
- public const int design_layout_snackbar = 2130968604;
-
- // aapt resource value: 0x7f04001d
- public const int design_layout_snackbar_include = 2130968605;
-
- // aapt resource value: 0x7f04001e
- public const int design_layout_tab_icon = 2130968606;
-
- // aapt resource value: 0x7f04001f
- public const int design_layout_tab_text = 2130968607;
-
- // aapt resource value: 0x7f040020
- public const int design_menu_item_action_area = 2130968608;
-
- // aapt resource value: 0x7f040021
- public const int design_navigation_item = 2130968609;
-
- // aapt resource value: 0x7f040022
- public const int design_navigation_item_header = 2130968610;
-
- // aapt resource value: 0x7f040023
- public const int design_navigation_item_separator = 2130968611;
-
- // aapt resource value: 0x7f040024
- public const int design_navigation_item_subheader = 2130968612;
-
- // aapt resource value: 0x7f040025
- public const int design_navigation_menu = 2130968613;
-
- // aapt resource value: 0x7f040026
- public const int design_navigation_menu_item = 2130968614;
-
- // aapt resource value: 0x7f040027
- public const int design_text_input_password_icon = 2130968615;
-
- // aapt resource value: 0x7f040028
- public const int mr_chooser_dialog = 2130968616;
-
- // aapt resource value: 0x7f040029
- public const int mr_chooser_list_item = 2130968617;
-
- // aapt resource value: 0x7f04002a
- public const int mr_controller_material_dialog_b = 2130968618;
-
- // aapt resource value: 0x7f04002b
- public const int mr_controller_volume_item = 2130968619;
-
- // aapt resource value: 0x7f04002c
- public const int mr_playback_control = 2130968620;
-
- // aapt resource value: 0x7f04002d
- public const int mr_volume_control = 2130968621;
-
- // aapt resource value: 0x7f04002e
- public const int notification_action = 2130968622;
-
- // aapt resource value: 0x7f04002f
- public const int notification_action_tombstone = 2130968623;
-
- // aapt resource value: 0x7f040030
- public const int notification_media_action = 2130968624;
-
- // aapt resource value: 0x7f040031
- public const int notification_media_cancel_action = 2130968625;
-
- // aapt resource value: 0x7f040032
- public const int notification_template_big_media = 2130968626;
-
- // aapt resource value: 0x7f040033
- public const int notification_template_big_media_custom = 2130968627;
-
- // aapt resource value: 0x7f040034
- public const int notification_template_big_media_narrow = 2130968628;
-
- // aapt resource value: 0x7f040035
- public const int notification_template_big_media_narrow_custom = 2130968629;
-
- // aapt resource value: 0x7f040036
- public const int notification_template_custom_big = 2130968630;
-
- // aapt resource value: 0x7f040037
- public const int notification_template_icon_group = 2130968631;
-
- // aapt resource value: 0x7f040038
- public const int notification_template_lines_media = 2130968632;
-
- // aapt resource value: 0x7f040039
- public const int notification_template_media = 2130968633;
-
- // aapt resource value: 0x7f04003a
- public const int notification_template_media_custom = 2130968634;
-
- // aapt resource value: 0x7f04003b
- public const int notification_template_part_chronometer = 2130968635;
-
- // aapt resource value: 0x7f04003c
- public const int notification_template_part_time = 2130968636;
-
- // aapt resource value: 0x7f04003d
- public const int select_dialog_item_material = 2130968637;
-
- // aapt resource value: 0x7f04003e
- public const int select_dialog_multichoice_material = 2130968638;
-
- // aapt resource value: 0x7f04003f
- public const int select_dialog_singlechoice_material = 2130968639;
-
- // aapt resource value: 0x7f040040
- public const int support_simple_spinner_dropdown_item = 2130968640;
-
- // aapt resource value: 0x7f040041
- public const int Tabbar = 2130968641;
-
- // aapt resource value: 0x7f040042
- public const int Toolbar = 2130968642;
-
- // aapt resource value: 0x7f040043
- public const int tooltip = 2130968643;
-
- static Layout()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Layout()
- {
- }
- }
-
- public partial class Mipmap
- {
-
- // aapt resource value: 0x7f030000
- public const int icon = 2130903040;
-
- // aapt resource value: 0x7f030001
- public const int icon_round = 2130903041;
-
- // aapt resource value: 0x7f030002
- public const int launcher_foreground = 2130903042;
-
- static Mipmap()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Mipmap()
- {
- }
- }
-
- public partial class String
- {
-
- // aapt resource value: 0x7f0a0015
- public const int abc_action_bar_home_description = 2131361813;
-
- // aapt resource value: 0x7f0a0016
- public const int abc_action_bar_up_description = 2131361814;
-
- // aapt resource value: 0x7f0a0017
- public const int abc_action_menu_overflow_description = 2131361815;
-
- // aapt resource value: 0x7f0a0018
- public const int abc_action_mode_done = 2131361816;
-
- // aapt resource value: 0x7f0a0019
- public const int abc_activity_chooser_view_see_all = 2131361817;
-
- // aapt resource value: 0x7f0a001a
- public const int abc_activitychooserview_choose_application = 2131361818;
-
- // aapt resource value: 0x7f0a001b
- public const int abc_capital_off = 2131361819;
-
- // aapt resource value: 0x7f0a001c
- public const int abc_capital_on = 2131361820;
-
- // aapt resource value: 0x7f0a0027
- public const int abc_font_family_body_1_material = 2131361831;
-
- // aapt resource value: 0x7f0a0028
- public const int abc_font_family_body_2_material = 2131361832;
-
- // aapt resource value: 0x7f0a0029
- public const int abc_font_family_button_material = 2131361833;
-
- // aapt resource value: 0x7f0a002a
- public const int abc_font_family_caption_material = 2131361834;
-
- // aapt resource value: 0x7f0a002b
- public const int abc_font_family_display_1_material = 2131361835;
-
- // aapt resource value: 0x7f0a002c
- public const int abc_font_family_display_2_material = 2131361836;
-
- // aapt resource value: 0x7f0a002d
- public const int abc_font_family_display_3_material = 2131361837;
-
- // aapt resource value: 0x7f0a002e
- public const int abc_font_family_display_4_material = 2131361838;
-
- // aapt resource value: 0x7f0a002f
- public const int abc_font_family_headline_material = 2131361839;
-
- // aapt resource value: 0x7f0a0030
- public const int abc_font_family_menu_material = 2131361840;
-
- // aapt resource value: 0x7f0a0031
- public const int abc_font_family_subhead_material = 2131361841;
-
- // aapt resource value: 0x7f0a0032
- public const int abc_font_family_title_material = 2131361842;
-
- // aapt resource value: 0x7f0a001d
- public const int abc_search_hint = 2131361821;
-
- // aapt resource value: 0x7f0a001e
- public const int abc_searchview_description_clear = 2131361822;
-
- // aapt resource value: 0x7f0a001f
- public const int abc_searchview_description_query = 2131361823;
-
- // aapt resource value: 0x7f0a0020
- public const int abc_searchview_description_search = 2131361824;
-
- // aapt resource value: 0x7f0a0021
- public const int abc_searchview_description_submit = 2131361825;
-
- // aapt resource value: 0x7f0a0022
- public const int abc_searchview_description_voice = 2131361826;
-
- // aapt resource value: 0x7f0a0023
- public const int abc_shareactionprovider_share_with = 2131361827;
-
- // aapt resource value: 0x7f0a0024
- public const int abc_shareactionprovider_share_with_application = 2131361828;
-
- // aapt resource value: 0x7f0a0025
- public const int abc_toolbar_collapse_description = 2131361829;
-
- // aapt resource value: 0x7f0a0033
- public const int appbar_scrolling_view_behavior = 2131361843;
-
- // aapt resource value: 0x7f0a0034
- public const int bottom_sheet_behavior = 2131361844;
-
- // aapt resource value: 0x7f0a0035
- public const int character_counter_pattern = 2131361845;
-
- // aapt resource value: 0x7f0a0000
- public const int mr_button_content_description = 2131361792;
-
- // aapt resource value: 0x7f0a0001
- public const int mr_cast_button_connected = 2131361793;
-
- // aapt resource value: 0x7f0a0002
- public const int mr_cast_button_connecting = 2131361794;
-
- // aapt resource value: 0x7f0a0003
- public const int mr_cast_button_disconnected = 2131361795;
-
- // aapt resource value: 0x7f0a0004
- public const int mr_chooser_searching = 2131361796;
-
- // aapt resource value: 0x7f0a0005
- public const int mr_chooser_title = 2131361797;
-
- // aapt resource value: 0x7f0a0006
- public const int mr_controller_album_art = 2131361798;
-
- // aapt resource value: 0x7f0a0007
- public const int mr_controller_casting_screen = 2131361799;
-
- // aapt resource value: 0x7f0a0008
- public const int mr_controller_close_description = 2131361800;
-
- // aapt resource value: 0x7f0a0009
- public const int mr_controller_collapse_group = 2131361801;
-
- // aapt resource value: 0x7f0a000a
- public const int mr_controller_disconnect = 2131361802;
-
- // aapt resource value: 0x7f0a000b
- public const int mr_controller_expand_group = 2131361803;
-
- // aapt resource value: 0x7f0a000c
- public const int mr_controller_no_info_available = 2131361804;
-
- // aapt resource value: 0x7f0a000d
- public const int mr_controller_no_media_selected = 2131361805;
-
- // aapt resource value: 0x7f0a000e
- public const int mr_controller_pause = 2131361806;
-
- // aapt resource value: 0x7f0a000f
- public const int mr_controller_play = 2131361807;
-
- // aapt resource value: 0x7f0a0010
- public const int mr_controller_stop = 2131361808;
-
- // aapt resource value: 0x7f0a0011
- public const int mr_controller_stop_casting = 2131361809;
-
- // aapt resource value: 0x7f0a0012
- public const int mr_controller_volume_slider = 2131361810;
-
- // aapt resource value: 0x7f0a0013
- public const int mr_system_route_name = 2131361811;
-
- // aapt resource value: 0x7f0a0014
- public const int mr_user_route_category_name = 2131361812;
-
- // aapt resource value: 0x7f0a0036
- public const int password_toggle_content_description = 2131361846;
-
- // aapt resource value: 0x7f0a0037
- public const int path_password_eye = 2131361847;
-
- // aapt resource value: 0x7f0a0038
- public const int path_password_eye_mask_strike_through = 2131361848;
-
- // aapt resource value: 0x7f0a0039
- public const int path_password_eye_mask_visible = 2131361849;
-
- // aapt resource value: 0x7f0a003a
- public const int path_password_strike_through = 2131361850;
-
- // aapt resource value: 0x7f0a0026
- public const int search_menu_title = 2131361830;
-
- // aapt resource value: 0x7f0a003b
- public const int status_bar_notification_info_overflow = 2131361851;
-
- static String()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private String()
- {
- }
- }
-
- public partial class Style
- {
-
- // aapt resource value: 0x7f0c00a4
- public const int AlertDialog_AppCompat = 2131493028;
-
- // aapt resource value: 0x7f0c00a5
- public const int AlertDialog_AppCompat_Light = 2131493029;
-
- // aapt resource value: 0x7f0c00a6
- public const int Animation_AppCompat_Dialog = 2131493030;
-
- // aapt resource value: 0x7f0c00a7
- public const int Animation_AppCompat_DropDownUp = 2131493031;
-
- // aapt resource value: 0x7f0c00a8
- public const int Animation_AppCompat_Tooltip = 2131493032;
-
- // aapt resource value: 0x7f0c016e
- public const int Animation_Design_BottomSheetDialog = 2131493230;
-
- // aapt resource value: 0x7f0c0191
- public const int AppCompatDialogStyle = 2131493265;
-
- // aapt resource value: 0x7f0c00a9
- public const int Base_AlertDialog_AppCompat = 2131493033;
-
- // aapt resource value: 0x7f0c00aa
- public const int Base_AlertDialog_AppCompat_Light = 2131493034;
-
- // aapt resource value: 0x7f0c00ab
- public const int Base_Animation_AppCompat_Dialog = 2131493035;
-
- // aapt resource value: 0x7f0c00ac
- public const int Base_Animation_AppCompat_DropDownUp = 2131493036;
-
- // aapt resource value: 0x7f0c00ad
- public const int Base_Animation_AppCompat_Tooltip = 2131493037;
-
- // aapt resource value: 0x7f0c000c
- public const int Base_CardView = 2131492876;
-
- // aapt resource value: 0x7f0c00ae
- public const int Base_DialogWindowTitle_AppCompat = 2131493038;
-
- // aapt resource value: 0x7f0c00af
- public const int Base_DialogWindowTitleBackground_AppCompat = 2131493039;
-
- // aapt resource value: 0x7f0c0048
- public const int Base_TextAppearance_AppCompat = 2131492936;
-
- // aapt resource value: 0x7f0c0049
- public const int Base_TextAppearance_AppCompat_Body1 = 2131492937;
-
- // aapt resource value: 0x7f0c004a
- public const int Base_TextAppearance_AppCompat_Body2 = 2131492938;
-
- // aapt resource value: 0x7f0c0036
- public const int Base_TextAppearance_AppCompat_Button = 2131492918;
-
- // aapt resource value: 0x7f0c004b
- public const int Base_TextAppearance_AppCompat_Caption = 2131492939;
-
- // aapt resource value: 0x7f0c004c
- public const int Base_TextAppearance_AppCompat_Display1 = 2131492940;
-
- // aapt resource value: 0x7f0c004d
- public const int Base_TextAppearance_AppCompat_Display2 = 2131492941;
-
- // aapt resource value: 0x7f0c004e
- public const int Base_TextAppearance_AppCompat_Display3 = 2131492942;
-
- // aapt resource value: 0x7f0c004f
- public const int Base_TextAppearance_AppCompat_Display4 = 2131492943;
-
- // aapt resource value: 0x7f0c0050
- public const int Base_TextAppearance_AppCompat_Headline = 2131492944;
-
- // aapt resource value: 0x7f0c001a
- public const int Base_TextAppearance_AppCompat_Inverse = 2131492890;
-
- // aapt resource value: 0x7f0c0051
- public const int Base_TextAppearance_AppCompat_Large = 2131492945;
-
- // aapt resource value: 0x7f0c001b
- public const int Base_TextAppearance_AppCompat_Large_Inverse = 2131492891;
-
- // aapt resource value: 0x7f0c0052
- public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131492946;
-
- // aapt resource value: 0x7f0c0053
- public const int Base_TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131492947;
-
- // aapt resource value: 0x7f0c0054
- public const int Base_TextAppearance_AppCompat_Medium = 2131492948;
-
- // aapt resource value: 0x7f0c001c
- public const int Base_TextAppearance_AppCompat_Medium_Inverse = 2131492892;
-
- // aapt resource value: 0x7f0c0055
- public const int Base_TextAppearance_AppCompat_Menu = 2131492949;
-
- // aapt resource value: 0x7f0c00b0
- public const int Base_TextAppearance_AppCompat_SearchResult = 2131493040;
-
- // aapt resource value: 0x7f0c0056
- public const int Base_TextAppearance_AppCompat_SearchResult_Subtitle = 2131492950;
-
- // aapt resource value: 0x7f0c0057
- public const int Base_TextAppearance_AppCompat_SearchResult_Title = 2131492951;
-
- // aapt resource value: 0x7f0c0058
- public const int Base_TextAppearance_AppCompat_Small = 2131492952;
-
- // aapt resource value: 0x7f0c001d
- public const int Base_TextAppearance_AppCompat_Small_Inverse = 2131492893;
-
- // aapt resource value: 0x7f0c0059
- public const int Base_TextAppearance_AppCompat_Subhead = 2131492953;
-
- // aapt resource value: 0x7f0c001e
- public const int Base_TextAppearance_AppCompat_Subhead_Inverse = 2131492894;
-
- // aapt resource value: 0x7f0c005a
- public const int Base_TextAppearance_AppCompat_Title = 2131492954;
-
- // aapt resource value: 0x7f0c001f
- public const int Base_TextAppearance_AppCompat_Title_Inverse = 2131492895;
-
- // aapt resource value: 0x7f0c00b1
- public const int Base_TextAppearance_AppCompat_Tooltip = 2131493041;
-
- // aapt resource value: 0x7f0c0095
- public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131493013;
-
- // aapt resource value: 0x7f0c005b
- public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131492955;
-
- // aapt resource value: 0x7f0c005c
- public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131492956;
-
- // aapt resource value: 0x7f0c005d
- public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title = 2131492957;
-
- // aapt resource value: 0x7f0c005e
- public const int Base_TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131492958;
-
- // aapt resource value: 0x7f0c005f
- public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131492959;
-
- // aapt resource value: 0x7f0c0060
- public const int Base_TextAppearance_AppCompat_Widget_ActionMode_Title = 2131492960;
-
- // aapt resource value: 0x7f0c0061
- public const int Base_TextAppearance_AppCompat_Widget_Button = 2131492961;
-
- // aapt resource value: 0x7f0c009c
- public const int Base_TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131493020;
-
- // aapt resource value: 0x7f0c009d
- public const int Base_TextAppearance_AppCompat_Widget_Button_Colored = 2131493021;
-
- // aapt resource value: 0x7f0c0096
- public const int Base_TextAppearance_AppCompat_Widget_Button_Inverse = 2131493014;
-
- // aapt resource value: 0x7f0c00b2
- public const int Base_TextAppearance_AppCompat_Widget_DropDownItem = 2131493042;
-
- // aapt resource value: 0x7f0c0062
- public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131492962;
-
- // aapt resource value: 0x7f0c0063
- public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131492963;
-
- // aapt resource value: 0x7f0c0064
- public const int Base_TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131492964;
-
- // aapt resource value: 0x7f0c0065
- public const int Base_TextAppearance_AppCompat_Widget_Switch = 2131492965;
-
- // aapt resource value: 0x7f0c0066
- public const int Base_TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131492966;
-
- // aapt resource value: 0x7f0c00b3
- public const int Base_TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131493043;
-
- // aapt resource value: 0x7f0c0067
- public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131492967;
-
- // aapt resource value: 0x7f0c0068
- public const int Base_TextAppearance_Widget_AppCompat_Toolbar_Title = 2131492968;
-
- // aapt resource value: 0x7f0c0069
- public const int Base_Theme_AppCompat = 2131492969;
-
- // aapt resource value: 0x7f0c00b4
- public const int Base_Theme_AppCompat_CompactMenu = 2131493044;
-
- // aapt resource value: 0x7f0c0020
- public const int Base_Theme_AppCompat_Dialog = 2131492896;
-
- // aapt resource value: 0x7f0c0021
- public const int Base_Theme_AppCompat_Dialog_Alert = 2131492897;
-
- // aapt resource value: 0x7f0c00b5
- public const int Base_Theme_AppCompat_Dialog_FixedSize = 2131493045;
-
- // aapt resource value: 0x7f0c0022
- public const int Base_Theme_AppCompat_Dialog_MinWidth = 2131492898;
-
- // aapt resource value: 0x7f0c0010
- public const int Base_Theme_AppCompat_DialogWhenLarge = 2131492880;
-
- // aapt resource value: 0x7f0c006a
- public const int Base_Theme_AppCompat_Light = 2131492970;
-
- // aapt resource value: 0x7f0c00b6
- public const int Base_Theme_AppCompat_Light_DarkActionBar = 2131493046;
-
- // aapt resource value: 0x7f0c0023
- public const int Base_Theme_AppCompat_Light_Dialog = 2131492899;
-
- // aapt resource value: 0x7f0c0024
- public const int Base_Theme_AppCompat_Light_Dialog_Alert = 2131492900;
-
- // aapt resource value: 0x7f0c00b7
- public const int Base_Theme_AppCompat_Light_Dialog_FixedSize = 2131493047;
-
- // aapt resource value: 0x7f0c0025
- public const int Base_Theme_AppCompat_Light_Dialog_MinWidth = 2131492901;
-
- // aapt resource value: 0x7f0c0011
- public const int Base_Theme_AppCompat_Light_DialogWhenLarge = 2131492881;
-
- // aapt resource value: 0x7f0c00b8
- public const int Base_ThemeOverlay_AppCompat = 2131493048;
-
- // aapt resource value: 0x7f0c00b9
- public const int Base_ThemeOverlay_AppCompat_ActionBar = 2131493049;
-
- // aapt resource value: 0x7f0c00ba
- public const int Base_ThemeOverlay_AppCompat_Dark = 2131493050;
-
- // aapt resource value: 0x7f0c00bb
- public const int Base_ThemeOverlay_AppCompat_Dark_ActionBar = 2131493051;
-
- // aapt resource value: 0x7f0c0026
- public const int Base_ThemeOverlay_AppCompat_Dialog = 2131492902;
-
- // aapt resource value: 0x7f0c0027
- public const int Base_ThemeOverlay_AppCompat_Dialog_Alert = 2131492903;
-
- // aapt resource value: 0x7f0c00bc
- public const int Base_ThemeOverlay_AppCompat_Light = 2131493052;
-
- // aapt resource value: 0x7f0c0028
- public const int Base_V11_Theme_AppCompat_Dialog = 2131492904;
-
- // aapt resource value: 0x7f0c0029
- public const int Base_V11_Theme_AppCompat_Light_Dialog = 2131492905;
-
- // aapt resource value: 0x7f0c002a
- public const int Base_V11_ThemeOverlay_AppCompat_Dialog = 2131492906;
-
- // aapt resource value: 0x7f0c0032
- public const int Base_V12_Widget_AppCompat_AutoCompleteTextView = 2131492914;
-
- // aapt resource value: 0x7f0c0033
- public const int Base_V12_Widget_AppCompat_EditText = 2131492915;
-
- // aapt resource value: 0x7f0c016f
- public const int Base_V14_Widget_Design_AppBarLayout = 2131493231;
-
- // aapt resource value: 0x7f0c006b
- public const int Base_V21_Theme_AppCompat = 2131492971;
-
- // aapt resource value: 0x7f0c006c
- public const int Base_V21_Theme_AppCompat_Dialog = 2131492972;
-
- // aapt resource value: 0x7f0c006d
- public const int Base_V21_Theme_AppCompat_Light = 2131492973;
-
- // aapt resource value: 0x7f0c006e
- public const int Base_V21_Theme_AppCompat_Light_Dialog = 2131492974;
-
- // aapt resource value: 0x7f0c006f
- public const int Base_V21_ThemeOverlay_AppCompat_Dialog = 2131492975;
-
- // aapt resource value: 0x7f0c016b
- public const int Base_V21_Widget_Design_AppBarLayout = 2131493227;
-
- // aapt resource value: 0x7f0c0093
- public const int Base_V22_Theme_AppCompat = 2131493011;
-
- // aapt resource value: 0x7f0c0094
- public const int Base_V22_Theme_AppCompat_Light = 2131493012;
-
- // aapt resource value: 0x7f0c0097
- public const int Base_V23_Theme_AppCompat = 2131493015;
-
- // aapt resource value: 0x7f0c0098
- public const int Base_V23_Theme_AppCompat_Light = 2131493016;
-
- // aapt resource value: 0x7f0c00a0
- public const int Base_V26_Theme_AppCompat = 2131493024;
-
- // aapt resource value: 0x7f0c00a1
- public const int Base_V26_Theme_AppCompat_Light = 2131493025;
-
- // aapt resource value: 0x7f0c00a2
- public const int Base_V26_Widget_AppCompat_Toolbar = 2131493026;
-
- // aapt resource value: 0x7f0c016d
- public const int Base_V26_Widget_Design_AppBarLayout = 2131493229;
-
- // aapt resource value: 0x7f0c00bd
- public const int Base_V7_Theme_AppCompat = 2131493053;
-
- // aapt resource value: 0x7f0c00be
- public const int Base_V7_Theme_AppCompat_Dialog = 2131493054;
-
- // aapt resource value: 0x7f0c00bf
- public const int Base_V7_Theme_AppCompat_Light = 2131493055;
-
- // aapt resource value: 0x7f0c00c0
- public const int Base_V7_Theme_AppCompat_Light_Dialog = 2131493056;
-
- // aapt resource value: 0x7f0c00c1
- public const int Base_V7_ThemeOverlay_AppCompat_Dialog = 2131493057;
-
- // aapt resource value: 0x7f0c00c2
- public const int Base_V7_Widget_AppCompat_AutoCompleteTextView = 2131493058;
-
- // aapt resource value: 0x7f0c00c3
- public const int Base_V7_Widget_AppCompat_EditText = 2131493059;
-
- // aapt resource value: 0x7f0c00c4
- public const int Base_V7_Widget_AppCompat_Toolbar = 2131493060;
-
- // aapt resource value: 0x7f0c00c5
- public const int Base_Widget_AppCompat_ActionBar = 2131493061;
-
- // aapt resource value: 0x7f0c00c6
- public const int Base_Widget_AppCompat_ActionBar_Solid = 2131493062;
-
- // aapt resource value: 0x7f0c00c7
- public const int Base_Widget_AppCompat_ActionBar_TabBar = 2131493063;
-
- // aapt resource value: 0x7f0c0070
- public const int Base_Widget_AppCompat_ActionBar_TabText = 2131492976;
-
- // aapt resource value: 0x7f0c0071
- public const int Base_Widget_AppCompat_ActionBar_TabView = 2131492977;
-
- // aapt resource value: 0x7f0c0072
- public const int Base_Widget_AppCompat_ActionButton = 2131492978;
-
- // aapt resource value: 0x7f0c0073
- public const int Base_Widget_AppCompat_ActionButton_CloseMode = 2131492979;
-
- // aapt resource value: 0x7f0c0074
- public const int Base_Widget_AppCompat_ActionButton_Overflow = 2131492980;
-
- // aapt resource value: 0x7f0c00c8
- public const int Base_Widget_AppCompat_ActionMode = 2131493064;
-
- // aapt resource value: 0x7f0c00c9
- public const int Base_Widget_AppCompat_ActivityChooserView = 2131493065;
-
- // aapt resource value: 0x7f0c0034
- public const int Base_Widget_AppCompat_AutoCompleteTextView = 2131492916;
-
- // aapt resource value: 0x7f0c0075
- public const int Base_Widget_AppCompat_Button = 2131492981;
-
- // aapt resource value: 0x7f0c0076
- public const int Base_Widget_AppCompat_Button_Borderless = 2131492982;
-
- // aapt resource value: 0x7f0c0077
- public const int Base_Widget_AppCompat_Button_Borderless_Colored = 2131492983;
-
- // aapt resource value: 0x7f0c00ca
- public const int Base_Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131493066;
-
- // aapt resource value: 0x7f0c0099
- public const int Base_Widget_AppCompat_Button_Colored = 2131493017;
-
- // aapt resource value: 0x7f0c0078
- public const int Base_Widget_AppCompat_Button_Small = 2131492984;
-
- // aapt resource value: 0x7f0c0079
- public const int Base_Widget_AppCompat_ButtonBar = 2131492985;
-
- // aapt resource value: 0x7f0c00cb
- public const int Base_Widget_AppCompat_ButtonBar_AlertDialog = 2131493067;
-
- // aapt resource value: 0x7f0c007a
- public const int Base_Widget_AppCompat_CompoundButton_CheckBox = 2131492986;
-
- // aapt resource value: 0x7f0c007b
- public const int Base_Widget_AppCompat_CompoundButton_RadioButton = 2131492987;
-
- // aapt resource value: 0x7f0c00cc
- public const int Base_Widget_AppCompat_CompoundButton_Switch = 2131493068;
-
- // aapt resource value: 0x7f0c000f
- public const int Base_Widget_AppCompat_DrawerArrowToggle = 2131492879;
-
- // aapt resource value: 0x7f0c00cd
- public const int Base_Widget_AppCompat_DrawerArrowToggle_Common = 2131493069;
-
- // aapt resource value: 0x7f0c007c
- public const int Base_Widget_AppCompat_DropDownItem_Spinner = 2131492988;
-
- // aapt resource value: 0x7f0c0035
- public const int Base_Widget_AppCompat_EditText = 2131492917;
-
- // aapt resource value: 0x7f0c007d
- public const int Base_Widget_AppCompat_ImageButton = 2131492989;
-
- // aapt resource value: 0x7f0c00ce
- public const int Base_Widget_AppCompat_Light_ActionBar = 2131493070;
-
- // aapt resource value: 0x7f0c00cf
- public const int Base_Widget_AppCompat_Light_ActionBar_Solid = 2131493071;
-
- // aapt resource value: 0x7f0c00d0
- public const int Base_Widget_AppCompat_Light_ActionBar_TabBar = 2131493072;
-
- // aapt resource value: 0x7f0c007e
- public const int Base_Widget_AppCompat_Light_ActionBar_TabText = 2131492990;
-
- // aapt resource value: 0x7f0c007f
- public const int Base_Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131492991;
-
- // aapt resource value: 0x7f0c0080
- public const int Base_Widget_AppCompat_Light_ActionBar_TabView = 2131492992;
-
- // aapt resource value: 0x7f0c0081
- public const int Base_Widget_AppCompat_Light_PopupMenu = 2131492993;
-
- // aapt resource value: 0x7f0c0082
- public const int Base_Widget_AppCompat_Light_PopupMenu_Overflow = 2131492994;
-
- // aapt resource value: 0x7f0c00d1
- public const int Base_Widget_AppCompat_ListMenuView = 2131493073;
-
- // aapt resource value: 0x7f0c0083
- public const int Base_Widget_AppCompat_ListPopupWindow = 2131492995;
-
- // aapt resource value: 0x7f0c0084
- public const int Base_Widget_AppCompat_ListView = 2131492996;
-
- // aapt resource value: 0x7f0c0085
- public const int Base_Widget_AppCompat_ListView_DropDown = 2131492997;
-
- // aapt resource value: 0x7f0c0086
- public const int Base_Widget_AppCompat_ListView_Menu = 2131492998;
-
- // aapt resource value: 0x7f0c0087
- public const int Base_Widget_AppCompat_PopupMenu = 2131492999;
-
- // aapt resource value: 0x7f0c0088
- public const int Base_Widget_AppCompat_PopupMenu_Overflow = 2131493000;
-
- // aapt resource value: 0x7f0c00d2
- public const int Base_Widget_AppCompat_PopupWindow = 2131493074;
-
- // aapt resource value: 0x7f0c002b
- public const int Base_Widget_AppCompat_ProgressBar = 2131492907;
-
- // aapt resource value: 0x7f0c002c
- public const int Base_Widget_AppCompat_ProgressBar_Horizontal = 2131492908;
-
- // aapt resource value: 0x7f0c0089
- public const int Base_Widget_AppCompat_RatingBar = 2131493001;
-
- // aapt resource value: 0x7f0c009a
- public const int Base_Widget_AppCompat_RatingBar_Indicator = 2131493018;
-
- // aapt resource value: 0x7f0c009b
- public const int Base_Widget_AppCompat_RatingBar_Small = 2131493019;
-
- // aapt resource value: 0x7f0c00d3
- public const int Base_Widget_AppCompat_SearchView = 2131493075;
-
- // aapt resource value: 0x7f0c00d4
- public const int Base_Widget_AppCompat_SearchView_ActionBar = 2131493076;
-
- // aapt resource value: 0x7f0c008a
- public const int Base_Widget_AppCompat_SeekBar = 2131493002;
-
- // aapt resource value: 0x7f0c00d5
- public const int Base_Widget_AppCompat_SeekBar_Discrete = 2131493077;
-
- // aapt resource value: 0x7f0c008b
- public const int Base_Widget_AppCompat_Spinner = 2131493003;
-
- // aapt resource value: 0x7f0c0012
- public const int Base_Widget_AppCompat_Spinner_Underlined = 2131492882;
-
- // aapt resource value: 0x7f0c008c
- public const int Base_Widget_AppCompat_TextView_SpinnerItem = 2131493004;
-
- // aapt resource value: 0x7f0c00a3
- public const int Base_Widget_AppCompat_Toolbar = 2131493027;
-
- // aapt resource value: 0x7f0c008d
- public const int Base_Widget_AppCompat_Toolbar_Button_Navigation = 2131493005;
-
- // aapt resource value: 0x7f0c016c
- public const int Base_Widget_Design_AppBarLayout = 2131493228;
-
- // aapt resource value: 0x7f0c0170
- public const int Base_Widget_Design_TabLayout = 2131493232;
-
- // aapt resource value: 0x7f0c000b
- public const int CardView = 2131492875;
-
- // aapt resource value: 0x7f0c000d
- public const int CardView_Dark = 2131492877;
-
- // aapt resource value: 0x7f0c000e
- public const int CardView_Light = 2131492878;
-
- // aapt resource value: 0x7f0c018f
- public const int MainTheme = 2131493263;
-
- // aapt resource value: 0x7f0c0190
- public const int MainTheme_Base = 2131493264;
-
- // aapt resource value: 0x7f0c002d
- public const int Platform_AppCompat = 2131492909;
-
- // aapt resource value: 0x7f0c002e
- public const int Platform_AppCompat_Light = 2131492910;
-
- // aapt resource value: 0x7f0c008e
- public const int Platform_ThemeOverlay_AppCompat = 2131493006;
-
- // aapt resource value: 0x7f0c008f
- public const int Platform_ThemeOverlay_AppCompat_Dark = 2131493007;
-
- // aapt resource value: 0x7f0c0090
- public const int Platform_ThemeOverlay_AppCompat_Light = 2131493008;
-
- // aapt resource value: 0x7f0c002f
- public const int Platform_V11_AppCompat = 2131492911;
-
- // aapt resource value: 0x7f0c0030
- public const int Platform_V11_AppCompat_Light = 2131492912;
-
- // aapt resource value: 0x7f0c0037
- public const int Platform_V14_AppCompat = 2131492919;
-
- // aapt resource value: 0x7f0c0038
- public const int Platform_V14_AppCompat_Light = 2131492920;
-
- // aapt resource value: 0x7f0c0091
- public const int Platform_V21_AppCompat = 2131493009;
-
- // aapt resource value: 0x7f0c0092
- public const int Platform_V21_AppCompat_Light = 2131493010;
-
- // aapt resource value: 0x7f0c009e
- public const int Platform_V25_AppCompat = 2131493022;
-
- // aapt resource value: 0x7f0c009f
- public const int Platform_V25_AppCompat_Light = 2131493023;
-
- // aapt resource value: 0x7f0c0031
- public const int Platform_Widget_AppCompat_Spinner = 2131492913;
-
- // aapt resource value: 0x7f0c003a
- public const int RtlOverlay_DialogWindowTitle_AppCompat = 2131492922;
-
- // aapt resource value: 0x7f0c003b
- public const int RtlOverlay_Widget_AppCompat_ActionBar_TitleItem = 2131492923;
-
- // aapt resource value: 0x7f0c003c
- public const int RtlOverlay_Widget_AppCompat_DialogTitle_Icon = 2131492924;
-
- // aapt resource value: 0x7f0c003d
- public const int RtlOverlay_Widget_AppCompat_PopupMenuItem = 2131492925;
-
- // aapt resource value: 0x7f0c003e
- public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_InternalGroup = 2131492926;
-
- // aapt resource value: 0x7f0c003f
- public const int RtlOverlay_Widget_AppCompat_PopupMenuItem_Text = 2131492927;
-
- // aapt resource value: 0x7f0c0040
- public const int RtlOverlay_Widget_AppCompat_Search_DropDown = 2131492928;
-
- // aapt resource value: 0x7f0c0041
- public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon1 = 2131492929;
-
- // aapt resource value: 0x7f0c0042
- public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Icon2 = 2131492930;
-
- // aapt resource value: 0x7f0c0043
- public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Query = 2131492931;
-
- // aapt resource value: 0x7f0c0044
- public const int RtlOverlay_Widget_AppCompat_Search_DropDown_Text = 2131492932;
-
- // aapt resource value: 0x7f0c0045
- public const int RtlOverlay_Widget_AppCompat_SearchView_MagIcon = 2131492933;
-
- // aapt resource value: 0x7f0c0046
- public const int RtlUnderlay_Widget_AppCompat_ActionButton = 2131492934;
-
- // aapt resource value: 0x7f0c0047
- public const int RtlUnderlay_Widget_AppCompat_ActionButton_Overflow = 2131492935;
-
- // aapt resource value: 0x7f0c00d6
- public const int TextAppearance_AppCompat = 2131493078;
-
- // aapt resource value: 0x7f0c00d7
- public const int TextAppearance_AppCompat_Body1 = 2131493079;
-
- // aapt resource value: 0x7f0c00d8
- public const int TextAppearance_AppCompat_Body2 = 2131493080;
-
- // aapt resource value: 0x7f0c00d9
- public const int TextAppearance_AppCompat_Button = 2131493081;
-
- // aapt resource value: 0x7f0c00da
- public const int TextAppearance_AppCompat_Caption = 2131493082;
-
- // aapt resource value: 0x7f0c00db
- public const int TextAppearance_AppCompat_Display1 = 2131493083;
-
- // aapt resource value: 0x7f0c00dc
- public const int TextAppearance_AppCompat_Display2 = 2131493084;
-
- // aapt resource value: 0x7f0c00dd
- public const int TextAppearance_AppCompat_Display3 = 2131493085;
-
- // aapt resource value: 0x7f0c00de
- public const int TextAppearance_AppCompat_Display4 = 2131493086;
-
- // aapt resource value: 0x7f0c00df
- public const int TextAppearance_AppCompat_Headline = 2131493087;
-
- // aapt resource value: 0x7f0c00e0
- public const int TextAppearance_AppCompat_Inverse = 2131493088;
-
- // aapt resource value: 0x7f0c00e1
- public const int TextAppearance_AppCompat_Large = 2131493089;
-
- // aapt resource value: 0x7f0c00e2
- public const int TextAppearance_AppCompat_Large_Inverse = 2131493090;
-
- // aapt resource value: 0x7f0c00e3
- public const int TextAppearance_AppCompat_Light_SearchResult_Subtitle = 2131493091;
-
- // aapt resource value: 0x7f0c00e4
- public const int TextAppearance_AppCompat_Light_SearchResult_Title = 2131493092;
-
- // aapt resource value: 0x7f0c00e5
- public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Large = 2131493093;
-
- // aapt resource value: 0x7f0c00e6
- public const int TextAppearance_AppCompat_Light_Widget_PopupMenu_Small = 2131493094;
-
- // aapt resource value: 0x7f0c00e7
- public const int TextAppearance_AppCompat_Medium = 2131493095;
-
- // aapt resource value: 0x7f0c00e8
- public const int TextAppearance_AppCompat_Medium_Inverse = 2131493096;
-
- // aapt resource value: 0x7f0c00e9
- public const int TextAppearance_AppCompat_Menu = 2131493097;
-
- // aapt resource value: 0x7f0c00ea
- public const int TextAppearance_AppCompat_SearchResult_Subtitle = 2131493098;
-
- // aapt resource value: 0x7f0c00eb
- public const int TextAppearance_AppCompat_SearchResult_Title = 2131493099;
-
- // aapt resource value: 0x7f0c00ec
- public const int TextAppearance_AppCompat_Small = 2131493100;
-
- // aapt resource value: 0x7f0c00ed
- public const int TextAppearance_AppCompat_Small_Inverse = 2131493101;
-
- // aapt resource value: 0x7f0c00ee
- public const int TextAppearance_AppCompat_Subhead = 2131493102;
-
- // aapt resource value: 0x7f0c00ef
- public const int TextAppearance_AppCompat_Subhead_Inverse = 2131493103;
-
- // aapt resource value: 0x7f0c00f0
- public const int TextAppearance_AppCompat_Title = 2131493104;
-
- // aapt resource value: 0x7f0c00f1
- public const int TextAppearance_AppCompat_Title_Inverse = 2131493105;
-
- // aapt resource value: 0x7f0c0039
- public const int TextAppearance_AppCompat_Tooltip = 2131492921;
-
- // aapt resource value: 0x7f0c00f2
- public const int TextAppearance_AppCompat_Widget_ActionBar_Menu = 2131493106;
-
- // aapt resource value: 0x7f0c00f3
- public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle = 2131493107;
-
- // aapt resource value: 0x7f0c00f4
- public const int TextAppearance_AppCompat_Widget_ActionBar_Subtitle_Inverse = 2131493108;
-
- // aapt resource value: 0x7f0c00f5
- public const int TextAppearance_AppCompat_Widget_ActionBar_Title = 2131493109;
-
- // aapt resource value: 0x7f0c00f6
- public const int TextAppearance_AppCompat_Widget_ActionBar_Title_Inverse = 2131493110;
-
- // aapt resource value: 0x7f0c00f7
- public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle = 2131493111;
-
- // aapt resource value: 0x7f0c00f8
- public const int TextAppearance_AppCompat_Widget_ActionMode_Subtitle_Inverse = 2131493112;
-
- // aapt resource value: 0x7f0c00f9
- public const int TextAppearance_AppCompat_Widget_ActionMode_Title = 2131493113;
-
- // aapt resource value: 0x7f0c00fa
- public const int TextAppearance_AppCompat_Widget_ActionMode_Title_Inverse = 2131493114;
-
- // aapt resource value: 0x7f0c00fb
- public const int TextAppearance_AppCompat_Widget_Button = 2131493115;
-
- // aapt resource value: 0x7f0c00fc
- public const int TextAppearance_AppCompat_Widget_Button_Borderless_Colored = 2131493116;
-
- // aapt resource value: 0x7f0c00fd
- public const int TextAppearance_AppCompat_Widget_Button_Colored = 2131493117;
-
- // aapt resource value: 0x7f0c00fe
- public const int TextAppearance_AppCompat_Widget_Button_Inverse = 2131493118;
-
- // aapt resource value: 0x7f0c00ff
- public const int TextAppearance_AppCompat_Widget_DropDownItem = 2131493119;
-
- // aapt resource value: 0x7f0c0100
- public const int TextAppearance_AppCompat_Widget_PopupMenu_Header = 2131493120;
-
- // aapt resource value: 0x7f0c0101
- public const int TextAppearance_AppCompat_Widget_PopupMenu_Large = 2131493121;
-
- // aapt resource value: 0x7f0c0102
- public const int TextAppearance_AppCompat_Widget_PopupMenu_Small = 2131493122;
-
- // aapt resource value: 0x7f0c0103
- public const int TextAppearance_AppCompat_Widget_Switch = 2131493123;
-
- // aapt resource value: 0x7f0c0104
- public const int TextAppearance_AppCompat_Widget_TextView_SpinnerItem = 2131493124;
-
- // aapt resource value: 0x7f0c0188
- public const int TextAppearance_Compat_Notification = 2131493256;
-
- // aapt resource value: 0x7f0c0189
- public const int TextAppearance_Compat_Notification_Info = 2131493257;
-
- // aapt resource value: 0x7f0c0165
- public const int TextAppearance_Compat_Notification_Info_Media = 2131493221;
-
- // aapt resource value: 0x7f0c018e
- public const int TextAppearance_Compat_Notification_Line2 = 2131493262;
-
- // aapt resource value: 0x7f0c0169
- public const int TextAppearance_Compat_Notification_Line2_Media = 2131493225;
-
- // aapt resource value: 0x7f0c0166
- public const int TextAppearance_Compat_Notification_Media = 2131493222;
-
- // aapt resource value: 0x7f0c018a
- public const int TextAppearance_Compat_Notification_Time = 2131493258;
-
- // aapt resource value: 0x7f0c0167
- public const int TextAppearance_Compat_Notification_Time_Media = 2131493223;
-
- // aapt resource value: 0x7f0c018b
- public const int TextAppearance_Compat_Notification_Title = 2131493259;
-
- // aapt resource value: 0x7f0c0168
- public const int TextAppearance_Compat_Notification_Title_Media = 2131493224;
-
- // aapt resource value: 0x7f0c0171
- public const int TextAppearance_Design_CollapsingToolbar_Expanded = 2131493233;
-
- // aapt resource value: 0x7f0c0172
- public const int TextAppearance_Design_Counter = 2131493234;
-
- // aapt resource value: 0x7f0c0173
- public const int TextAppearance_Design_Counter_Overflow = 2131493235;
-
- // aapt resource value: 0x7f0c0174
- public const int TextAppearance_Design_Error = 2131493236;
-
- // aapt resource value: 0x7f0c0175
- public const int TextAppearance_Design_Hint = 2131493237;
-
- // aapt resource value: 0x7f0c0176
- public const int TextAppearance_Design_Snackbar_Message = 2131493238;
-
- // aapt resource value: 0x7f0c0177
- public const int TextAppearance_Design_Tab = 2131493239;
-
- // aapt resource value: 0x7f0c0000
- public const int TextAppearance_MediaRouter_PrimaryText = 2131492864;
-
- // aapt resource value: 0x7f0c0001
- public const int TextAppearance_MediaRouter_SecondaryText = 2131492865;
-
- // aapt resource value: 0x7f0c0002
- public const int TextAppearance_MediaRouter_Title = 2131492866;
-
- // aapt resource value: 0x7f0c0105
- public const int TextAppearance_Widget_AppCompat_ExpandedMenu_Item = 2131493125;
-
- // aapt resource value: 0x7f0c0106
- public const int TextAppearance_Widget_AppCompat_Toolbar_Subtitle = 2131493126;
-
- // aapt resource value: 0x7f0c0107
- public const int TextAppearance_Widget_AppCompat_Toolbar_Title = 2131493127;
-
- // aapt resource value: 0x7f0c0108
- public const int Theme_AppCompat = 2131493128;
-
- // aapt resource value: 0x7f0c0109
- public const int Theme_AppCompat_CompactMenu = 2131493129;
-
- // aapt resource value: 0x7f0c0013
- public const int Theme_AppCompat_DayNight = 2131492883;
-
- // aapt resource value: 0x7f0c0014
- public const int Theme_AppCompat_DayNight_DarkActionBar = 2131492884;
-
- // aapt resource value: 0x7f0c0015
- public const int Theme_AppCompat_DayNight_Dialog = 2131492885;
-
- // aapt resource value: 0x7f0c0016
- public const int Theme_AppCompat_DayNight_Dialog_Alert = 2131492886;
-
- // aapt resource value: 0x7f0c0017
- public const int Theme_AppCompat_DayNight_Dialog_MinWidth = 2131492887;
-
- // aapt resource value: 0x7f0c0018
- public const int Theme_AppCompat_DayNight_DialogWhenLarge = 2131492888;
-
- // aapt resource value: 0x7f0c0019
- public const int Theme_AppCompat_DayNight_NoActionBar = 2131492889;
-
- // aapt resource value: 0x7f0c010a
- public const int Theme_AppCompat_Dialog = 2131493130;
-
- // aapt resource value: 0x7f0c010b
- public const int Theme_AppCompat_Dialog_Alert = 2131493131;
-
- // aapt resource value: 0x7f0c010c
- public const int Theme_AppCompat_Dialog_MinWidth = 2131493132;
-
- // aapt resource value: 0x7f0c010d
- public const int Theme_AppCompat_DialogWhenLarge = 2131493133;
-
- // aapt resource value: 0x7f0c010e
- public const int Theme_AppCompat_Light = 2131493134;
-
- // aapt resource value: 0x7f0c010f
- public const int Theme_AppCompat_Light_DarkActionBar = 2131493135;
-
- // aapt resource value: 0x7f0c0110
- public const int Theme_AppCompat_Light_Dialog = 2131493136;
-
- // aapt resource value: 0x7f0c0111
- public const int Theme_AppCompat_Light_Dialog_Alert = 2131493137;
-
- // aapt resource value: 0x7f0c0112
- public const int Theme_AppCompat_Light_Dialog_MinWidth = 2131493138;
-
- // aapt resource value: 0x7f0c0113
- public const int Theme_AppCompat_Light_DialogWhenLarge = 2131493139;
-
- // aapt resource value: 0x7f0c0114
- public const int Theme_AppCompat_Light_NoActionBar = 2131493140;
-
- // aapt resource value: 0x7f0c0115
- public const int Theme_AppCompat_NoActionBar = 2131493141;
-
- // aapt resource value: 0x7f0c0178
- public const int Theme_Design = 2131493240;
-
- // aapt resource value: 0x7f0c0179
- public const int Theme_Design_BottomSheetDialog = 2131493241;
-
- // aapt resource value: 0x7f0c017a
- public const int Theme_Design_Light = 2131493242;
-
- // aapt resource value: 0x7f0c017b
- public const int Theme_Design_Light_BottomSheetDialog = 2131493243;
-
- // aapt resource value: 0x7f0c017c
- public const int Theme_Design_Light_NoActionBar = 2131493244;
-
- // aapt resource value: 0x7f0c017d
- public const int Theme_Design_NoActionBar = 2131493245;
-
- // aapt resource value: 0x7f0c0003
- public const int Theme_MediaRouter = 2131492867;
-
- // aapt resource value: 0x7f0c0004
- public const int Theme_MediaRouter_Light = 2131492868;
-
- // aapt resource value: 0x7f0c0005
- public const int Theme_MediaRouter_Light_DarkControlPanel = 2131492869;
-
- // aapt resource value: 0x7f0c0006
- public const int Theme_MediaRouter_LightControlPanel = 2131492870;
-
- // aapt resource value: 0x7f0c0116
- public const int ThemeOverlay_AppCompat = 2131493142;
-
- // aapt resource value: 0x7f0c0117
- public const int ThemeOverlay_AppCompat_ActionBar = 2131493143;
-
- // aapt resource value: 0x7f0c0118
- public const int ThemeOverlay_AppCompat_Dark = 2131493144;
-
- // aapt resource value: 0x7f0c0119
- public const int ThemeOverlay_AppCompat_Dark_ActionBar = 2131493145;
-
- // aapt resource value: 0x7f0c011a
- public const int ThemeOverlay_AppCompat_Dialog = 2131493146;
-
- // aapt resource value: 0x7f0c011b
- public const int ThemeOverlay_AppCompat_Dialog_Alert = 2131493147;
-
- // aapt resource value: 0x7f0c011c
- public const int ThemeOverlay_AppCompat_Light = 2131493148;
-
- // aapt resource value: 0x7f0c0007
- public const int ThemeOverlay_MediaRouter_Dark = 2131492871;
-
- // aapt resource value: 0x7f0c0008
- public const int ThemeOverlay_MediaRouter_Light = 2131492872;
-
- // aapt resource value: 0x7f0c011d
- public const int Widget_AppCompat_ActionBar = 2131493149;
-
- // aapt resource value: 0x7f0c011e
- public const int Widget_AppCompat_ActionBar_Solid = 2131493150;
-
- // aapt resource value: 0x7f0c011f
- public const int Widget_AppCompat_ActionBar_TabBar = 2131493151;
-
- // aapt resource value: 0x7f0c0120
- public const int Widget_AppCompat_ActionBar_TabText = 2131493152;
-
- // aapt resource value: 0x7f0c0121
- public const int Widget_AppCompat_ActionBar_TabView = 2131493153;
-
- // aapt resource value: 0x7f0c0122
- public const int Widget_AppCompat_ActionButton = 2131493154;
-
- // aapt resource value: 0x7f0c0123
- public const int Widget_AppCompat_ActionButton_CloseMode = 2131493155;
-
- // aapt resource value: 0x7f0c0124
- public const int Widget_AppCompat_ActionButton_Overflow = 2131493156;
-
- // aapt resource value: 0x7f0c0125
- public const int Widget_AppCompat_ActionMode = 2131493157;
-
- // aapt resource value: 0x7f0c0126
- public const int Widget_AppCompat_ActivityChooserView = 2131493158;
-
- // aapt resource value: 0x7f0c0127
- public const int Widget_AppCompat_AutoCompleteTextView = 2131493159;
-
- // aapt resource value: 0x7f0c0128
- public const int Widget_AppCompat_Button = 2131493160;
-
- // aapt resource value: 0x7f0c0129
- public const int Widget_AppCompat_Button_Borderless = 2131493161;
-
- // aapt resource value: 0x7f0c012a
- public const int Widget_AppCompat_Button_Borderless_Colored = 2131493162;
-
- // aapt resource value: 0x7f0c012b
- public const int Widget_AppCompat_Button_ButtonBar_AlertDialog = 2131493163;
-
- // aapt resource value: 0x7f0c012c
- public const int Widget_AppCompat_Button_Colored = 2131493164;
-
- // aapt resource value: 0x7f0c012d
- public const int Widget_AppCompat_Button_Small = 2131493165;
-
- // aapt resource value: 0x7f0c012e
- public const int Widget_AppCompat_ButtonBar = 2131493166;
-
- // aapt resource value: 0x7f0c012f
- public const int Widget_AppCompat_ButtonBar_AlertDialog = 2131493167;
-
- // aapt resource value: 0x7f0c0130
- public const int Widget_AppCompat_CompoundButton_CheckBox = 2131493168;
-
- // aapt resource value: 0x7f0c0131
- public const int Widget_AppCompat_CompoundButton_RadioButton = 2131493169;
-
- // aapt resource value: 0x7f0c0132
- public const int Widget_AppCompat_CompoundButton_Switch = 2131493170;
-
- // aapt resource value: 0x7f0c0133
- public const int Widget_AppCompat_DrawerArrowToggle = 2131493171;
-
- // aapt resource value: 0x7f0c0134
- public const int Widget_AppCompat_DropDownItem_Spinner = 2131493172;
-
- // aapt resource value: 0x7f0c0135
- public const int Widget_AppCompat_EditText = 2131493173;
-
- // aapt resource value: 0x7f0c0136
- public const int Widget_AppCompat_ImageButton = 2131493174;
-
- // aapt resource value: 0x7f0c0137
- public const int Widget_AppCompat_Light_ActionBar = 2131493175;
-
- // aapt resource value: 0x7f0c0138
- public const int Widget_AppCompat_Light_ActionBar_Solid = 2131493176;
-
- // aapt resource value: 0x7f0c0139
- public const int Widget_AppCompat_Light_ActionBar_Solid_Inverse = 2131493177;
-
- // aapt resource value: 0x7f0c013a
- public const int Widget_AppCompat_Light_ActionBar_TabBar = 2131493178;
-
- // aapt resource value: 0x7f0c013b
- public const int Widget_AppCompat_Light_ActionBar_TabBar_Inverse = 2131493179;
-
- // aapt resource value: 0x7f0c013c
- public const int Widget_AppCompat_Light_ActionBar_TabText = 2131493180;
-
- // aapt resource value: 0x7f0c013d
- public const int Widget_AppCompat_Light_ActionBar_TabText_Inverse = 2131493181;
-
- // aapt resource value: 0x7f0c013e
- public const int Widget_AppCompat_Light_ActionBar_TabView = 2131493182;
-
- // aapt resource value: 0x7f0c013f
- public const int Widget_AppCompat_Light_ActionBar_TabView_Inverse = 2131493183;
-
- // aapt resource value: 0x7f0c0140
- public const int Widget_AppCompat_Light_ActionButton = 2131493184;
-
- // aapt resource value: 0x7f0c0141
- public const int Widget_AppCompat_Light_ActionButton_CloseMode = 2131493185;
-
- // aapt resource value: 0x7f0c0142
- public const int Widget_AppCompat_Light_ActionButton_Overflow = 2131493186;
-
- // aapt resource value: 0x7f0c0143
- public const int Widget_AppCompat_Light_ActionMode_Inverse = 2131493187;
-
- // aapt resource value: 0x7f0c0144
- public const int Widget_AppCompat_Light_ActivityChooserView = 2131493188;
-
- // aapt resource value: 0x7f0c0145
- public const int Widget_AppCompat_Light_AutoCompleteTextView = 2131493189;
-
- // aapt resource value: 0x7f0c0146
- public const int Widget_AppCompat_Light_DropDownItem_Spinner = 2131493190;
-
- // aapt resource value: 0x7f0c0147
- public const int Widget_AppCompat_Light_ListPopupWindow = 2131493191;
-
- // aapt resource value: 0x7f0c0148
- public const int Widget_AppCompat_Light_ListView_DropDown = 2131493192;
-
- // aapt resource value: 0x7f0c0149
- public const int Widget_AppCompat_Light_PopupMenu = 2131493193;
-
- // aapt resource value: 0x7f0c014a
- public const int Widget_AppCompat_Light_PopupMenu_Overflow = 2131493194;
-
- // aapt resource value: 0x7f0c014b
- public const int Widget_AppCompat_Light_SearchView = 2131493195;
-
- // aapt resource value: 0x7f0c014c
- public const int Widget_AppCompat_Light_Spinner_DropDown_ActionBar = 2131493196;
-
- // aapt resource value: 0x7f0c014d
- public const int Widget_AppCompat_ListMenuView = 2131493197;
-
- // aapt resource value: 0x7f0c014e
- public const int Widget_AppCompat_ListPopupWindow = 2131493198;
-
- // aapt resource value: 0x7f0c014f
- public const int Widget_AppCompat_ListView = 2131493199;
-
- // aapt resource value: 0x7f0c0150
- public const int Widget_AppCompat_ListView_DropDown = 2131493200;
-
- // aapt resource value: 0x7f0c0151
- public const int Widget_AppCompat_ListView_Menu = 2131493201;
-
- // aapt resource value: 0x7f0c0152
- public const int Widget_AppCompat_PopupMenu = 2131493202;
-
- // aapt resource value: 0x7f0c0153
- public const int Widget_AppCompat_PopupMenu_Overflow = 2131493203;
-
- // aapt resource value: 0x7f0c0154
- public const int Widget_AppCompat_PopupWindow = 2131493204;
-
- // aapt resource value: 0x7f0c0155
- public const int Widget_AppCompat_ProgressBar = 2131493205;
-
- // aapt resource value: 0x7f0c0156
- public const int Widget_AppCompat_ProgressBar_Horizontal = 2131493206;
-
- // aapt resource value: 0x7f0c0157
- public const int Widget_AppCompat_RatingBar = 2131493207;
-
- // aapt resource value: 0x7f0c0158
- public const int Widget_AppCompat_RatingBar_Indicator = 2131493208;
-
- // aapt resource value: 0x7f0c0159
- public const int Widget_AppCompat_RatingBar_Small = 2131493209;
-
- // aapt resource value: 0x7f0c015a
- public const int Widget_AppCompat_SearchView = 2131493210;
-
- // aapt resource value: 0x7f0c015b
- public const int Widget_AppCompat_SearchView_ActionBar = 2131493211;
-
- // aapt resource value: 0x7f0c015c
- public const int Widget_AppCompat_SeekBar = 2131493212;
-
- // aapt resource value: 0x7f0c015d
- public const int Widget_AppCompat_SeekBar_Discrete = 2131493213;
-
- // aapt resource value: 0x7f0c015e
- public const int Widget_AppCompat_Spinner = 2131493214;
-
- // aapt resource value: 0x7f0c015f
- public const int Widget_AppCompat_Spinner_DropDown = 2131493215;
-
- // aapt resource value: 0x7f0c0160
- public const int Widget_AppCompat_Spinner_DropDown_ActionBar = 2131493216;
-
- // aapt resource value: 0x7f0c0161
- public const int Widget_AppCompat_Spinner_Underlined = 2131493217;
-
- // aapt resource value: 0x7f0c0162
- public const int Widget_AppCompat_TextView_SpinnerItem = 2131493218;
-
- // aapt resource value: 0x7f0c0163
- public const int Widget_AppCompat_Toolbar = 2131493219;
-
- // aapt resource value: 0x7f0c0164
- public const int Widget_AppCompat_Toolbar_Button_Navigation = 2131493220;
-
- // aapt resource value: 0x7f0c018c
- public const int Widget_Compat_NotificationActionContainer = 2131493260;
-
- // aapt resource value: 0x7f0c018d
- public const int Widget_Compat_NotificationActionText = 2131493261;
-
- // aapt resource value: 0x7f0c017e
- public const int Widget_Design_AppBarLayout = 2131493246;
-
- // aapt resource value: 0x7f0c017f
- public const int Widget_Design_BottomNavigationView = 2131493247;
-
- // aapt resource value: 0x7f0c0180
- public const int Widget_Design_BottomSheet_Modal = 2131493248;
-
- // aapt resource value: 0x7f0c0181
- public const int Widget_Design_CollapsingToolbar = 2131493249;
-
- // aapt resource value: 0x7f0c0182
- public const int Widget_Design_CoordinatorLayout = 2131493250;
-
- // aapt resource value: 0x7f0c0183
- public const int Widget_Design_FloatingActionButton = 2131493251;
-
- // aapt resource value: 0x7f0c0184
- public const int Widget_Design_NavigationView = 2131493252;
-
- // aapt resource value: 0x7f0c0185
- public const int Widget_Design_ScrimInsetsFrameLayout = 2131493253;
-
- // aapt resource value: 0x7f0c0186
- public const int Widget_Design_Snackbar = 2131493254;
-
- // aapt resource value: 0x7f0c016a
- public const int Widget_Design_TabLayout = 2131493226;
-
- // aapt resource value: 0x7f0c0187
- public const int Widget_Design_TextInputLayout = 2131493255;
-
- // aapt resource value: 0x7f0c0009
- public const int Widget_MediaRouter_Light_MediaRouteButton = 2131492873;
-
- // aapt resource value: 0x7f0c000a
- public const int Widget_MediaRouter_MediaRouteButton = 2131492874;
-
- static Style()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Style()
- {
- }
- }
-
- public partial class Styleable
- {
-
- public static int[] ActionBar = new int[] {
- 2130772003,
- 2130772005,
- 2130772006,
- 2130772007,
- 2130772008,
- 2130772009,
- 2130772010,
- 2130772011,
- 2130772012,
- 2130772013,
- 2130772014,
- 2130772015,
- 2130772016,
- 2130772017,
- 2130772018,
- 2130772019,
- 2130772020,
- 2130772021,
- 2130772022,
- 2130772023,
- 2130772024,
- 2130772025,
- 2130772026,
- 2130772027,
- 2130772028,
- 2130772029,
- 2130772030,
- 2130772031,
- 2130772101};
-
- // aapt resource value: 10
- public const int ActionBar_background = 10;
-
- // aapt resource value: 12
- public const int ActionBar_backgroundSplit = 12;
-
- // aapt resource value: 11
- public const int ActionBar_backgroundStacked = 11;
-
- // aapt resource value: 21
- public const int ActionBar_contentInsetEnd = 21;
-
- // aapt resource value: 25
- public const int ActionBar_contentInsetEndWithActions = 25;
-
- // aapt resource value: 22
- public const int ActionBar_contentInsetLeft = 22;
-
- // aapt resource value: 23
- public const int ActionBar_contentInsetRight = 23;
-
- // aapt resource value: 20
- public const int ActionBar_contentInsetStart = 20;
-
- // aapt resource value: 24
- public const int ActionBar_contentInsetStartWithNavigation = 24;
-
- // aapt resource value: 13
- public const int ActionBar_customNavigationLayout = 13;
-
- // aapt resource value: 3
- public const int ActionBar_displayOptions = 3;
-
- // aapt resource value: 9
- public const int ActionBar_divider = 9;
-
- // aapt resource value: 26
- public const int ActionBar_elevation = 26;
-
- // aapt resource value: 0
- public const int ActionBar_height = 0;
-
- // aapt resource value: 19
- public const int ActionBar_hideOnContentScroll = 19;
-
- // aapt resource value: 28
- public const int ActionBar_homeAsUpIndicator = 28;
-
- // aapt resource value: 14
- public const int ActionBar_homeLayout = 14;
-
- // aapt resource value: 7
- public const int ActionBar_icon = 7;
-
- // aapt resource value: 16
- public const int ActionBar_indeterminateProgressStyle = 16;
-
- // aapt resource value: 18
- public const int ActionBar_itemPadding = 18;
-
- // aapt resource value: 8
- public const int ActionBar_logo = 8;
-
- // aapt resource value: 2
- public const int ActionBar_navigationMode = 2;
-
- // aapt resource value: 27
- public const int ActionBar_popupTheme = 27;
-
- // aapt resource value: 17
- public const int ActionBar_progressBarPadding = 17;
-
- // aapt resource value: 15
- public const int ActionBar_progressBarStyle = 15;
-
- // aapt resource value: 4
- public const int ActionBar_subtitle = 4;
-
- // aapt resource value: 6
- public const int ActionBar_subtitleTextStyle = 6;
-
- // aapt resource value: 1
- public const int ActionBar_title = 1;
-
- // aapt resource value: 5
- public const int ActionBar_titleTextStyle = 5;
-
- public static int[] ActionBarLayout = new int[] {
- 16842931};
-
- // aapt resource value: 0
- public const int ActionBarLayout_android_layout_gravity = 0;
-
- public static int[] ActionMenuItemView = new int[] {
- 16843071};
-
- // aapt resource value: 0
- public const int ActionMenuItemView_android_minWidth = 0;
-
- public static int[] ActionMenuView;
-
- public static int[] ActionMode = new int[] {
- 2130772003,
- 2130772009,
- 2130772010,
- 2130772014,
- 2130772016,
- 2130772032};
-
- // aapt resource value: 3
- public const int ActionMode_background = 3;
-
- // aapt resource value: 4
- public const int ActionMode_backgroundSplit = 4;
-
- // aapt resource value: 5
- public const int ActionMode_closeItemLayout = 5;
-
- // aapt resource value: 0
- public const int ActionMode_height = 0;
-
- // aapt resource value: 2
- public const int ActionMode_subtitleTextStyle = 2;
-
- // aapt resource value: 1
- public const int ActionMode_titleTextStyle = 1;
-
- public static int[] ActivityChooserView = new int[] {
- 2130772033,
- 2130772034};
-
- // aapt resource value: 1
- public const int ActivityChooserView_expandActivityOverflowButtonDrawable = 1;
-
- // aapt resource value: 0
- public const int ActivityChooserView_initialActivityCount = 0;
-
- public static int[] AlertDialog = new int[] {
- 16842994,
- 2130772035,
- 2130772036,
- 2130772037,
- 2130772038,
- 2130772039,
- 2130772040};
-
- // aapt resource value: 0
- public const int AlertDialog_android_layout = 0;
-
- // aapt resource value: 1
- public const int AlertDialog_buttonPanelSideLayout = 1;
-
- // aapt resource value: 5
- public const int AlertDialog_listItemLayout = 5;
-
- // aapt resource value: 2
- public const int AlertDialog_listLayout = 2;
-
- // aapt resource value: 3
- public const int AlertDialog_multiChoiceItemLayout = 3;
-
- // aapt resource value: 6
- public const int AlertDialog_showTitle = 6;
-
- // aapt resource value: 4
- public const int AlertDialog_singleChoiceItemLayout = 4;
-
- public static int[] AppBarLayout = new int[] {
- 16842964,
- 16843919,
- 16844096,
- 2130772030,
- 2130772248};
-
- // aapt resource value: 0
- public const int AppBarLayout_android_background = 0;
-
- // aapt resource value: 2
- public const int AppBarLayout_android_keyboardNavigationCluster = 2;
-
- // aapt resource value: 1
- public const int AppBarLayout_android_touchscreenBlocksFocus = 1;
-
- // aapt resource value: 3
- public const int AppBarLayout_elevation = 3;
-
- // aapt resource value: 4
- public const int AppBarLayout_expanded = 4;
-
- public static int[] AppBarLayoutStates = new int[] {
- 2130772249,
- 2130772250};
-
- // aapt resource value: 0
- public const int AppBarLayoutStates_state_collapsed = 0;
-
- // aapt resource value: 1
- public const int AppBarLayoutStates_state_collapsible = 1;
-
- public static int[] AppBarLayout_Layout = new int[] {
- 2130772251,
- 2130772252};
-
- // aapt resource value: 0
- public const int AppBarLayout_Layout_layout_scrollFlags = 0;
-
- // aapt resource value: 1
- public const int AppBarLayout_Layout_layout_scrollInterpolator = 1;
-
- public static int[] AppCompatImageView = new int[] {
- 16843033,
- 2130772041,
- 2130772042,
- 2130772043};
-
- // aapt resource value: 0
- public const int AppCompatImageView_android_src = 0;
-
- // aapt resource value: 1
- public const int AppCompatImageView_srcCompat = 1;
-
- // aapt resource value: 2
- public const int AppCompatImageView_tint = 2;
-
- // aapt resource value: 3
- public const int AppCompatImageView_tintMode = 3;
-
- public static int[] AppCompatSeekBar = new int[] {
- 16843074,
- 2130772044,
- 2130772045,
- 2130772046};
-
- // aapt resource value: 0
- public const int AppCompatSeekBar_android_thumb = 0;
-
- // aapt resource value: 1
- public const int AppCompatSeekBar_tickMark = 1;
-
- // aapt resource value: 2
- public const int AppCompatSeekBar_tickMarkTint = 2;
-
- // aapt resource value: 3
- public const int AppCompatSeekBar_tickMarkTintMode = 3;
-
- public static int[] AppCompatTextHelper = new int[] {
- 16842804,
- 16843117,
- 16843118,
- 16843119,
- 16843120,
- 16843666,
- 16843667};
-
- // aapt resource value: 2
- public const int AppCompatTextHelper_android_drawableBottom = 2;
-
- // aapt resource value: 6
- public const int AppCompatTextHelper_android_drawableEnd = 6;
-
- // aapt resource value: 3
- public const int AppCompatTextHelper_android_drawableLeft = 3;
-
- // aapt resource value: 4
- public const int AppCompatTextHelper_android_drawableRight = 4;
-
- // aapt resource value: 5
- public const int AppCompatTextHelper_android_drawableStart = 5;
-
- // aapt resource value: 1
- public const int AppCompatTextHelper_android_drawableTop = 1;
-
- // aapt resource value: 0
- public const int AppCompatTextHelper_android_textAppearance = 0;
-
- public static int[] AppCompatTextView = new int[] {
- 16842804,
- 2130772047,
- 2130772048,
- 2130772049,
- 2130772050,
- 2130772051,
- 2130772052,
- 2130772053};
-
- // aapt resource value: 0
- public const int AppCompatTextView_android_textAppearance = 0;
-
- // aapt resource value: 6
- public const int AppCompatTextView_autoSizeMaxTextSize = 6;
-
- // aapt resource value: 5
- public const int AppCompatTextView_autoSizeMinTextSize = 5;
-
- // aapt resource value: 4
- public const int AppCompatTextView_autoSizePresetSizes = 4;
-
- // aapt resource value: 3
- public const int AppCompatTextView_autoSizeStepGranularity = 3;
-
- // aapt resource value: 2
- public const int AppCompatTextView_autoSizeTextType = 2;
-
- // aapt resource value: 7
- public const int AppCompatTextView_fontFamily = 7;
-
- // aapt resource value: 1
- public const int AppCompatTextView_textAllCaps = 1;
-
- public static int[] AppCompatTheme = new int[] {
- 16842839,
- 16842926,
- 2130772054,
- 2130772055,
- 2130772056,
- 2130772057,
- 2130772058,
- 2130772059,
- 2130772060,
- 2130772061,
- 2130772062,
- 2130772063,
- 2130772064,
- 2130772065,
- 2130772066,
- 2130772067,
- 2130772068,
- 2130772069,
- 2130772070,
- 2130772071,
- 2130772072,
- 2130772073,
- 2130772074,
- 2130772075,
- 2130772076,
- 2130772077,
- 2130772078,
- 2130772079,
- 2130772080,
- 2130772081,
- 2130772082,
- 2130772083,
- 2130772084,
- 2130772085,
- 2130772086,
- 2130772087,
- 2130772088,
- 2130772089,
- 2130772090,
- 2130772091,
- 2130772092,
- 2130772093,
- 2130772094,
- 2130772095,
- 2130772096,
- 2130772097,
- 2130772098,
- 2130772099,
- 2130772100,
- 2130772101,
- 2130772102,
- 2130772103,
- 2130772104,
- 2130772105,
- 2130772106,
- 2130772107,
- 2130772108,
- 2130772109,
- 2130772110,
- 2130772111,
- 2130772112,
- 2130772113,
- 2130772114,
- 2130772115,
- 2130772116,
- 2130772117,
- 2130772118,
- 2130772119,
- 2130772120,
- 2130772121,
- 2130772122,
- 2130772123,
- 2130772124,
- 2130772125,
- 2130772126,
- 2130772127,
- 2130772128,
- 2130772129,
- 2130772130,
- 2130772131,
- 2130772132,
- 2130772133,
- 2130772134,
- 2130772135,
- 2130772136,
- 2130772137,
- 2130772138,
- 2130772139,
- 2130772140,
- 2130772141,
- 2130772142,
- 2130772143,
- 2130772144,
- 2130772145,
- 2130772146,
- 2130772147,
- 2130772148,
- 2130772149,
- 2130772150,
- 2130772151,
- 2130772152,
- 2130772153,
- 2130772154,
- 2130772155,
- 2130772156,
- 2130772157,
- 2130772158,
- 2130772159,
- 2130772160,
- 2130772161,
- 2130772162,
- 2130772163,
- 2130772164,
- 2130772165,
- 2130772166,
- 2130772167,
- 2130772168,
- 2130772169,
- 2130772170};
-
- // aapt resource value: 23
- public const int AppCompatTheme_actionBarDivider = 23;
-
- // aapt resource value: 24
- public const int AppCompatTheme_actionBarItemBackground = 24;
-
- // aapt resource value: 17
- public const int AppCompatTheme_actionBarPopupTheme = 17;
-
- // aapt resource value: 22
- public const int AppCompatTheme_actionBarSize = 22;
-
- // aapt resource value: 19
- public const int AppCompatTheme_actionBarSplitStyle = 19;
-
- // aapt resource value: 18
- public const int AppCompatTheme_actionBarStyle = 18;
-
- // aapt resource value: 13
- public const int AppCompatTheme_actionBarTabBarStyle = 13;
-
- // aapt resource value: 12
- public const int AppCompatTheme_actionBarTabStyle = 12;
-
- // aapt resource value: 14
- public const int AppCompatTheme_actionBarTabTextStyle = 14;
-
- // aapt resource value: 20
- public const int AppCompatTheme_actionBarTheme = 20;
-
- // aapt resource value: 21
- public const int AppCompatTheme_actionBarWidgetTheme = 21;
-
- // aapt resource value: 50
- public const int AppCompatTheme_actionButtonStyle = 50;
-
- // aapt resource value: 46
- public const int AppCompatTheme_actionDropDownStyle = 46;
-
- // aapt resource value: 25
- public const int AppCompatTheme_actionMenuTextAppearance = 25;
-
- // aapt resource value: 26
- public const int AppCompatTheme_actionMenuTextColor = 26;
-
- // aapt resource value: 29
- public const int AppCompatTheme_actionModeBackground = 29;
-
- // aapt resource value: 28
- public const int AppCompatTheme_actionModeCloseButtonStyle = 28;
-
- // aapt resource value: 31
- public const int AppCompatTheme_actionModeCloseDrawable = 31;
-
- // aapt resource value: 33
- public const int AppCompatTheme_actionModeCopyDrawable = 33;
-
- // aapt resource value: 32
- public const int AppCompatTheme_actionModeCutDrawable = 32;
-
- // aapt resource value: 37
- public const int AppCompatTheme_actionModeFindDrawable = 37;
-
- // aapt resource value: 34
- public const int AppCompatTheme_actionModePasteDrawable = 34;
-
- // aapt resource value: 39
- public const int AppCompatTheme_actionModePopupWindowStyle = 39;
-
- // aapt resource value: 35
- public const int AppCompatTheme_actionModeSelectAllDrawable = 35;
-
- // aapt resource value: 36
- public const int AppCompatTheme_actionModeShareDrawable = 36;
-
- // aapt resource value: 30
- public const int AppCompatTheme_actionModeSplitBackground = 30;
-
- // aapt resource value: 27
- public const int AppCompatTheme_actionModeStyle = 27;
-
- // aapt resource value: 38
- public const int AppCompatTheme_actionModeWebSearchDrawable = 38;
-
- // aapt resource value: 15
- public const int AppCompatTheme_actionOverflowButtonStyle = 15;
-
- // aapt resource value: 16
- public const int AppCompatTheme_actionOverflowMenuStyle = 16;
-
- // aapt resource value: 58
- public const int AppCompatTheme_activityChooserViewStyle = 58;
-
- // aapt resource value: 95
- public const int AppCompatTheme_alertDialogButtonGroupStyle = 95;
-
- // aapt resource value: 96
- public const int AppCompatTheme_alertDialogCenterButtons = 96;
-
- // aapt resource value: 94
- public const int AppCompatTheme_alertDialogStyle = 94;
-
- // aapt resource value: 97
- public const int AppCompatTheme_alertDialogTheme = 97;
-
- // aapt resource value: 1
- public const int AppCompatTheme_android_windowAnimationStyle = 1;
-
- // aapt resource value: 0
- public const int AppCompatTheme_android_windowIsFloating = 0;
-
- // aapt resource value: 102
- public const int AppCompatTheme_autoCompleteTextViewStyle = 102;
-
- // aapt resource value: 55
- public const int AppCompatTheme_borderlessButtonStyle = 55;
-
- // aapt resource value: 52
- public const int AppCompatTheme_buttonBarButtonStyle = 52;
-
- // aapt resource value: 100
- public const int AppCompatTheme_buttonBarNegativeButtonStyle = 100;
-
- // aapt resource value: 101
- public const int AppCompatTheme_buttonBarNeutralButtonStyle = 101;
-
- // aapt resource value: 99
- public const int AppCompatTheme_buttonBarPositiveButtonStyle = 99;
-
- // aapt resource value: 51
- public const int AppCompatTheme_buttonBarStyle = 51;
-
- // aapt resource value: 103
- public const int AppCompatTheme_buttonStyle = 103;
-
- // aapt resource value: 104
- public const int AppCompatTheme_buttonStyleSmall = 104;
-
- // aapt resource value: 105
- public const int AppCompatTheme_checkboxStyle = 105;
-
- // aapt resource value: 106
- public const int AppCompatTheme_checkedTextViewStyle = 106;
-
- // aapt resource value: 86
- public const int AppCompatTheme_colorAccent = 86;
-
- // aapt resource value: 93
- public const int AppCompatTheme_colorBackgroundFloating = 93;
-
- // aapt resource value: 90
- public const int AppCompatTheme_colorButtonNormal = 90;
-
- // aapt resource value: 88
- public const int AppCompatTheme_colorControlActivated = 88;
-
- // aapt resource value: 89
- public const int AppCompatTheme_colorControlHighlight = 89;
-
- // aapt resource value: 87
- public const int AppCompatTheme_colorControlNormal = 87;
-
- // aapt resource value: 118
- public const int AppCompatTheme_colorError = 118;
-
- // aapt resource value: 84
- public const int AppCompatTheme_colorPrimary = 84;
-
- // aapt resource value: 85
- public const int AppCompatTheme_colorPrimaryDark = 85;
-
- // aapt resource value: 91
- public const int AppCompatTheme_colorSwitchThumbNormal = 91;
-
- // aapt resource value: 92
- public const int AppCompatTheme_controlBackground = 92;
-
- // aapt resource value: 44
- public const int AppCompatTheme_dialogPreferredPadding = 44;
-
- // aapt resource value: 43
- public const int AppCompatTheme_dialogTheme = 43;
-
- // aapt resource value: 57
- public const int AppCompatTheme_dividerHorizontal = 57;
-
- // aapt resource value: 56
- public const int AppCompatTheme_dividerVertical = 56;
-
- // aapt resource value: 75
- public const int AppCompatTheme_dropDownListViewStyle = 75;
-
- // aapt resource value: 47
- public const int AppCompatTheme_dropdownListPreferredItemHeight = 47;
-
- // aapt resource value: 64
- public const int AppCompatTheme_editTextBackground = 64;
-
- // aapt resource value: 63
- public const int AppCompatTheme_editTextColor = 63;
-
- // aapt resource value: 107
- public const int AppCompatTheme_editTextStyle = 107;
-
- // aapt resource value: 49
- public const int AppCompatTheme_homeAsUpIndicator = 49;
-
- // aapt resource value: 65
- public const int AppCompatTheme_imageButtonStyle = 65;
-
- // aapt resource value: 83
- public const int AppCompatTheme_listChoiceBackgroundIndicator = 83;
-
- // aapt resource value: 45
- public const int AppCompatTheme_listDividerAlertDialog = 45;
-
- // aapt resource value: 115
- public const int AppCompatTheme_listMenuViewStyle = 115;
-
- // aapt resource value: 76
- public const int AppCompatTheme_listPopupWindowStyle = 76;
-
- // aapt resource value: 70
- public const int AppCompatTheme_listPreferredItemHeight = 70;
-
- // aapt resource value: 72
- public const int AppCompatTheme_listPreferredItemHeightLarge = 72;
-
- // aapt resource value: 71
- public const int AppCompatTheme_listPreferredItemHeightSmall = 71;
-
- // aapt resource value: 73
- public const int AppCompatTheme_listPreferredItemPaddingLeft = 73;
-
- // aapt resource value: 74
- public const int AppCompatTheme_listPreferredItemPaddingRight = 74;
-
- // aapt resource value: 80
- public const int AppCompatTheme_panelBackground = 80;
-
- // aapt resource value: 82
- public const int AppCompatTheme_panelMenuListTheme = 82;
-
- // aapt resource value: 81
- public const int AppCompatTheme_panelMenuListWidth = 81;
-
- // aapt resource value: 61
- public const int AppCompatTheme_popupMenuStyle = 61;
-
- // aapt resource value: 62
- public const int AppCompatTheme_popupWindowStyle = 62;
-
- // aapt resource value: 108
- public const int AppCompatTheme_radioButtonStyle = 108;
-
- // aapt resource value: 109
- public const int AppCompatTheme_ratingBarStyle = 109;
-
- // aapt resource value: 110
- public const int AppCompatTheme_ratingBarStyleIndicator = 110;
-
- // aapt resource value: 111
- public const int AppCompatTheme_ratingBarStyleSmall = 111;
-
- // aapt resource value: 69
- public const int AppCompatTheme_searchViewStyle = 69;
-
- // aapt resource value: 112
- public const int AppCompatTheme_seekBarStyle = 112;
-
- // aapt resource value: 53
- public const int AppCompatTheme_selectableItemBackground = 53;
-
- // aapt resource value: 54
- public const int AppCompatTheme_selectableItemBackgroundBorderless = 54;
-
- // aapt resource value: 48
- public const int AppCompatTheme_spinnerDropDownItemStyle = 48;
-
- // aapt resource value: 113
- public const int AppCompatTheme_spinnerStyle = 113;
-
- // aapt resource value: 114
- public const int AppCompatTheme_switchStyle = 114;
-
- // aapt resource value: 40
- public const int AppCompatTheme_textAppearanceLargePopupMenu = 40;
-
- // aapt resource value: 77
- public const int AppCompatTheme_textAppearanceListItem = 77;
-
- // aapt resource value: 78
- public const int AppCompatTheme_textAppearanceListItemSecondary = 78;
-
- // aapt resource value: 79
- public const int AppCompatTheme_textAppearanceListItemSmall = 79;
-
- // aapt resource value: 42
- public const int AppCompatTheme_textAppearancePopupMenuHeader = 42;
-
- // aapt resource value: 67
- public const int AppCompatTheme_textAppearanceSearchResultSubtitle = 67;
-
- // aapt resource value: 66
- public const int AppCompatTheme_textAppearanceSearchResultTitle = 66;
-
- // aapt resource value: 41
- public const int AppCompatTheme_textAppearanceSmallPopupMenu = 41;
-
- // aapt resource value: 98
- public const int AppCompatTheme_textColorAlertDialogListItem = 98;
-
- // aapt resource value: 68
- public const int AppCompatTheme_textColorSearchUrl = 68;
-
- // aapt resource value: 60
- public const int AppCompatTheme_toolbarNavigationButtonStyle = 60;
-
- // aapt resource value: 59
- public const int AppCompatTheme_toolbarStyle = 59;
-
- // aapt resource value: 117
- public const int AppCompatTheme_tooltipForegroundColor = 117;
-
- // aapt resource value: 116
- public const int AppCompatTheme_tooltipFrameBackground = 116;
-
- // aapt resource value: 2
- public const int AppCompatTheme_windowActionBar = 2;
-
- // aapt resource value: 4
- public const int AppCompatTheme_windowActionBarOverlay = 4;
-
- // aapt resource value: 5
- public const int AppCompatTheme_windowActionModeOverlay = 5;
-
- // aapt resource value: 9
- public const int AppCompatTheme_windowFixedHeightMajor = 9;
-
- // aapt resource value: 7
- public const int AppCompatTheme_windowFixedHeightMinor = 7;
-
- // aapt resource value: 6
- public const int AppCompatTheme_windowFixedWidthMajor = 6;
-
- // aapt resource value: 8
- public const int AppCompatTheme_windowFixedWidthMinor = 8;
-
- // aapt resource value: 10
- public const int AppCompatTheme_windowMinWidthMajor = 10;
-
- // aapt resource value: 11
- public const int AppCompatTheme_windowMinWidthMinor = 11;
-
- // aapt resource value: 3
- public const int AppCompatTheme_windowNoTitle = 3;
-
- public static int[] BottomNavigationView = new int[] {
- 2130772030,
- 2130772291,
- 2130772292,
- 2130772293,
- 2130772294};
-
- // aapt resource value: 0
- public const int BottomNavigationView_elevation = 0;
-
- // aapt resource value: 4
- public const int BottomNavigationView_itemBackground = 4;
-
- // aapt resource value: 2
- public const int BottomNavigationView_itemIconTint = 2;
-
- // aapt resource value: 3
- public const int BottomNavigationView_itemTextColor = 3;
-
- // aapt resource value: 1
- public const int BottomNavigationView_menu = 1;
-
- public static int[] BottomSheetBehavior_Layout = new int[] {
- 2130772253,
- 2130772254,
- 2130772255};
-
- // aapt resource value: 1
- public const int BottomSheetBehavior_Layout_behavior_hideable = 1;
-
- // aapt resource value: 0
- public const int BottomSheetBehavior_Layout_behavior_peekHeight = 0;
-
- // aapt resource value: 2
- public const int BottomSheetBehavior_Layout_behavior_skipCollapsed = 2;
-
- public static int[] ButtonBarLayout = new int[] {
- 2130772171};
-
- // aapt resource value: 0
- public const int ButtonBarLayout_allowStacking = 0;
-
- public static int[] CardView = new int[] {
- 16843071,
- 16843072,
- 2130771991,
- 2130771992,
- 2130771993,
- 2130771994,
- 2130771995,
- 2130771996,
- 2130771997,
- 2130771998,
- 2130771999,
- 2130772000,
- 2130772001};
-
- // aapt resource value: 1
- public const int CardView_android_minHeight = 1;
-
- // aapt resource value: 0
- public const int CardView_android_minWidth = 0;
-
- // aapt resource value: 2
- public const int CardView_cardBackgroundColor = 2;
-
- // aapt resource value: 3
- public const int CardView_cardCornerRadius = 3;
-
- // aapt resource value: 4
- public const int CardView_cardElevation = 4;
-
- // aapt resource value: 5
- public const int CardView_cardMaxElevation = 5;
-
- // aapt resource value: 7
- public const int CardView_cardPreventCornerOverlap = 7;
-
- // aapt resource value: 6
- public const int CardView_cardUseCompatPadding = 6;
-
- // aapt resource value: 8
- public const int CardView_contentPadding = 8;
-
- // aapt resource value: 12
- public const int CardView_contentPaddingBottom = 12;
-
- // aapt resource value: 9
- public const int CardView_contentPaddingLeft = 9;
-
- // aapt resource value: 10
- public const int CardView_contentPaddingRight = 10;
-
- // aapt resource value: 11
- public const int CardView_contentPaddingTop = 11;
-
- public static int[] CollapsingToolbarLayout = new int[] {
- 2130772005,
- 2130772256,
- 2130772257,
- 2130772258,
- 2130772259,
- 2130772260,
- 2130772261,
- 2130772262,
- 2130772263,
- 2130772264,
- 2130772265,
- 2130772266,
- 2130772267,
- 2130772268,
- 2130772269,
- 2130772270};
-
- // aapt resource value: 13
- public const int CollapsingToolbarLayout_collapsedTitleGravity = 13;
-
- // aapt resource value: 7
- public const int CollapsingToolbarLayout_collapsedTitleTextAppearance = 7;
-
- // aapt resource value: 8
- public const int CollapsingToolbarLayout_contentScrim = 8;
-
- // aapt resource value: 14
- public const int CollapsingToolbarLayout_expandedTitleGravity = 14;
-
- // aapt resource value: 1
- public const int CollapsingToolbarLayout_expandedTitleMargin = 1;
-
- // aapt resource value: 5
- public const int CollapsingToolbarLayout_expandedTitleMarginBottom = 5;
-
- // aapt resource value: 4
- public const int CollapsingToolbarLayout_expandedTitleMarginEnd = 4;
-
- // aapt resource value: 2
- public const int CollapsingToolbarLayout_expandedTitleMarginStart = 2;
-
- // aapt resource value: 3
- public const int CollapsingToolbarLayout_expandedTitleMarginTop = 3;
-
- // aapt resource value: 6
- public const int CollapsingToolbarLayout_expandedTitleTextAppearance = 6;
-
- // aapt resource value: 12
- public const int CollapsingToolbarLayout_scrimAnimationDuration = 12;
-
- // aapt resource value: 11
- public const int CollapsingToolbarLayout_scrimVisibleHeightTrigger = 11;
-
- // aapt resource value: 9
- public const int CollapsingToolbarLayout_statusBarScrim = 9;
-
- // aapt resource value: 0
- public const int CollapsingToolbarLayout_title = 0;
-
- // aapt resource value: 15
- public const int CollapsingToolbarLayout_titleEnabled = 15;
-
- // aapt resource value: 10
- public const int CollapsingToolbarLayout_toolbarId = 10;
-
- public static int[] CollapsingToolbarLayout_Layout = new int[] {
- 2130772271,
- 2130772272};
-
- // aapt resource value: 0
- public const int CollapsingToolbarLayout_Layout_layout_collapseMode = 0;
-
- // aapt resource value: 1
- public const int CollapsingToolbarLayout_Layout_layout_collapseParallaxMultiplier = 1;
-
- public static int[] ColorStateListItem = new int[] {
- 16843173,
- 16843551,
- 2130772172};
-
- // aapt resource value: 2
- public const int ColorStateListItem_alpha = 2;
-
- // aapt resource value: 1
- public const int ColorStateListItem_android_alpha = 1;
-
- // aapt resource value: 0
- public const int ColorStateListItem_android_color = 0;
-
- public static int[] CompoundButton = new int[] {
- 16843015,
- 2130772173,
- 2130772174};
-
- // aapt resource value: 0
- public const int CompoundButton_android_button = 0;
-
- // aapt resource value: 1
- public const int CompoundButton_buttonTint = 1;
-
- // aapt resource value: 2
- public const int CompoundButton_buttonTintMode = 2;
-
- public static int[] CoordinatorLayout = new int[] {
- 2130772273,
- 2130772274};
-
- // aapt resource value: 0
- public const int CoordinatorLayout_keylines = 0;
-
- // aapt resource value: 1
- public const int CoordinatorLayout_statusBarBackground = 1;
-
- public static int[] CoordinatorLayout_Layout = new int[] {
- 16842931,
- 2130772275,
- 2130772276,
- 2130772277,
- 2130772278,
- 2130772279,
- 2130772280};
-
- // aapt resource value: 0
- public const int CoordinatorLayout_Layout_android_layout_gravity = 0;
-
- // aapt resource value: 2
- public const int CoordinatorLayout_Layout_layout_anchor = 2;
-
- // aapt resource value: 4
- public const int CoordinatorLayout_Layout_layout_anchorGravity = 4;
-
- // aapt resource value: 1
- public const int CoordinatorLayout_Layout_layout_behavior = 1;
-
- // aapt resource value: 6
- public const int CoordinatorLayout_Layout_layout_dodgeInsetEdges = 6;
-
- // aapt resource value: 5
- public const int CoordinatorLayout_Layout_layout_insetEdge = 5;
-
- // aapt resource value: 3
- public const int CoordinatorLayout_Layout_layout_keyline = 3;
-
- public static int[] DesignTheme = new int[] {
- 2130772281,
- 2130772282,
- 2130772283};
-
- // aapt resource value: 0
- public const int DesignTheme_bottomSheetDialogTheme = 0;
-
- // aapt resource value: 1
- public const int DesignTheme_bottomSheetStyle = 1;
-
- // aapt resource value: 2
- public const int DesignTheme_textColorError = 2;
-
- public static int[] DrawerArrowToggle = new int[] {
- 2130772175,
- 2130772176,
- 2130772177,
- 2130772178,
- 2130772179,
- 2130772180,
- 2130772181,
- 2130772182};
-
- // aapt resource value: 4
- public const int DrawerArrowToggle_arrowHeadLength = 4;
-
- // aapt resource value: 5
- public const int DrawerArrowToggle_arrowShaftLength = 5;
-
- // aapt resource value: 6
- public const int DrawerArrowToggle_barLength = 6;
-
- // aapt resource value: 0
- public const int DrawerArrowToggle_color = 0;
-
- // aapt resource value: 2
- public const int DrawerArrowToggle_drawableSize = 2;
-
- // aapt resource value: 3
- public const int DrawerArrowToggle_gapBetweenBars = 3;
-
- // aapt resource value: 1
- public const int DrawerArrowToggle_spinBars = 1;
-
- // aapt resource value: 7
- public const int DrawerArrowToggle_thickness = 7;
-
- public static int[] FloatingActionButton = new int[] {
- 2130772030,
- 2130772246,
- 2130772247,
- 2130772284,
- 2130772285,
- 2130772286,
- 2130772287,
- 2130772288};
-
- // aapt resource value: 1
- public const int FloatingActionButton_backgroundTint = 1;
-
- // aapt resource value: 2
- public const int FloatingActionButton_backgroundTintMode = 2;
-
- // aapt resource value: 6
- public const int FloatingActionButton_borderWidth = 6;
-
- // aapt resource value: 0
- public const int FloatingActionButton_elevation = 0;
-
- // aapt resource value: 4
- public const int FloatingActionButton_fabSize = 4;
-
- // aapt resource value: 5
- public const int FloatingActionButton_pressedTranslationZ = 5;
-
- // aapt resource value: 3
- public const int FloatingActionButton_rippleColor = 3;
-
- // aapt resource value: 7
- public const int FloatingActionButton_useCompatPadding = 7;
-
- public static int[] FloatingActionButton_Behavior_Layout = new int[] {
- 2130772289};
-
- // aapt resource value: 0
- public const int FloatingActionButton_Behavior_Layout_behavior_autoHide = 0;
-
- public static int[] FontFamily = new int[] {
- 2130772330,
- 2130772331,
- 2130772332,
- 2130772333,
- 2130772334,
- 2130772335};
-
- // aapt resource value: 0
- public const int FontFamily_fontProviderAuthority = 0;
-
- // aapt resource value: 3
- public const int FontFamily_fontProviderCerts = 3;
-
- // aapt resource value: 4
- public const int FontFamily_fontProviderFetchStrategy = 4;
-
- // aapt resource value: 5
- public const int FontFamily_fontProviderFetchTimeout = 5;
-
- // aapt resource value: 1
- public const int FontFamily_fontProviderPackage = 1;
-
- // aapt resource value: 2
- public const int FontFamily_fontProviderQuery = 2;
-
- public static int[] FontFamilyFont = new int[] {
- 16844082,
- 16844083,
- 16844095,
- 2130772336,
- 2130772337,
- 2130772338};
-
- // aapt resource value: 0
- public const int FontFamilyFont_android_font = 0;
-
- // aapt resource value: 2
- public const int FontFamilyFont_android_fontStyle = 2;
-
- // aapt resource value: 1
- public const int FontFamilyFont_android_fontWeight = 1;
-
- // aapt resource value: 4
- public const int FontFamilyFont_font = 4;
-
- // aapt resource value: 3
- public const int FontFamilyFont_fontStyle = 3;
-
- // aapt resource value: 5
- public const int FontFamilyFont_fontWeight = 5;
-
- public static int[] ForegroundLinearLayout = new int[] {
- 16843017,
- 16843264,
- 2130772290};
-
- // aapt resource value: 0
- public const int ForegroundLinearLayout_android_foreground = 0;
-
- // aapt resource value: 1
- public const int ForegroundLinearLayout_android_foregroundGravity = 1;
-
- // aapt resource value: 2
- public const int ForegroundLinearLayout_foregroundInsidePadding = 2;
-
- public static int[] LinearLayoutCompat = new int[] {
- 16842927,
- 16842948,
- 16843046,
- 16843047,
- 16843048,
- 2130772013,
- 2130772183,
- 2130772184,
- 2130772185};
-
- // aapt resource value: 2
- public const int LinearLayoutCompat_android_baselineAligned = 2;
-
- // aapt resource value: 3
- public const int LinearLayoutCompat_android_baselineAlignedChildIndex = 3;
-
- // aapt resource value: 0
- public const int LinearLayoutCompat_android_gravity = 0;
-
- // aapt resource value: 1
- public const int LinearLayoutCompat_android_orientation = 1;
-
- // aapt resource value: 4
- public const int LinearLayoutCompat_android_weightSum = 4;
-
- // aapt resource value: 5
- public const int LinearLayoutCompat_divider = 5;
-
- // aapt resource value: 8
- public const int LinearLayoutCompat_dividerPadding = 8;
-
- // aapt resource value: 6
- public const int LinearLayoutCompat_measureWithLargestChild = 6;
-
- // aapt resource value: 7
- public const int LinearLayoutCompat_showDividers = 7;
-
- public static int[] LinearLayoutCompat_Layout = new int[] {
- 16842931,
- 16842996,
- 16842997,
- 16843137};
-
- // aapt resource value: 0
- public const int LinearLayoutCompat_Layout_android_layout_gravity = 0;
-
- // aapt resource value: 2
- public const int LinearLayoutCompat_Layout_android_layout_height = 2;
-
- // aapt resource value: 3
- public const int LinearLayoutCompat_Layout_android_layout_weight = 3;
-
- // aapt resource value: 1
- public const int LinearLayoutCompat_Layout_android_layout_width = 1;
-
- public static int[] ListPopupWindow = new int[] {
- 16843436,
- 16843437};
-
- // aapt resource value: 0
- public const int ListPopupWindow_android_dropDownHorizontalOffset = 0;
-
- // aapt resource value: 1
- public const int ListPopupWindow_android_dropDownVerticalOffset = 1;
-
- public static int[] MediaRouteButton = new int[] {
- 16843071,
- 16843072,
- 2130771989,
- 2130771990};
-
- // aapt resource value: 1
- public const int MediaRouteButton_android_minHeight = 1;
-
- // aapt resource value: 0
- public const int MediaRouteButton_android_minWidth = 0;
-
- // aapt resource value: 2
- public const int MediaRouteButton_externalRouteEnabledDrawable = 2;
-
- // aapt resource value: 3
- public const int MediaRouteButton_mediaRouteButtonTint = 3;
-
- public static int[] MenuGroup = new int[] {
- 16842766,
- 16842960,
- 16843156,
- 16843230,
- 16843231,
- 16843232};
-
- // aapt resource value: 5
- public const int MenuGroup_android_checkableBehavior = 5;
-
- // aapt resource value: 0
- public const int MenuGroup_android_enabled = 0;
-
- // aapt resource value: 1
- public const int MenuGroup_android_id = 1;
-
- // aapt resource value: 3
- public const int MenuGroup_android_menuCategory = 3;
-
- // aapt resource value: 4
- public const int MenuGroup_android_orderInCategory = 4;
-
- // aapt resource value: 2
- public const int MenuGroup_android_visible = 2;
-
- public static int[] MenuItem = new int[] {
- 16842754,
- 16842766,
- 16842960,
- 16843014,
- 16843156,
- 16843230,
- 16843231,
- 16843233,
- 16843234,
- 16843235,
- 16843236,
- 16843237,
- 16843375,
- 2130772186,
- 2130772187,
- 2130772188,
- 2130772189,
- 2130772190,
- 2130772191,
- 2130772192,
- 2130772193,
- 2130772194,
- 2130772195};
-
- // aapt resource value: 16
- public const int MenuItem_actionLayout = 16;
-
- // aapt resource value: 18
- public const int MenuItem_actionProviderClass = 18;
-
- // aapt resource value: 17
- public const int MenuItem_actionViewClass = 17;
-
- // aapt resource value: 13
- public const int MenuItem_alphabeticModifiers = 13;
-
- // aapt resource value: 9
- public const int MenuItem_android_alphabeticShortcut = 9;
-
- // aapt resource value: 11
- public const int MenuItem_android_checkable = 11;
-
- // aapt resource value: 3
- public const int MenuItem_android_checked = 3;
-
- // aapt resource value: 1
- public const int MenuItem_android_enabled = 1;
-
- // aapt resource value: 0
- public const int MenuItem_android_icon = 0;
-
- // aapt resource value: 2
- public const int MenuItem_android_id = 2;
-
- // aapt resource value: 5
- public const int MenuItem_android_menuCategory = 5;
-
- // aapt resource value: 10
- public const int MenuItem_android_numericShortcut = 10;
-
- // aapt resource value: 12
- public const int MenuItem_android_onClick = 12;
-
- // aapt resource value: 6
- public const int MenuItem_android_orderInCategory = 6;
-
- // aapt resource value: 7
- public const int MenuItem_android_title = 7;
-
- // aapt resource value: 8
- public const int MenuItem_android_titleCondensed = 8;
-
- // aapt resource value: 4
- public const int MenuItem_android_visible = 4;
-
- // aapt resource value: 19
- public const int MenuItem_contentDescription = 19;
-
- // aapt resource value: 21
- public const int MenuItem_iconTint = 21;
-
- // aapt resource value: 22
- public const int MenuItem_iconTintMode = 22;
-
- // aapt resource value: 14
- public const int MenuItem_numericModifiers = 14;
-
- // aapt resource value: 15
- public const int MenuItem_showAsAction = 15;
-
- // aapt resource value: 20
- public const int MenuItem_tooltipText = 20;
-
- public static int[] MenuView = new int[] {
- 16842926,
- 16843052,
- 16843053,
- 16843054,
- 16843055,
- 16843056,
- 16843057,
- 2130772196,
- 2130772197};
-
- // aapt resource value: 4
- public const int MenuView_android_headerBackground = 4;
-
- // aapt resource value: 2
- public const int MenuView_android_horizontalDivider = 2;
-
- // aapt resource value: 5
- public const int MenuView_android_itemBackground = 5;
-
- // aapt resource value: 6
- public const int MenuView_android_itemIconDisabledAlpha = 6;
-
- // aapt resource value: 1
- public const int MenuView_android_itemTextAppearance = 1;
-
- // aapt resource value: 3
- public const int MenuView_android_verticalDivider = 3;
-
- // aapt resource value: 0
- public const int MenuView_android_windowAnimationStyle = 0;
-
- // aapt resource value: 7
- public const int MenuView_preserveIconSpacing = 7;
-
- // aapt resource value: 8
- public const int MenuView_subMenuArrow = 8;
-
- public static int[] NavigationView = new int[] {
- 16842964,
- 16842973,
- 16843039,
- 2130772030,
- 2130772291,
- 2130772292,
- 2130772293,
- 2130772294,
- 2130772295,
- 2130772296};
-
- // aapt resource value: 0
- public const int NavigationView_android_background = 0;
-
- // aapt resource value: 1
- public const int NavigationView_android_fitsSystemWindows = 1;
-
- // aapt resource value: 2
- public const int NavigationView_android_maxWidth = 2;
-
- // aapt resource value: 3
- public const int NavigationView_elevation = 3;
-
- // aapt resource value: 9
- public const int NavigationView_headerLayout = 9;
-
- // aapt resource value: 7
- public const int NavigationView_itemBackground = 7;
-
- // aapt resource value: 5
- public const int NavigationView_itemIconTint = 5;
-
- // aapt resource value: 8
- public const int NavigationView_itemTextAppearance = 8;
-
- // aapt resource value: 6
- public const int NavigationView_itemTextColor = 6;
-
- // aapt resource value: 4
- public const int NavigationView_menu = 4;
-
- public static int[] PopupWindow = new int[] {
- 16843126,
- 16843465,
- 2130772198};
-
- // aapt resource value: 1
- public const int PopupWindow_android_popupAnimationStyle = 1;
-
- // aapt resource value: 0
- public const int PopupWindow_android_popupBackground = 0;
-
- // aapt resource value: 2
- public const int PopupWindow_overlapAnchor = 2;
-
- public static int[] PopupWindowBackgroundState = new int[] {
- 2130772199};
-
- // aapt resource value: 0
- public const int PopupWindowBackgroundState_state_above_anchor = 0;
-
- public static int[] RecycleListView = new int[] {
- 2130772200,
- 2130772201};
-
- // aapt resource value: 0
- public const int RecycleListView_paddingBottomNoButtons = 0;
-
- // aapt resource value: 1
- public const int RecycleListView_paddingTopNoTitle = 1;
-
- public static int[] RecyclerView = new int[] {
- 16842948,
- 16842993,
- 2130771968,
- 2130771969,
- 2130771970,
- 2130771971,
- 2130771972,
- 2130771973,
- 2130771974,
- 2130771975,
- 2130771976};
-
- // aapt resource value: 1
- public const int RecyclerView_android_descendantFocusability = 1;
-
- // aapt resource value: 0
- public const int RecyclerView_android_orientation = 0;
-
- // aapt resource value: 6
- public const int RecyclerView_fastScrollEnabled = 6;
-
- // aapt resource value: 9
- public const int RecyclerView_fastScrollHorizontalThumbDrawable = 9;
-
- // aapt resource value: 10
- public const int RecyclerView_fastScrollHorizontalTrackDrawable = 10;
-
- // aapt resource value: 7
- public const int RecyclerView_fastScrollVerticalThumbDrawable = 7;
-
- // aapt resource value: 8
- public const int RecyclerView_fastScrollVerticalTrackDrawable = 8;
-
- // aapt resource value: 2
- public const int RecyclerView_layoutManager = 2;
-
- // aapt resource value: 4
- public const int RecyclerView_reverseLayout = 4;
-
- // aapt resource value: 3
- public const int RecyclerView_spanCount = 3;
-
- // aapt resource value: 5
- public const int RecyclerView_stackFromEnd = 5;
-
- public static int[] ScrimInsetsFrameLayout = new int[] {
- 2130772297};
-
- // aapt resource value: 0
- public const int ScrimInsetsFrameLayout_insetForeground = 0;
-
- public static int[] ScrollingViewBehavior_Layout = new int[] {
- 2130772298};
-
- // aapt resource value: 0
- public const int ScrollingViewBehavior_Layout_behavior_overlapTop = 0;
-
- public static int[] SearchView = new int[] {
- 16842970,
- 16843039,
- 16843296,
- 16843364,
- 2130772202,
- 2130772203,
- 2130772204,
- 2130772205,
- 2130772206,
- 2130772207,
- 2130772208,
- 2130772209,
- 2130772210,
- 2130772211,
- 2130772212,
- 2130772213,
- 2130772214};
-
- // aapt resource value: 0
- public const int SearchView_android_focusable = 0;
-
- // aapt resource value: 3
- public const int SearchView_android_imeOptions = 3;
-
- // aapt resource value: 2
- public const int SearchView_android_inputType = 2;
-
- // aapt resource value: 1
- public const int SearchView_android_maxWidth = 1;
-
- // aapt resource value: 8
- public const int SearchView_closeIcon = 8;
-
- // aapt resource value: 13
- public const int SearchView_commitIcon = 13;
-
- // aapt resource value: 7
- public const int SearchView_defaultQueryHint = 7;
-
- // aapt resource value: 9
- public const int SearchView_goIcon = 9;
-
- // aapt resource value: 5
- public const int SearchView_iconifiedByDefault = 5;
-
- // aapt resource value: 4
- public const int SearchView_layout = 4;
-
- // aapt resource value: 15
- public const int SearchView_queryBackground = 15;
-
- // aapt resource value: 6
- public const int SearchView_queryHint = 6;
-
- // aapt resource value: 11
- public const int SearchView_searchHintIcon = 11;
-
- // aapt resource value: 10
- public const int SearchView_searchIcon = 10;
-
- // aapt resource value: 16
- public const int SearchView_submitBackground = 16;
-
- // aapt resource value: 14
- public const int SearchView_suggestionRowLayout = 14;
-
- // aapt resource value: 12
- public const int SearchView_voiceIcon = 12;
-
- public static int[] SnackbarLayout = new int[] {
- 16843039,
- 2130772030,
- 2130772299};
-
- // aapt resource value: 0
- public const int SnackbarLayout_android_maxWidth = 0;
-
- // aapt resource value: 1
- public const int SnackbarLayout_elevation = 1;
-
- // aapt resource value: 2
- public const int SnackbarLayout_maxActionInlineWidth = 2;
-
- public static int[] Spinner = new int[] {
- 16842930,
- 16843126,
- 16843131,
- 16843362,
- 2130772031};
-
- // aapt resource value: 3
- public const int Spinner_android_dropDownWidth = 3;
-
- // aapt resource value: 0
- public const int Spinner_android_entries = 0;
-
- // aapt resource value: 1
- public const int Spinner_android_popupBackground = 1;
-
- // aapt resource value: 2
- public const int Spinner_android_prompt = 2;
-
- // aapt resource value: 4
- public const int Spinner_popupTheme = 4;
-
- public static int[] SwitchCompat = new int[] {
- 16843044,
- 16843045,
- 16843074,
- 2130772215,
- 2130772216,
- 2130772217,
- 2130772218,
- 2130772219,
- 2130772220,
- 2130772221,
- 2130772222,
- 2130772223,
- 2130772224,
- 2130772225};
-
- // aapt resource value: 1
- public const int SwitchCompat_android_textOff = 1;
-
- // aapt resource value: 0
- public const int SwitchCompat_android_textOn = 0;
-
- // aapt resource value: 2
- public const int SwitchCompat_android_thumb = 2;
-
- // aapt resource value: 13
- public const int SwitchCompat_showText = 13;
-
- // aapt resource value: 12
- public const int SwitchCompat_splitTrack = 12;
-
- // aapt resource value: 10
- public const int SwitchCompat_switchMinWidth = 10;
-
- // aapt resource value: 11
- public const int SwitchCompat_switchPadding = 11;
-
- // aapt resource value: 9
- public const int SwitchCompat_switchTextAppearance = 9;
-
- // aapt resource value: 8
- public const int SwitchCompat_thumbTextPadding = 8;
-
- // aapt resource value: 3
- public const int SwitchCompat_thumbTint = 3;
-
- // aapt resource value: 4
- public const int SwitchCompat_thumbTintMode = 4;
-
- // aapt resource value: 5
- public const int SwitchCompat_track = 5;
-
- // aapt resource value: 6
- public const int SwitchCompat_trackTint = 6;
-
- // aapt resource value: 7
- public const int SwitchCompat_trackTintMode = 7;
-
- public static int[] TabItem = new int[] {
- 16842754,
- 16842994,
- 16843087};
-
- // aapt resource value: 0
- public const int TabItem_android_icon = 0;
-
- // aapt resource value: 1
- public const int TabItem_android_layout = 1;
-
- // aapt resource value: 2
- public const int TabItem_android_text = 2;
-
- public static int[] TabLayout = new int[] {
- 2130772300,
- 2130772301,
- 2130772302,
- 2130772303,
- 2130772304,
- 2130772305,
- 2130772306,
- 2130772307,
- 2130772308,
- 2130772309,
- 2130772310,
- 2130772311,
- 2130772312,
- 2130772313,
- 2130772314,
- 2130772315};
-
- // aapt resource value: 3
- public const int TabLayout_tabBackground = 3;
-
- // aapt resource value: 2
- public const int TabLayout_tabContentStart = 2;
-
- // aapt resource value: 5
- public const int TabLayout_tabGravity = 5;
-
- // aapt resource value: 0
- public const int TabLayout_tabIndicatorColor = 0;
-
- // aapt resource value: 1
- public const int TabLayout_tabIndicatorHeight = 1;
-
- // aapt resource value: 7
- public const int TabLayout_tabMaxWidth = 7;
-
- // aapt resource value: 6
- public const int TabLayout_tabMinWidth = 6;
-
- // aapt resource value: 4
- public const int TabLayout_tabMode = 4;
-
- // aapt resource value: 15
- public const int TabLayout_tabPadding = 15;
-
- // aapt resource value: 14
- public const int TabLayout_tabPaddingBottom = 14;
-
- // aapt resource value: 13
- public const int TabLayout_tabPaddingEnd = 13;
-
- // aapt resource value: 11
- public const int TabLayout_tabPaddingStart = 11;
-
- // aapt resource value: 12
- public const int TabLayout_tabPaddingTop = 12;
-
- // aapt resource value: 10
- public const int TabLayout_tabSelectedTextColor = 10;
-
- // aapt resource value: 8
- public const int TabLayout_tabTextAppearance = 8;
-
- // aapt resource value: 9
- public const int TabLayout_tabTextColor = 9;
-
- public static int[] TextAppearance = new int[] {
- 16842901,
- 16842902,
- 16842903,
- 16842904,
- 16842906,
- 16842907,
- 16843105,
- 16843106,
- 16843107,
- 16843108,
- 16843692,
- 2130772047,
- 2130772053};
-
- // aapt resource value: 10
- public const int TextAppearance_android_fontFamily = 10;
-
- // aapt resource value: 6
- public const int TextAppearance_android_shadowColor = 6;
-
- // aapt resource value: 7
- public const int TextAppearance_android_shadowDx = 7;
-
- // aapt resource value: 8
- public const int TextAppearance_android_shadowDy = 8;
-
- // aapt resource value: 9
- public const int TextAppearance_android_shadowRadius = 9;
-
- // aapt resource value: 3
- public const int TextAppearance_android_textColor = 3;
-
- // aapt resource value: 4
- public const int TextAppearance_android_textColorHint = 4;
-
- // aapt resource value: 5
- public const int TextAppearance_android_textColorLink = 5;
-
- // aapt resource value: 0
- public const int TextAppearance_android_textSize = 0;
-
- // aapt resource value: 2
- public const int TextAppearance_android_textStyle = 2;
-
- // aapt resource value: 1
- public const int TextAppearance_android_typeface = 1;
-
- // aapt resource value: 12
- public const int TextAppearance_fontFamily = 12;
-
- // aapt resource value: 11
- public const int TextAppearance_textAllCaps = 11;
-
- public static int[] TextInputLayout = new int[] {
- 16842906,
- 16843088,
- 2130772316,
- 2130772317,
- 2130772318,
- 2130772319,
- 2130772320,
- 2130772321,
- 2130772322,
- 2130772323,
- 2130772324,
- 2130772325,
- 2130772326,
- 2130772327,
- 2130772328,
- 2130772329};
-
- // aapt resource value: 1
- public const int TextInputLayout_android_hint = 1;
-
- // aapt resource value: 0
- public const int TextInputLayout_android_textColorHint = 0;
-
- // aapt resource value: 6
- public const int TextInputLayout_counterEnabled = 6;
-
- // aapt resource value: 7
- public const int TextInputLayout_counterMaxLength = 7;
-
- // aapt resource value: 9
- public const int TextInputLayout_counterOverflowTextAppearance = 9;
-
- // aapt resource value: 8
- public const int TextInputLayout_counterTextAppearance = 8;
-
- // aapt resource value: 4
- public const int TextInputLayout_errorEnabled = 4;
-
- // aapt resource value: 5
- public const int TextInputLayout_errorTextAppearance = 5;
-
- // aapt resource value: 10
- public const int TextInputLayout_hintAnimationEnabled = 10;
-
- // aapt resource value: 3
- public const int TextInputLayout_hintEnabled = 3;
-
- // aapt resource value: 2
- public const int TextInputLayout_hintTextAppearance = 2;
-
- // aapt resource value: 13
- public const int TextInputLayout_passwordToggleContentDescription = 13;
-
- // aapt resource value: 12
- public const int TextInputLayout_passwordToggleDrawable = 12;
-
- // aapt resource value: 11
- public const int TextInputLayout_passwordToggleEnabled = 11;
-
- // aapt resource value: 14
- public const int TextInputLayout_passwordToggleTint = 14;
-
- // aapt resource value: 15
- public const int TextInputLayout_passwordToggleTintMode = 15;
-
- public static int[] Toolbar = new int[] {
- 16842927,
- 16843072,
- 2130772005,
- 2130772008,
- 2130772012,
- 2130772024,
- 2130772025,
- 2130772026,
- 2130772027,
- 2130772028,
- 2130772029,
- 2130772031,
- 2130772226,
- 2130772227,
- 2130772228,
- 2130772229,
- 2130772230,
- 2130772231,
- 2130772232,
- 2130772233,
- 2130772234,
- 2130772235,
- 2130772236,
- 2130772237,
- 2130772238,
- 2130772239,
- 2130772240,
- 2130772241,
- 2130772242};
-
- // aapt resource value: 0
- public const int Toolbar_android_gravity = 0;
-
- // aapt resource value: 1
- public const int Toolbar_android_minHeight = 1;
-
- // aapt resource value: 21
- public const int Toolbar_buttonGravity = 21;
-
- // aapt resource value: 23
- public const int Toolbar_collapseContentDescription = 23;
-
- // aapt resource value: 22
- public const int Toolbar_collapseIcon = 22;
-
- // aapt resource value: 6
- public const int Toolbar_contentInsetEnd = 6;
-
- // aapt resource value: 10
- public const int Toolbar_contentInsetEndWithActions = 10;
-
- // aapt resource value: 7
- public const int Toolbar_contentInsetLeft = 7;
-
- // aapt resource value: 8
- public const int Toolbar_contentInsetRight = 8;
-
- // aapt resource value: 5
- public const int Toolbar_contentInsetStart = 5;
-
- // aapt resource value: 9
- public const int Toolbar_contentInsetStartWithNavigation = 9;
-
- // aapt resource value: 4
- public const int Toolbar_logo = 4;
-
- // aapt resource value: 26
- public const int Toolbar_logoDescription = 26;
-
- // aapt resource value: 20
- public const int Toolbar_maxButtonHeight = 20;
-
- // aapt resource value: 25
- public const int Toolbar_navigationContentDescription = 25;
-
- // aapt resource value: 24
- public const int Toolbar_navigationIcon = 24;
-
- // aapt resource value: 11
- public const int Toolbar_popupTheme = 11;
-
- // aapt resource value: 3
- public const int Toolbar_subtitle = 3;
-
- // aapt resource value: 13
- public const int Toolbar_subtitleTextAppearance = 13;
-
- // aapt resource value: 28
- public const int Toolbar_subtitleTextColor = 28;
-
- // aapt resource value: 2
- public const int Toolbar_title = 2;
-
- // aapt resource value: 14
- public const int Toolbar_titleMargin = 14;
-
- // aapt resource value: 18
- public const int Toolbar_titleMarginBottom = 18;
-
- // aapt resource value: 16
- public const int Toolbar_titleMarginEnd = 16;
-
- // aapt resource value: 15
- public const int Toolbar_titleMarginStart = 15;
-
- // aapt resource value: 17
- public const int Toolbar_titleMarginTop = 17;
-
- // aapt resource value: 19
- public const int Toolbar_titleMargins = 19;
-
- // aapt resource value: 12
- public const int Toolbar_titleTextAppearance = 12;
-
- // aapt resource value: 27
- public const int Toolbar_titleTextColor = 27;
-
- public static int[] View = new int[] {
- 16842752,
- 16842970,
- 2130772243,
- 2130772244,
- 2130772245};
-
- // aapt resource value: 1
- public const int View_android_focusable = 1;
-
- // aapt resource value: 0
- public const int View_android_theme = 0;
-
- // aapt resource value: 3
- public const int View_paddingEnd = 3;
-
- // aapt resource value: 2
- public const int View_paddingStart = 2;
-
- // aapt resource value: 4
- public const int View_theme = 4;
-
- public static int[] ViewBackgroundHelper = new int[] {
- 16842964,
- 2130772246,
- 2130772247};
-
- // aapt resource value: 0
- public const int ViewBackgroundHelper_android_background = 0;
-
- // aapt resource value: 1
- public const int ViewBackgroundHelper_backgroundTint = 1;
-
- // aapt resource value: 2
- public const int ViewBackgroundHelper_backgroundTintMode = 2;
-
- public static int[] ViewStubCompat = new int[] {
- 16842960,
- 16842994,
- 16842995};
-
- // aapt resource value: 0
- public const int ViewStubCompat_android_id = 0;
-
- // aapt resource value: 2
- public const int ViewStubCompat_android_inflatedId = 2;
-
- // aapt resource value: 1
- public const int ViewStubCompat_android_layout = 1;
-
- static Styleable()
- {
- global::Android.Runtime.ResourceIdManager.UpdateIdValues();
- }
-
- private Styleable()
- {
- }
- }
- }
-}
-#pragma warning restore 1591
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/layout/Tabbar.axml b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/layout/Tabbar.axml
deleted file mode 100644
index ad1f87d..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/layout/Tabbar.axml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/layout/Toolbar.axml b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/layout/Toolbar.axml
deleted file mode 100644
index aabd0a3..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/layout/Toolbar.axml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-anydpi-v26/icon.xml b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-anydpi-v26/icon.xml
deleted file mode 100644
index 88d1d0a..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-anydpi-v26/icon.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-anydpi-v26/icon_round.xml b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-anydpi-v26/icon_round.xml
deleted file mode 100644
index 88d1d0a..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-anydpi-v26/icon_round.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-hdpi/Icon.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-hdpi/Icon.png
deleted file mode 100644
index 4623ca2..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-hdpi/Icon.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-hdpi/launcher_foreground.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-hdpi/launcher_foreground.png
deleted file mode 100644
index a89e5bb..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-hdpi/launcher_foreground.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-mdpi/icon.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-mdpi/icon.png
deleted file mode 100644
index 9b1d25e..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-mdpi/icon.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-mdpi/launcher_foreground.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-mdpi/launcher_foreground.png
deleted file mode 100644
index 431a8a0..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-mdpi/launcher_foreground.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xhdpi/Icon.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xhdpi/Icon.png
deleted file mode 100644
index 844dfe5..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xhdpi/Icon.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xhdpi/launcher_foreground.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xhdpi/launcher_foreground.png
deleted file mode 100644
index 9e9e4f8..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xhdpi/launcher_foreground.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxhdpi/Icon.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxhdpi/Icon.png
deleted file mode 100644
index e20ec9a..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxhdpi/Icon.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxhdpi/launcher_foreground.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxhdpi/launcher_foreground.png
deleted file mode 100644
index 5f1e135..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxhdpi/launcher_foreground.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxxhdpi/Icon.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxxhdpi/Icon.png
deleted file mode 100644
index 8a08bf7..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxxhdpi/Icon.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png
deleted file mode 100644
index aca9f8d..0000000
Binary files a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/mipmap-xxxhdpi/launcher_foreground.png and /dev/null differ
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/values/colors.xml b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/values/colors.xml
deleted file mode 100644
index d9f6e0b..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/values/colors.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
- #FFFFFF
- #3F51B5
- #303F9F
- #FF4081
-
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/values/styles.xml b/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/values/styles.xml
deleted file mode 100644
index 43b0a58..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin.Android/Resources/values/styles.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin/App.xaml b/NWaves.DemoXamarin/NWaves.DemoXamarin/App.xaml
deleted file mode 100644
index ff3bc86..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin/App.xaml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin/App.xaml.cs b/NWaves.DemoXamarin/NWaves.DemoXamarin/App.xaml.cs
deleted file mode 100644
index 50e2405..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin/App.xaml.cs
+++ /dev/null
@@ -1,32 +0,0 @@
-using System;
-using Xamarin.Forms;
-using Xamarin.Forms.Xaml;
-
-[assembly: XamlCompilation (XamlCompilationOptions.Compile)]
-namespace NWaves.DemoXamarin
-{
- public partial class App : Application
- {
- public App ()
- {
- InitializeComponent();
-
- MainPage = new MainPage();
- }
-
- protected override void OnStart ()
- {
- // Handle when your app starts
- }
-
- protected override void OnSleep ()
- {
- // Handle when your app sleeps
- }
-
- protected override void OnResume ()
- {
- // Handle when your app resumes
- }
- }
-}
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin/DependencyServices/IAudioService.cs b/NWaves.DemoXamarin/NWaves.DemoXamarin/DependencyServices/IAudioService.cs
deleted file mode 100644
index 787f1e3..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin/DependencyServices/IAudioService.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-
-namespace NWaves.DemoXamarin.DependencyServices
-{
- public interface IAudioService
- {
- void StartRecording();
- void StopRecording();
-
- event EventHandler PitchEstimated;
- }
-}
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin/DependencyServices/PitchEstimatedEventArgs.cs b/NWaves.DemoXamarin/NWaves.DemoXamarin/DependencyServices/PitchEstimatedEventArgs.cs
deleted file mode 100644
index 8f03ae7..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin/DependencyServices/PitchEstimatedEventArgs.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System;
-
-namespace NWaves.DemoXamarin.DependencyServices
-{
- public class PitchEstimatedEventArgs : EventArgs
- {
- public float PitchZcr { get; set; }
- public float PitchAutoCorr { get; set; }
- }
-}
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin/MainPage.xaml b/NWaves.DemoXamarin/NWaves.DemoXamarin/MainPage.xaml
deleted file mode 100644
index 8218289..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin/MainPage.xaml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/NWaves.DemoXamarin/NWaves.DemoXamarin/MainPage.xaml.cs b/NWaves.DemoXamarin/NWaves.DemoXamarin/MainPage.xaml.cs
deleted file mode 100644
index 58c8678..0000000
--- a/NWaves.DemoXamarin/NWaves.DemoXamarin/MainPage.xaml.cs
+++ /dev/null
@@ -1,52 +0,0 @@
-using NWaves.DemoXamarin.DependencyServices;
-using System;
-using Xamarin.Forms;
-
-namespace NWaves.DemoXamarin
-{
- public partial class MainPage : ContentPage
- {
- private IAudioService _audioService;
-
- private bool _isRecording;
-
- private Label _pitchZcrLabel, _pitchAutoCorrLabel;
- private Button _recordButton;
-
-
- public MainPage()
- {
- InitializeComponent();
-
- _audioService = DependencyService.Get();
- _audioService.PitchEstimated += UpdatePitch;
-
- _pitchZcrLabel = this.FindByName