mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 00:07:08 +00:00
working on exported Tone object
for global build
This commit is contained in:
parent
219462fe9e
commit
b58577ed5e
3 changed files with 14 additions and 5 deletions
|
@ -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";
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue