I've created a simple sequencer that plays some small samples [kick,snare,hihat,toms,..] in 8 channels. by storing drum seqeunces in form of PATTERNs, i also created an arranger that lets you arrange these patterns and make a song [somehow].
It's working alright and does everything it's supposed to do. but i've got a problem when it comes to rendering the output to disk [or Export,as some sequences call it]:
I created a custom stream and assigned 8 channles of samples to it [by mixing them in a callback].they are being played one by one with a hi-res timer [when switching to render mode i also trun of audio output] so to save it into the disk,it has to be done in real time ,and if the song is 4 minutes long,it will take 4 minutes to render cause samples are being played in real time by that timer. is there any solution to render sequence events to disk in much less time,like the way other apps like Acid do?
Thanx.
PS. it would be really cool if someone could show me a simple correct way of mixing different samples or streams in a callback procedure and pipe them into a custom stream.i guess i'm doing the wrong way!