public override void Init() { //Set values this.bandwidth = ctx.DecimatedSampleRate; //Get FFT IFftMutatorSource fft = FftResource.GetFFT(ctx, "MAIN", fftBins, false); //Wrap our FFT this.fft = new FFTSmoothener(fft, attack, decay); }
public override void Init() { //Set values this.demodulator = (WbFmDemodulator)ctx.FindComponentResource <AudioResource>(x => x.Label == demodulatorLabel).Demodulator; //Get the FFT of the demodulator var demodFft = this.demodulator.EnableMpxFFT(fftBins); //Wrap our FFT this.fft = new FFTSmoothener(demodFft, attack, decay); }
public FFTResizer(IFftMutatorSource source, int outputSize) { this.source = source; this.outputSize = outputSize; Configure(); }
public FFTSmoothener(IFftMutatorSource source, float attack = 0.4f, float decay = 0.3f) { this.source = source; this.attack = attack; this.decay = decay; }