2019-07-11 11:05:03 -04:00
|
|
|
export { getContext, setContext } from "./core/Global";
|
2019-08-30 09:01:51 -07:00
|
|
|
export * from "./classes";
|
2019-07-11 11:05:03 -04:00
|
|
|
import { getContext } from "./core/Global";
|
2019-07-30 10:26:13 -04:00
|
|
|
export { start } from "./core/Global";
|
2019-08-30 09:01:51 -07:00
|
|
|
|
2019-07-11 11:05:03 -04:00
|
|
|
/**
|
2019-10-29 14:30:12 -04:00
|
|
|
* The current audio context time of the global [[Context]].
|
|
|
|
* See [[Context.now]]
|
2019-09-16 10:15:23 -04:00
|
|
|
* @Category Core
|
2019-07-11 11:05:03 -04:00
|
|
|
*/
|
2019-10-30 14:48:41 -04:00
|
|
|
export const now = getContext().now.bind(getContext());
|
2019-07-25 11:29:36 -04:00
|
|
|
|
2019-07-25 18:26:03 -04:00
|
|
|
/**
|
2019-10-29 14:30:12 -04:00
|
|
|
* The current audio context time of the global [[Context]] without the [[Context.lookAhead]]
|
|
|
|
* See [[Context.immediate]]
|
|
|
|
* @Category Core
|
|
|
|
*/
|
2019-10-30 14:48:41 -04:00
|
|
|
export const immediate = getContext().immediate.bind(getContext());
|
2019-10-29 14:30:12 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Transport object belonging to the global Tone.js Context.
|
2019-10-28 12:12:27 -04:00
|
|
|
* See [[Transport]]
|
2019-09-16 10:15:23 -04:00
|
|
|
* @Category Core
|
2019-07-25 18:26:03 -04:00
|
|
|
*/
|
2019-07-25 11:29:36 -04:00
|
|
|
export const Transport = getContext().transport;
|
2019-07-25 18:26:03 -04:00
|
|
|
|
|
|
|
/**
|
2019-10-29 14:30:12 -04:00
|
|
|
* The Destination (output) belonging to the global Tone.js Context.
|
2019-10-28 12:12:27 -04:00
|
|
|
* See [[Destination]]
|
2019-09-16 10:15:23 -04:00
|
|
|
* @Category Core
|
2019-07-25 18:26:03 -04:00
|
|
|
*/
|
2019-07-25 11:29:36 -04:00
|
|
|
export const Destination = getContext().destination;
|
2019-10-28 12:12:27 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Draw is used to synchronize the draw frame with the Transport's callbacks.
|
|
|
|
* See [[Draw]]
|
|
|
|
* @Category Core
|
|
|
|
*/
|
|
|
|
export const Draw = getContext().draw;
|
2019-10-30 14:48:41 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A reference to the global context
|
|
|
|
* See [[Context]]
|
|
|
|
* @Category Core
|
|
|
|
*/
|
|
|
|
export const context = getContext();
|