setAttackTimesAndVolumes()
Set the envelope's attack times and the volumes reached at them.
envelope.setAttackTimesAndVolumes(attackTimes, attackVolumes)
The two lists are parallel and must be the same length.
Parameters
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. |