|
|
| JSyn | |
| Tutorial | |
The EnvelopePlayer has a "rate" port that accepts an unsigned value between 0.0 and 2.0. This can be used to speed the playback rate up to 2X the original speed, or down to a dead stop.
myEnvPlayer.rate.set( 0.5 ); // play at half speed
Since you can slow the envelope down much further than you can speed it up, you should fill the envelope with data for half the maximum rate that you want to play. Then you can use rate=2.0 to get to your maximum rate, or go as slow as you want as you approach rate=0.0.
© 1997-2009 Mobileer Inc All Rights Reserved