UNPKG

tone

Version:

A Web Audio framework for making interactive music in the browser.

59 lines (58 loc) 1.94 kB
export { getContext, setContext } from "./core/Global"; export * from "./classes"; export * from "./version"; import { ToneAudioBuffer } from "./core/context/ToneAudioBuffer"; export { start } from "./core/Global"; import { Seconds } from "./core/type/Units"; /** * The current audio context time of the global [[Context]]. * See [[Context.now]] * @category Core */ export declare const now: () => Seconds; /** * The current audio context time of the global [[Context]] without the [[Context.lookAhead]] * See [[Context.immediate]] * @category Core */ export declare const immediate: () => Seconds; /** * The Transport object belonging to the global Tone.js Context. * See [[Transport]] * @category Core */ export declare const Transport: import("./classes").Transport; /** * The Destination (output) belonging to the global Tone.js Context. * See [[Destination]] * @category Core */ export declare const Destination: import("./classes").Destination; /** * The [[Listener]] belonging to the global Tone.js Context. * @category Core */ export declare const Listener: import("./core/context/Listener").Listener; /** * Draw is used to synchronize the draw frame with the Transport's callbacks. * See [[Draw]] * @category Core */ export declare const Draw: import("./classes").Draw; /** * A reference to the global context * See [[Context]] * @category Core */ export declare const context: import("./classes").BaseContext; /** * Promise which resolves when all of the loading promises are resolved. * Alias for static [[ToneAudioBuffer.loaded]] method. * @category Core */ export declare const loaded: any; import { ToneAudioBuffers } from "./core/context/ToneAudioBuffers"; import { ToneBufferSource } from "./source/buffer/ToneBufferSource"; export declare const Buffer: typeof ToneAudioBuffer; export declare const Buffers: typeof ToneAudioBuffers; export declare const BufferSource: typeof ToneBufferSource;