Tone.js/Tone/index.ts
2019-07-25 11:29:36 -04:00

20 lines
592 B
TypeScript

export { getContext, setContext } from "./core/Global";
export * from "./core/index";
export * from "./source/index";
export * from "./instrument/index";
export * from "./event/index";
export * from "./effect/index";
export * from "./component/index";
import { getContext } from "./core/Global";
/**
* The current audio context time
*/
export function now(): Seconds {
return getContext().now();
}
// tslint:disable-next-line: variable-name
export const Transport = getContext().transport;
// tslint:disable-next-line: variable-name
export const Destination = getContext().destination;