mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-29 13:03:06 +00:00
23 lines
639 B
TypeScript
23 lines
639 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
|
|
*/
|
|
export function now(): import("./core/type/Units").Seconds {
|
|
return getContext().now();
|
|
}
|
|
|
|
/**
|
|
* The Transport object belonging to the global Tone.js Context
|
|
*/
|
|
// tslint:disable-next-line: variable-name
|
|
export const Transport = getContext().transport;
|
|
|
|
/**
|
|
* The Destination (output) belonging to the global Tone.js Context
|
|
*/
|
|
// tslint:disable-next-line: variable-name
|
|
export const Destination = getContext().destination;
|