Skip to content

setSustainVolume()

Set the envelope's sustain volume.

Parameters

Once an object envelope has been created, you can use the following function:

envelope.setSustainVolume(sustainVolume)
Parameter Type Default Description
sustainVolume float required The volume held through the body of the sound, from 0.0 to 1.0.