- Edited
Dear forum.
When using the Oscillator bank class, is there a way to adjust the amplitude of individual oscillators at every audio frame? The way it's set up now doesn't seem to allow for that:
void render(BelaContext *context, void *userData)
{
float arr[context->audioFrames];
// Render audio frames
osc.process(context->audioFrames, arr);
for(unsigned int n = 0; n < context->audioFrames; ++n){
audioWrite(context, n, 0, arr[n]);
audioWrite(context, n, 1, arr[n]);
}
I would for example like to use one oscillator to modulate the amplitude or frequency of other oscillators.
Thanks!
/Mårten