Class AperiodicSynth

Web audio synth of finite polyphony that supports inharmonic timbres.

Hierarchy (view full)

Constructors

Properties

audioContext: BaseAudioContext
destination: AudioNode
log: ((msg) => void)

Type declaration

    • (msg): void
    • Parameters

      • msg: string

      Returns void

voiceParams?: AperiodicVoiceParams
voices: AperiodicVoice[]

Accessors

  • get maxPolyphony(): number
  • Returns number

  • set maxPolyphony(value): void
  • Parameters

    • value: number

    Returns void

Methods

  • Start playing a note at the specified frequency and velocity.

    Parameters

    • frequency: number

      Frequency in Hertz.

    • velocity: number

      Voice amplitude. Recomended range from 0 to 1.

    Returns (() => void)

    A callback that stops playing the note.

      • (): void
      • Returns void