import TimedEvent from './timedEvent'; /** * TimedTone generates a pure tone using the Web Audio API. It maps the * oscillator lifecycle to TimedEvent lifecycle methods. Note: OscillatorNodes * cannot always be restarted after they are stopped, so resume creates a * fresh oscillator when necessary. * * constructor(duration=0, frequency=440, waveform='sine', gain=1.0) * - duration: milliseconds (0 unknown, -1 loop) * - frequency: Hz of the oscillator * - waveform: oscillator type (sine, square, sawtooth, triangle, 'custom') * - gain: output gain (0.0 - 1.0) */ export default class TimedTone extends TimedEvent { frequency: number; waveform: OscillatorType; gain: number; oscillatorNode: OscillatorNode | null; gainNode: GainNode | null; constructor(duration?: number, frequency?: number, waveform?: OscillatorType, gain?: number); start(): void; pause(): void; resume(): void; cancel(): void; setVolume(gain?: number): void; } //# sourceMappingURL=timedTone.d.ts.map