working on exported Tone object

for global build
This commit is contained in:
Yotam Mann 2019-07-11 11:05:03 -04:00
parent 219462fe9e
commit b58577ed5e
3 changed files with 14 additions and 5 deletions

View file

@ -1,14 +1,13 @@
export { Gain } from "./context/Gain";
export { Context } from "./context/Context";
export { OfflineContext } from "./context/OfflineContext";
export { Param } from "./context/Param";
export { ToneAudioBuffer } from "./context/ToneAudioBuffer";
export { Delay } from "./context/Delay";
export { Clock } from "./clock/Clock";
export { Frequency, FrequencyClass } from "./type/Frequency";
export { Time, TimeClass } from "./type/Time";
export { Ticks, TicksClass } from "./type/Ticks";
export { TransportTime, TransportTimeClass } from "./type/TransportTime";
export { Frequency } from "./type/Frequency";
export { Time } from "./type/Time";
export { Ticks } from "./type/Ticks";
export { TransportTime } from "./type/TransportTime";
export { Draw } from "./util/Draw";
export { StateTimeline } from "./util/StateTimeline";
export { IntervalTimeline } from "./util/IntervalTimeline";

View file

@ -1,2 +1,11 @@
export { getContext, setContext } from "./core/Global";
export * from "./core/index";
export * from "./source/index";
import { getContext } from "./core/Global";
/**
* The current audio context time
*/
export function now(): Seconds {
return getContext().now();
}

View file

@ -14,6 +14,7 @@ const defaults = {
output : {
path : path.resolve(__dirname, "build"),
filename : "[name].js",
library: "Tone",
libraryTarget : "umd",
globalObject : "typeof self !== 'undefined' ? self : this",
},