mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-29 04:53:10 +00:00
24 lines
606 B
TypeScript
24 lines
606 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
|
|
* @Category Core
|
|
*/
|
|
export const Transport = getContext().transport;
|
|
|
|
/**
|
|
* The Destination (output) belonging to the global Tone.js Context
|
|
* @Category Core
|
|
*/
|
|
export const Destination = getContext().destination;
|