Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebAudioFontTicker

Hierarchy

  • WebAudioFontTicker

Index

Constructors

Properties

lastPosition: number = 0
state: number = ...
stateEnd: number = 3
statePlay: number = 2
stateStop: number = 1
stepDuration: number = 0.1

Methods

  • cancel(): void
  • playLoop(player: WebAudioFontPlayer, audioContext: AudioContext, loopStart: number, loopPosition: number, loopEnd: number, queue: ChordQueue[]): void
  • startTicks(audioContext: AudioContext, onTick: (when: number, from: number, to: number) => void, loopStart: number, loopPosition: number, loopEnd: number, onEnd: (loopPosition: number) => void): void
  • Parameters

    • audioContext: AudioContext
    • onTick: (when: number, from: number, to: number) => void
        • (when: number, from: number, to: number): void
        • Parameters

          • when: number
          • from: number
          • to: number

          Returns void

    • loopStart: number
    • loopPosition: number
    • loopEnd: number
    • onEnd: (loopPosition: number) => void
        • (loopPosition: number): void
        • Parameters

          • loopPosition: number

          Returns void

    Returns void

  • tick(audioContext: AudioContext, nextAudioTime: number, onTick: (when: number, from: number, to: number) => void, loopStart: number, loopPosition: number, loopEnd: number, onEnd: (loopPosition: number) => void): void
  • Parameters

    • audioContext: AudioContext
    • nextAudioTime: number
    • onTick: (when: number, from: number, to: number) => void
        • (when: number, from: number, to: number): void
        • Parameters

          • when: number
          • from: number
          • to: number

          Returns void

    • loopStart: number
    • loopPosition: number
    • loopEnd: number
    • onEnd: (loopPosition: number) => void
        • (loopPosition: number): void
        • Parameters

          • loopPosition: number

          Returns void

    Returns void

Generated using TypeDoc