void audioGraph_FftCalculated(object sender, FftEventArgs e) { if (this.SelectedVisualization != null) { this.SelectedVisualization.OnFftCalculated(e.Result); } }
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); }
public SampleAggregator(int m) { this.m = m; int n = (int)Math.Pow(2, m); fftBuffer = new Complex[n]; fftArgs = new FftEventArgs(fftBuffer); }
protected virtual void OnFftCalculated(FftEventArgs e) { EventHandler <FftEventArgs> handler = FftCalculated; if (handler != null) { handler(this, e); } }
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); }
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; }
//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; }
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); }
protected virtual void OnFftCalculated(FftEventArgs e) { EventHandler<FftEventArgs> handler = FftCalculated; if (handler != null) handler(this, e); }