Exemplo n.º 1
0
        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);
        }
Exemplo n.º 3
0
 public FFTResizer(IFftMutatorSource source, int outputSize)
 {
     this.source     = source;
     this.outputSize = outputSize;
     Configure();
 }
Exemplo n.º 4
0
 public FFTSmoothener(IFftMutatorSource source, float attack = 0.4f, float decay = 0.3f)
 {
     this.source = source;
     this.attack = attack;
     this.decay  = decay;
 }