2019-07-11 11:05:03 -04:00
|
|
|
export { getContext, setContext } from "./core/Global";
|
2019-06-24 13:25:48 -04:00
|
|
|
export * from "./core/index";
|
2019-07-11 09:57:06 -04:00
|
|
|
export * from "./source/index";
|
2019-08-04 15:27:44 -04:00
|
|
|
export * from "./signal/index";
|
2019-07-18 14:48:02 -04:00
|
|
|
export * from "./instrument/index";
|
2019-07-24 21:54:57 -04:00
|
|
|
export * from "./event/index";
|
2019-07-25 11:29:36 -04:00
|
|
|
export * from "./effect/index";
|
|
|
|
export * from "./component/index";
|
2019-08-02 10:36:59 -04:00
|
|
|
import { Seconds } from "./core/type/Units";
|
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-07-11 11:05:03 -04:00
|
|
|
/**
|
|
|
|
* The current audio context time
|
|
|
|
*/
|
|
|
|
export function now(): Seconds {
|
|
|
|
return getContext().now();
|
|
|
|
}
|
2019-07-25 11:29:36 -04:00
|
|
|
|
2019-07-25 18:26:03 -04:00
|
|
|
/**
|
|
|
|
* The Transport object belonging to the global Tone.js Context
|
|
|
|
*/
|
2019-07-25 11:29:36 -04:00
|
|
|
// tslint:disable-next-line: variable-name
|
|
|
|
export const Transport = getContext().transport;
|
2019-07-25 18:26:03 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Destination (output) belonging to the global Tone.js Context
|
|
|
|
*/
|
2019-07-25 11:29:36 -04:00
|
|
|
// tslint:disable-next-line: variable-name
|
|
|
|
export const Destination = getContext().destination;
|