On and off ramp for sine wave
On and off ramp for sine wave
- Subject: On and off ramp for sine wave
- From: "Anil Kumar Roy" <email@hidden>
- Date: 17 Aug 2005 23:10:50 -0000
Hi,
I've been using the sine wave example from AudioSynth for my application. I want to add a ramping feature to this example.
What I mean is that when I hit play, the amplitude increases over a 25 millisecond period, to the desired amplitude level. The rise in amplitude will be determined by a function I already have(cosine based). However this function needs to get called 48000 times every second, of course it will work only for the first 25 milliseconds but, the frequency has to be the same.
Each time it gets called, my function will raise the amplitude a little more, until 25 milliseconds by when the amplitude will have reached the desired level.
Can someone please tell me how I can get this function to be called at the desired rate?
Any help is really appreciated.
Thanks a lot.
Anil.
_______________________________________________
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