Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Amplitude

  1. #1
    Junior Member
    Join Date
    Oct 2014
    Location
    Paris
    Posts
    13

    Amplitude

    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.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,772
    Quote Originally Posted by Maurin View Post
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •