Example #1
0
 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);
     }
 }
Example #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);
 }
Example #5
0
        public SampleAggregator(int m)
        {
            this.m = m;
            int n = (int)Math.Pow(2, m);

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

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #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);
 }
Example #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);
 }
Example #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;
 }
Example #10
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");
     }
     this.m = (int)Math.Log(fftLength, 2.0);
     this.fftLength = fftLength;
     this.fftBuffer = new Complex[fftLength];
     this.fftArgs = new FftEventArgs(fftBuffer);
     this.source = source;
 }
Example #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;
        }
Example #12
0
 public SampleAggregator()
 {
     fftArgs = new FftEventArgs(fftBuffer);
 }
 private void audioGraph_FftCalculated(object sender, FftEventArgs e)
 {
     if (analyzer != null)
         analyzer.Update(e.Result);
 }
Example #14
0
 void audioGraph_FftCalculated(object sender, FftEventArgs e)
 {
     analyzer.Update(e.Result);
 }
Example #15
0
 public SampleAggregator()
 {
     fftArgs = new FftEventArgs(fftBuffer);
 }
Example #16
0
 protected virtual void OnFftCalculated(FftEventArgs e)
 {
     EventHandler<FftEventArgs> handler = FftCalculated;
     if (handler != null) handler(this, e);
 }