Beispiel #1
0
        Convolver GetFilter(Complex[] spectrum, float gain, int sampleRate)
        {
            Equalizer eq = new Equalizer();

            float[] filterSamples = phasePerfect.IsChecked.Value
                ? eq.GetLinearConvolution(sampleRate, spectrum.Length / 2, gain, spectrum)
                : eq.GetConvolution(sampleRate, spectrum.Length / 2, gain, spectrum);
            return(new Convolver(filterSamples, 0));
        }