Skip to content

performReleaseAndStop()

Apply the envelope's release (fade-out) to a voice of an audio sample, then stop it.

Usually called for you by Play.audioOff().

Parameters

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

envelope.performReleaseAndStop(audioSample, voice)
Parameter Type Default Description
audioSample AudioSample required The audio sample to fade out and stop.
voice int required Which voice of the audio sample to fade out and stop.