mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
30 lines
857 B
TypeScript
30 lines
857 B
TypeScript
export { getContext, setContext } from "./core/Global";
|
|
export * from "./core/index";
|
|
export * from "./source/index";
|
|
export * from "./signal/index";
|
|
export * from "./instrument/index";
|
|
export * from "./event/index";
|
|
export * from "./effect/index";
|
|
export * from "./component/index";
|
|
import { Seconds } from "./core/type/Units";
|
|
|
|
import { getContext } from "./core/Global";
|
|
export { start } from "./core/Global";
|
|
/**
|
|
* The current audio context time
|
|
*/
|
|
export function now(): 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;
|