public void OnlyTimeFreqPar()
        {
            DMParallel.timefreq stftRepParallel = new DMParallel.timefreq(mainParallel.waveIn.wave, 2048);
            Complex[]           compX           = stftRepParallel.compXG;

            Stopwatch stopwatch_init = new Stopwatch();

            stopwatch_init.Start();
            stftRepParallel.stft(compX, 2048);

            stopwatch_init.Stop();
            TimeSpan tsInit = stopwatch_init.Elapsed;
            double   total  = tsInit.TotalMilliseconds;

            for (int i = 0; i < 10; i++)
            {
                Console.WriteLine("new stopwatch");
                Stopwatch stopwatch = new Stopwatch();
                stopwatch.Start();
                stftRepParallel.stft(compX, 2048);

                stopwatch.Stop();
                TimeSpan ts = stopwatch.Elapsed;
                total = (total + ts.TotalMilliseconds) / 2;
            }
            Console.WriteLine("ADADAS");
            Console.WriteLine(total);
        }
        public void OnlyTimeFreqConstructorPar()
        {
            Stopwatch stopwatch_init = new Stopwatch();

            stopwatch_init.Start();

            DMParallel.timefreq stftRepParallel = new DMParallel.timefreq(mainParallel.waveIn.wave, 2048);
            stopwatch_init.Stop();
            TimeSpan tsInit = stopwatch_init.Elapsed;
            double   total  = tsInit.TotalMilliseconds;

            for (int i = 0; i < 5; i++)
            {
                Console.WriteLine("new stopwatch");
                Stopwatch stopwatch = new Stopwatch();
                stopwatch.Start();
                stftRepParallel = new DMParallel.timefreq(mainParallel.waveIn.wave, 2048);

                stopwatch.Stop();
                TimeSpan ts = stopwatch.Elapsed;
                total = (total + ts.TotalMilliseconds) / 2;
            }
            Console.WriteLine("Total construction time");
            Console.WriteLine(total);
        }
        public void CheckTimeFreqConstruct()
        {
            DMParallel.timefreq           stftRepParallel = new DMParallel.timefreq(mainParallel.waveIn.wave, 2048);
            DigitalMusicAnalysis.timefreq stftRepSeq      = new DigitalMusicAnalysis.timefreq(mainSeq.waveIn.wave, 2048);

            for (int x = 0; x < stftRepSeq.timeFreqData.GetLength(0); x++)
            {
                CollectionAssert.AreEqual(stftRepParallel.timeFreqData[x], stftRepSeq.timeFreqData[x]);
            }
        }