Re: Problems with a Low Pass Filter process
Re: Problems with a Low Pass Filter process
- Subject: Re: Problems with a Low Pass Filter process
- From: "herve.noury" <email@hidden>
- Date: Wed, 08 Jun 2011 21:06:10 +0200
The problem of the bit crunch effect was solved doing this : I stopped to try : float out = mA0*left[frame] + mA1*left[frame-1] + mA2*left[frame-2] ...
but I did, as in the FilterDemo example : float outOsc = (pow5(sin(phase)*H1) + pow5(sin(phase*2)*H2) + ...// etc. additive synthesis algorithm; "H" values are the level of each harmonics. float out = mA0*outOsc + mA1*mX1 + mA2*mX2 - mB1*mY1 - mB2*mY2; mX2 = mX1; mX1 = outOsc; mY2 = mY1; mY1 = out; left[frame] += out;
My problem now is that the tune is always the same. The cut of frequency controls the tune but not the MIDI keyboard!! The filter seems to work, the sound is filtered, but not tuned. Would someone have an idea? Note this : I did not find where to add in my project the double FilterKernel::GetFrequencyResponse function. I do not think that this is the problem. Thanks... |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden