2019-07-11 15:05:03 +00:00
|
|
|
export { getContext, setContext } from "./core/Global";
|
2019-08-30 16:01:51 +00:00
|
|
|
export * from "./classes";
|
2019-07-11 15:05:03 +00:00
|
|
|
import { getContext } from "./core/Global";
|
2019-07-30 14:26:13 +00:00
|
|
|
export { start } from "./core/Global";
|
2019-08-30 16:01:51 +00:00
|
|
|
|
2019-07-11 15:05:03 +00:00
|
|
|
/**
|
|
|
|
* The current audio context time
|
|
|
|
*/
|
2019-08-30 16:01:51 +00:00
|
|
|
export function now(): import("./core/type/Units").Seconds {
|
2019-07-11 15:05:03 +00:00
|
|
|
return getContext().now();
|
|
|
|
}
|
2019-07-25 15:29:36 +00:00
|
|
|
|
2019-07-25 22:26:03 +00:00
|
|
|
/**
|
|
|
|
* The Transport object belonging to the global Tone.js Context
|
|
|
|
*/
|
2019-07-25 15:29:36 +00:00
|
|
|
// tslint:disable-next-line: variable-name
|
|
|
|
export const Transport = getContext().transport;
|
2019-07-25 22:26:03 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* The Destination (output) belonging to the global Tone.js Context
|
|
|
|
*/
|
2019-07-25 15:29:36 +00:00
|
|
|
// tslint:disable-next-line: variable-name
|
|
|
|
export const Destination = getContext().destination;
|