Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebAudioFontPlayer

Hierarchy

  • WebAudioFontPlayer

Index

Constructors

Properties

adjustPreset: (audioContext: AudioContext, preset: WavePreset) => void = ...

Type declaration

    • (audioContext: AudioContext, preset: WavePreset): void
    • Parameters

      Returns void

adjustZone: (audioContext: AudioContext, zone: WaveZone) => void = ...

Type declaration

    • (audioContext: AudioContext, zone: WaveZone): void
    • Parameters

      • audioContext: AudioContext
      • zone: WaveZone

      Returns void

afterTime: number = 0.05
envelopes: WaveEnvelope[] = []
loader: WebAudioFontLoader = ...
nearZero: number = 0.000001

Methods

  • cancelQueue(audioContext: AudioContext): void
  • Parameters

    • audioContext: AudioContext

    Returns void

  • findEnvelope(audioContext: AudioContext, target: AudioNode): WaveEnvelope
  • limitVolume(volume: undefined | number): number
  • Parameters

    • volume: undefined | number

    Returns number

  • noZeroVolume(n: number): number
  • numValue(aValue: any, defValue: number): number
  • Parameters

    • aValue: any
    • defValue: number

    Returns number

  • queueChord(audioContext: AudioContext, target: AudioNode, preset: WavePreset, when: number, pitches: number[], duration: number, volume?: number, slides?: WaveSlide[][]): WaveEnvelope[]
  • queueSnap(audioContext: AudioContext, target: AudioNode, preset: WavePreset, when: number, pitches: number[], duration: number, volume?: number, slides?: WaveSlide[][]): WaveEnvelope[]
  • queueStrum(audioContext: AudioContext, target: AudioNode, preset: WavePreset, when: number, pitches: number[], duration: number, volume?: number, slides?: WaveSlide[][]): WaveEnvelope[]
  • queueStrumDown(audioContext: AudioContext, target: AudioNode, preset: WavePreset, when: number, pitches: number[], duration: number, volume?: number, slides?: WaveSlide[][]): WaveEnvelope[]
  • queueStrumUp(audioContext: AudioContext, target: AudioNode, preset: WavePreset, when: number, pitches: number[], duration: number, volume?: number, slides?: WaveSlide[][]): WaveEnvelope[]
  • queueWaveTable(audioContext: AudioContext, target: AudioNode, preset: WavePreset, when: number, pitch: number, duration: number, volume?: number, slides?: WaveSlide[]): null | WaveEnvelope
  • resumeContext(audioContext: AudioContext): void
  • Parameters

    • audioContext: AudioContext

    Returns void

  • setupEnvelope(audioContext: AudioContext, envelope: WaveEnvelope, zone: WaveZone, volume: number, when: number, sampleDuration: number, noteDuration: number): void
  • Parameters

    • audioContext: AudioContext
    • envelope: WaveEnvelope
    • zone: WaveZone
    • volume: number
    • when: number
    • sampleDuration: number
    • noteDuration: number

    Returns void

Generated using TypeDoc