Tone.js/Tone/core/index.ts
Jack Anderson 3354b24527 Create BaseContext + better DummyContext
- this creates a new abstract BaseContext that DummyContext and Context
inherit from
- All methods available to Context are now stubbed by DummyContext
- BaseContext is now used as the type where Context was originally used
2019-11-06 14:32:19 -08:00

38 lines
1.2 KiB
TypeScript

export * from "./context/Context";
export * from "./context/BaseContext";
export * from "./context/Destination";
export * from "./context/Delay";
export * from "./context/Gain";
export * from "./context/Offline";
export * from "./context/OfflineContext";
export * from "./context/Param";
export * from "./context/ToneAudioBuffer";
export * from "./context/ToneAudioBuffers";
export * from "./context/ToneAudioNode";
export * from "./clock/Clock";
export * from "./clock/Transport";
export * from "./type/Frequency";
export * from "./type/Midi";
export * from "./type/Time";
export * from "./type/Ticks";
export * from "./type/TransportTime";
export * from "./util/Draw";
export * from "./util/Emitter";
export * from "./util/IntervalTimeline";
export * from "./util/StateTimeline";
export * from "./util/Timeline";
export * from "./util/TypeCheck";
export * from "./Tone";
export * from "./Connect";
export { dbToGain, gainToDb, intervalToFrequencyRatio, ftom, mtof } from "./type/Conversions";
export { optionsFromArguments, defaultArg } from "./util/Defaults";
// get the units and export them under the "Unit" namespace
import * as Unit from "./type/Units";
export { Unit };
// export the debug stuff as Debug
import * as debug from "./util/Debug";
export { debug };