The AperiodicWave interface defines an aperiodic waveform that can be used to shape the output of an AperiodicOscillator.

Constructors

Properties

Constructors

  • Allocate voice detunings to approximate the given inharmonic spectrum.

    Parameters

    • context: BaseAudioContext

      A BaseAudioContext representing the audio context you want the aperiodic wave to be associated with.

    • spectrum: number[]

      Partial ratios ordered by priority.

    • amplitudes: number[]

      Partial amplitudes.

    • maxNumberOfVoices: number

      Maximum number of voices to allocate.

    • tolerance: number

      Largest acceptable error in cents.

    Returns AperiodicWave

Properties

detunings: number[]
periodicWaves: PeriodicWave[]

Generated using TypeDoc