setAttackTimesAndVolumes()
Set the envelope's attack times and the volumes reached at them.
The two lists are parallel and must be the same length.
Parameters
Once an object envelope has been created, you can use the following function:
envelope.setAttackTimesAndVolumes(attackTimes, attackVolumes)
| Parameter | Type | Default | Description |
|---|---|---|---|
attackTimes |
list[int] |
required | The attack times, in milliseconds, each measured from the previous one (the first from the start of the sound). |
attackVolumes |
list[float] |
required | The volumes to reach at those times, each from 0.0 to 1.0. |