Ticker
internal class
A class which provides a reliable callback using either a Web Worker, or if that isn’t supported, falls back to setTimeout.
Constructor
Section titled “Constructor”new Ticker(callback: () => void, type: TickerClockSource, updateInterval: number, contextSampleRate?: number)Parameters
- callback
() => void - type
TickerClockSource - updateInterval
number - contextSampleRate
numberoptional
Properties
Section titled “Properties”type: TickerClockSourceThe type of the ticker, either a worker or a timeout
updateInterval
Section titled “updateInterval”updateInterval: numberThe rate in seconds the ticker will update