void audioGraph_FftCalculated(object sender, FftEventArgs e)
 {
     if (this.SelectedVisualization != null)
     {
         this.SelectedVisualization.OnFftCalculated(e.Result);
     }
 }
 void audioGraph_FftCalculated(object sender, FftEventArgs e)
 {
     if (this.SelectedVisualization != null)
     {
         this.SelectedVisualization.OnFftCalculated(e.Result);
     }
 }
Beispiel #3
0
 private void audioGraph_FftCalculated(object sender, FftEventArgs e)
 {
     if (analyzer != null)
     {
         analyzer.Update(e.Result);
     }
 }
 public SampleAggregator(int m)
 {
     this.m = m;
     int n = (int) Math.Pow(2, m);
     fftBuffer = new Complex[n];
     fftArgs = new FftEventArgs(fftBuffer);
 }
Beispiel #5
0
        public SampleAggregator(int m)
        {
            this.m = m;
            int n = (int)Math.Pow(2, m);

            fftBuffer = new Complex[n];
            fftArgs   = new FftEventArgs(fftBuffer);
        }
Beispiel #6
0
        protected virtual void OnFftCalculated(FftEventArgs e)
        {
            EventHandler <FftEventArgs> handler = FftCalculated;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #7
0
 public SampleAggregator(int fftLength = 1024)
 {
     if (!IsPowerOfTwo(fftLength))
     {
         throw new ArgumentException("FFT Length must be a power of two");
     }
     this.m = (int)Math.Log(fftLength, 2.0);
     this.fftLength = fftLength;
     this.fftBuffer = new Complex[fftLength];
     this.fftArgs = new FftEventArgs(fftBuffer);
 }
Beispiel #8
0
 public SampleAggregator(int fftLength = 1024)
 {
     if (!IsPowerOfTwo(fftLength))
     {
         throw new ArgumentException("FFT Length must be a power of two");
     }
     this.m         = (int)Math.Log(fftLength, 2.0);
     this.fftLength = fftLength;
     this.fftBuffer = new Complex[fftLength];
     this.fftArgs   = new FftEventArgs(fftBuffer);
 }
Beispiel #9
0
 public SampleAggregator(ISampleProvider source, int fftLength = 1024)
 {
     channels = source.WaveFormat.Channels;
     if (!IsPowerOfTwo(fftLength))
     {
         throw new ArgumentException("FFT Length must be a power of two");
     }
     m         = (int)Math.Log(fftLength, 2.0);
     fftLength = fftLength;
     fftBuffer = new Complex[fftLength];
     fftArgs   = new FftEventArgs(fftBuffer);
     source    = source;
 }
 public SampleAggregator(ISampleProvider source, int fftLength = 1024)
 {
     channels = source.WaveFormat.Channels;
     if (!IsPowerOfTwo(fftLength))
     {
         throw new ArgumentException("FFT Length must be a power of two");
     }
     this.m = (int)Math.Log(fftLength, 2.0);
     this.fftLength = fftLength;
     this.fftBuffer = new Complex[fftLength];
     this.fftArgs = new FftEventArgs(fftBuffer);
     this.source = source;
 }
Beispiel #11
0
        //public SampleAggregator(ISampleProvider source, int fftLength = 1024) // ain,kaf
        //public SampleAggregator(ISampleProvider source, int fftLength = 2048)
        public SampleAggregator(ISampleProvider source, int fftLength = 0) // good for kuf
        {
            if (fftLength == 0)
            {
                fftLength = defaultfftLength;
            }

            window   = fftLength;
            channels = source.WaveFormat.Channels;
            if (!IsPowerOfTwo(fftLength))
            {
                throw new ArgumentException("FFT Length must be a power of two");
            }
            this.m         = (int)Math.Log(fftLength, 2.0);
            this.fftLength = fftLength;
            this.fftBuffer = new Complex[fftLength];
            //this.fftBuffer = new Complex[fftLength + window]; // once with once without
            //this.fftBuffer = new Complex[fftLength * 2 - window]; // use it two times
            this.fftArgs = new FftEventArgs(fftBuffer);
            this.source  = source;
        }
Beispiel #12
0
 public SampleAggregator()
 {
     fftArgs = new FftEventArgs(fftBuffer);
 }
 private void audioGraph_FftCalculated(object sender, FftEventArgs e)
 {
     if (analyzer != null)
         analyzer.Update(e.Result);
 }
 void audioGraph_FftCalculated(object sender, FftEventArgs e)
 {
     analyzer.Update(e.Result);
 }
Beispiel #15
0
 public SampleAggregator()
 {
     fftArgs = new FftEventArgs(fftBuffer);
 }
Beispiel #16
0
 protected virtual void OnFftCalculated(FftEventArgs e)
 {
     EventHandler<FftEventArgs> handler = FftCalculated;
     if (handler != null) handler(this, e);
 }