ADSRTracker

class ADSRTracker(clock: Clock) : Tracker<ADSR> (source)

Constructors

Link copied to clipboard
constructor(clock: Clock)

Properties

Link copied to clipboard

The time it takes to transition to 1.0 when calling triggerOn, usually in seconds.

Link copied to clipboard
val clock: Clock
Link copied to clipboard

The time it takes to transition from 1.0 to the sustain level, usually in seconds. The decay happens immediately after the attack.

Link copied to clipboard

The time it takes to transition back to 0.0 when calling triggerOff, usually in seconds.

Link copied to clipboard

The sustain level, between 0.0 and 1.0. The tracker will keep this value until triggerOff is called.

Link copied to clipboard

Functions

Link copied to clipboard
fun triggerOff(triggerId: Int = 0)
Link copied to clipboard
fun triggerOn(triggerId: Int = 0, objectFunction: (time: Double, value: Double, position: Double) -> Unit = { _, _, _ -> })
Link copied to clipboard
fun value(): Double
Link copied to clipboard