Tone.js/Tone/index.ts
2019-10-29 14:30:12 -04:00

43 lines
1.1 KiB
TypeScript

export { getContext, setContext } from "./core/Global";
export * from "./classes";
import { getContext } from "./core/Global";
export { start } from "./core/Global";
/**
* The current audio context time of the global [[Context]].
* See [[Context.now]]
* @Category Core
*/
export function now(): import("./core/type/Units").Seconds {
return getContext().now();
}
/**
* The current audio context time of the global [[Context]] without the [[Context.lookAhead]]
* See [[Context.immediate]]
* @Category Core
*/
export function immediate(): import("./core/type/Units").Seconds {
return getContext().immediate();
}
/**
* The Transport object belonging to the global Tone.js Context.
* See [[Transport]]
* @Category Core
*/
export const Transport = getContext().transport;
/**
* The Destination (output) belonging to the global Tone.js Context.
* See [[Destination]]
* @Category Core
*/
export const Destination = getContext().destination;
/**
* Draw is used to synchronize the draw frame with the Transport's callbacks.
* See [[Draw]]
* @Category Core
*/
export const Draw = getContext().draw;