Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            var hff  = FourierTransformer.HFF(fft, wav.Frequency, Convert.ToDouble(textBox1.Text));
            var data = hff.Select((c, i) => new SignalPoint {
                X = i, Y = c.Real
            });

            SaveWav(@"D:\stud_repo\astu\DS\FourierTransform\FourierTransform\wav\hff_test.wav"
                    , data.Select(p => (int)p.Y).ToArray());
            chart4.DataSource              = data;
            chart4.Series[0].XValueMember  = "X";
            chart4.Series[0].YValueMembers = "Y";
            chart4.DataBind();
        }