Example #1
0
        //this is the blackman harris windowing function that will do a windowed
        //dft on the selection of the data.
        private void blackmanHarrisToolStripMenuItem_Click(object sender, EventArgs e)
        {
            double[] windowWave   = WindowingClass.BlackmanHarrisWindow(selectedWave());
            double[] sendDataWave = new double[dataWave.Length];
            for (int i = 0; i < dataWave.Length; i++)
            {
                sendDataWave[i] = dataWave[i];
            }
            WindowForm newMDIChild = new WindowForm();

            newMDIChild.DataWave   = sendDataWave;
            newMDIChild.WindowWave = windowWave;
            // Set the Parent Form of the Child window.
            newMDIChild.MdiParent = this.MdiParent;
            newMDIChild.Show();
        }
Example #2
0
        //this is the square windowing function that will do a windowed
        //dft on the selection of the data. this is effectively the worst
        //windowing option.
        private void squareToolStripMenuItem_Click(object sender, EventArgs e)
        {
            double[] windowWave   = selectedWave();
            double[] sendDataWave = new double[dataWave.Length];
            for (int i = 0; i < dataWave.Length; i++)
            {
                sendDataWave[i] = dataWave[i];
            }
            WindowForm newMDIChild = new WindowForm();

            newMDIChild.DataWave   = sendDataWave;
            newMDIChild.WindowWave = windowWave;
            // Set the Parent Form of the Child window.
            newMDIChild.MdiParent = this.MdiParent;
            // Display the new form.
            newMDIChild.Show();
        }