diff --git a/Tone/core/index.ts b/Tone/core/index.ts index 8b367650..35781082 100644 --- a/Tone/core/index.ts +++ b/Tone/core/index.ts @@ -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"; diff --git a/Tone/index.ts b/Tone/index.ts index 7e9d220b..a67cdfc4 100644 --- a/Tone/index.ts +++ b/Tone/index.ts @@ -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(); +} diff --git a/webpack.config.js b/webpack.config.js index c23cb292..ff3c1d1c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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", },