Tone.js/Tone/index.ts
2019-08-30 09:01:51 -07:00

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;