public BiquadPlugin()
 {
     Samplerate = 48000;
     DevInfo = new DeviceInfo();
     ParameterInfo = new Parameter[5];
     PortInfo = new Port[2];
     BiquadL = new Biquad(Biquad.FilterType.LowPass, 48000);
     BiquadR = new Biquad(Biquad.FilterType.LowPass, 48000);
 }
Beispiel #2
0
        public DelayLine(int bufferSize, int samplerate)
        {
            delay = new ModulatedDelay(bufferSize, 10000);
            diffuser = new AllpassDiffuser(bufferSize, samplerate) { ModulationEnabled = false };
            tempBuffer = new double[bufferSize];
            filterOutputBuffer = new double[bufferSize];

            lowPass = new Lp1(samplerate);
            lowShelf = new Biquad(Biquad.FilterType.LowShelf, samplerate) { Slope = 1.0, GainDB = -20, Frequency = 20 };
            highShelf = new Biquad(Biquad.FilterType.HighShelf, samplerate) { Slope = 1.0, GainDB = -20, Frequency = 19000 };
            lowPass.CutoffHz = 1000;
            lowShelf.Update();
            highShelf.Update();
            Samplerate = samplerate;
        }