mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-28 04:23:15 +00:00
33 lines
811 B
TypeScript
33 lines
811 B
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
|
|
* @Category Core
|
|
*/
|
|
export function now(): import("./core/type/Units").Seconds {
|
|
return getContext().now();
|
|
}
|
|
|
|
/**
|
|
* 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;
|