Hi, I've just started looking into iphone development. Coming from as3 I feel there is a lot to learn, but I've been watching Cocos2D with interest the past year and I really like it so far.
My first real coding attempt is to create a music instrument app, and I've been playing with the SimpleAudioEngine with good results. I really like its clean, friendly approach.
I've managed to make the app play a sample with gain and pitch variation depending on touch event locations. The next step I would like to accomplish is playing two samples simultaneously, with a crossfade between the two sounds based on accelerometer input (ie when the device is held upright it will play sound1 with gain 1 and sound2 with gain 0, and as you tilt the device the gain values will change in realtime).
Is this feasible, or am I looking at a lot of work here?
As I understand, SimpleAudioEngine does not support gain change when the sound is playing. Does anyone have any examples of how to control gain in realtime? I had a peek at the "Aphex" version of CocosDenshion and saw from the example that it supports actions to control fades, but is this what I want?
Thanks for any replies and hints. As a newbie, concrete examples are very welcome! :)