Amplitude

Status
Not open for further replies.

Maurin

Member
My patch is :
waveform > envelope > mixer > AudioOutputAnalog

My question :
can I use the amplitude fonction to change dynamically the volume of playing waveform?

I did :
1 / begin();
2 / noteOn();
3 / amplitude();

But it is not working for me.
 
can I use the amplitude fonction to change dynamically the volume of playing waveform?

Yes, with the minor caveat that the waveform is generated in 128 sample blocks (about 2.9 ms).

When you change the amplitude, the new setting takes effect starting on the next 2.9 ms block.

But it is not working for me.


Always post complete source code & details to reproduce any issue!
 
Status
Not open for further replies.
Back
Top