Attack-Decay-Sustain-Release Envelope

Hierarchy

  • ADSR

Constructors

  • new ADSR(attackLength: number, decayLength: number, sustainLevel: number, sustainLength: number, releaseLength: number, sampleRate: number): ADSR
  • Parameters

    • attackLength: number
    • decayLength: number
    • sustainLevel: number
    • sustainLength: number
    • releaseLength: number
    • sampleRate: number

    Returns ADSR

Properties

attack: number
attackLength: number
attackSamples: number
decay: number
decayLength: number
decaySamples: number
release: number
releaseLength: number
releaseSamples: number
sampleRate: number
samplesProcessed: number
sustain: number
sustainLength: number
sustainLevel: number
sustainSamples: number

Methods

  • disable(): void
  • Returns void

  • isActive(): boolean
  • Returns boolean

  • noteOff(): void
  • Returns void

  • noteOn(): void
  • Returns void

  • process(buffer: number[] | Float64Array): number[] | Float64Array
  • Parameters

    • buffer: number[] | Float64Array

    Returns number[] | Float64Array

  • processSample(sample: number): number
  • Parameters

    • sample: number

    Returns number

  • update(): void
  • Returns void

  • value(): number
  • Returns number

Generated using TypeDoc