EnvelopePoint

class EnvelopePoint(val at: Duration, val gain: Float, val from: EnvelopeAnchor = EnvelopeAnchor.Start)(source)

One pinned gain in an AudioLevel.Envelope.

Constructors

Link copied to clipboard
constructor(at: Duration, gain: Float, from: EnvelopeAnchor = EnvelopeAnchor.Start)

Properties

Link copied to clipboard

How far this point sits from the edge named by from.

Link copied to clipboard

Which edge of the scope at is measured from.

Link copied to clipboard
val gain: Float

The scale here, where 1f is unchanged, 0f is silence and anything above 1f boosts. Has to be finite and not negative.