Class Sound

Hierarchy

  • Sound

Constructors

  • Parameters

    • audioContext: AudioContext
    • carrierType: OscillatorType = 'square'

    Returns Sound

Properties

audioContext: AudioContext
carrier: OscGainNode
destination: null | AudioNode = null
filter: null | BiquadFilterNode = null
modulators: OscGainNode[] = []
output: AudioNode
time: number = 0

Methods

  • Parameters

    • frequency: number
    • time: number = 0

    Returns Sound

  • Parameters

    • volume: number
    • time: number

    Returns Sound

  • Parameters

    • note: string
    • startVolume: number = 1
    • startTime: number = 0

    Returns Sound

  • Parameters

    • frequency: number
    • time: number = 0

    Returns Sound

  • Parameters

    • volume: number
    • time: number

    Returns Sound

  • Parameters

    • destination: null | AudioNode = null

    Returns Sound

  • Returns Promise<void>

  • Returns Promise<void>

  • Parameters

    • type: BiquadFilterType
    • frequency: number
    • Optional Q: number

    Returns Sound

  • Parameters

    • modulatorType: OscillatorType = 'square'
    • frequency: number
    • amount: number
    • assignTo: "frequency" | "detune" | "gain" | "filter" | "last" = 'frequency'

    Returns Sound

Generated using TypeDoc