PlaybackEnvelope

Shapes the gain at the edges of a playback buffer.

Functions

Link copied to clipboard
fun gain(at: Long, frameCount: Long, fadeFrameCount: Long, fadesIn: Boolean, fadesOut: Boolean): Float

Returns the gain for one frame, applying the requested linear edge fades.