Class AperiodicVoice

Oscillator with ADSR envelope. Represents a single "channel" of polyphony. Should be reused for multiple notes.

Hierarchy (view full)

Constructors

Properties

age: number
context: BaseAudioContext
envelope: GainNode
lastNoteOff?: (() => void)

Type declaration

    • (): void
    • Returns void

log: ((msg) => void)

Type declaration

    • (msg): void
    • Parameters

      • msg: string

      Returns void

noteId: number
oscillator: AperiodicOscillator
voiceId: number

Methods