|
From: <be...@ga...> - 2004-01-09 22:54:23
|
Scrive Christian Schoenebeck <chr...@ep...>:
> Hi everybody!
>
> Sorry that I didn't had time to answer. I'm currently implementing EG1
> (amplitude envelope generator), so no need for a quick hack, I hope to finish
>
> it tomorrow or at least til sunday.
>
Wow Christian, that would be wonderful ! (friday is the D-Day)
I'll tell the sampling producers to handsign you a copy of their sampling CDs,
but only if their CDs play back well on LS :-)
>
> end (usually the limit of the variable type), and the other two are
> self-explanatory I think. This heavy function is not a problem because it
> will only be calculated once when a voice will be triggered (or sustain value
>
> changed by some controller, etc.).
Yes if this happens only at note trigger time then it's fully ok.
>
> I'm not sure already, but at the moment I'm more tending to queue and process
>
> events sample accurate not only in a certain amount of steps (32 was proposed
>
> by Steve I think). My idea is to use two different Interpolate loops; one
> which processes events and one that is executed when there are no events
> queued for the current time stage. This will switch respectively.
you mean like I said the other day ?
render_audio() {
while(samples_left) {
samples_to_next_event=s2=check_for_events();
// if no events are pending samples_to_next_event should be
samples_left
while(--samples_to_next_event) {
interpolate();
}
samples_left -= s2;
}
David O. is this ok ?
More efficient methods ?
cheers,
Benno
-------------------------------------------------
This mail sent through http://www.gardena.net
|