示例#1
0
        public override IEnumerable <PeqParam> GetParamData()
        {
            var c = DspCoefficients.GetBiquadSos(PEQDataModel.Boost, PEQDataModel.Frequency,
                                                 PEQDataModel.BandWidth, true, DspCoefficients.Fs);

            yield return(GetSosParamPackage(c, GetBiquad(0)));
        }
示例#2
0
        public void BiquadSosTest()
        {
            var t = DspCoefficients.GetBiquadSos(10, 14000, 1, true, 48000).DspParams();
            var y = new[]
            {
                1.599326168924671,
                0.374162504619094,
                -0.153673263162329,
                -0.374162504619094,
                -0.445652905762343
            };

            Assert.IsTrue(t.SequenceEqual(y, new DspParamComarer()));
        }