tone 15.2.5 → 15.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Tone/classes.ts +5 -5
- package/Tone/component/analysis/Analyser.test.ts +1 -0
- package/Tone/component/analysis/Analyser.ts +2 -2
- package/Tone/component/analysis/DCMeter.test.ts +1 -0
- package/Tone/component/analysis/FFT.test.ts +1 -0
- package/Tone/component/analysis/FFT.ts +1 -1
- package/Tone/component/analysis/Follower.test.ts +4 -3
- package/Tone/component/analysis/Follower.ts +2 -2
- package/Tone/component/analysis/Meter.test.ts +3 -2
- package/Tone/component/analysis/Meter.ts +4 -4
- package/Tone/component/analysis/Waveform.test.ts +1 -0
- package/Tone/component/channel/Channel.test.ts +4 -3
- package/Tone/component/channel/Channel.ts +5 -5
- package/Tone/component/channel/Merge.test.ts +1 -0
- package/Tone/component/channel/MidSideMerge.test.ts +2 -2
- package/Tone/component/channel/MidSideMerge.ts +3 -3
- package/Tone/component/channel/MidSideSplit.test.ts +6 -5
- package/Tone/component/channel/MidSideSplit.ts +2 -2
- package/Tone/component/channel/Mono.test.ts +1 -0
- package/Tone/component/channel/MultibandSplit.test.ts +1 -0
- package/Tone/component/channel/PanVol.test.ts +1 -0
- package/Tone/component/channel/PanVol.ts +1 -1
- package/Tone/component/channel/Panner.test.ts +1 -0
- package/Tone/component/channel/Panner3D.test.ts +1 -0
- package/Tone/component/channel/Panner3D.ts +2 -1
- package/Tone/component/channel/Recorder.test.ts +2 -1
- package/Tone/component/channel/Recorder.ts +2 -2
- package/Tone/component/channel/Solo.test.ts +1 -0
- package/Tone/component/channel/Split.test.ts +1 -0
- package/Tone/component/channel/Volume.test.ts +1 -0
- package/Tone/component/dynamics/Compressor.test.ts +1 -0
- package/Tone/component/dynamics/Gate.test.ts +4 -3
- package/Tone/component/dynamics/Gate.ts +3 -3
- package/Tone/component/dynamics/Limiter.test.ts +3 -2
- package/Tone/component/dynamics/Limiter.ts +2 -2
- package/Tone/component/dynamics/MidSideCompressor.test.ts +3 -2
- package/Tone/component/dynamics/MidSideCompressor.ts +3 -3
- package/Tone/component/dynamics/MultibandCompressor.test.ts +3 -2
- package/Tone/component/dynamics/MultibandCompressor.ts +4 -4
- package/Tone/component/envelope/AmplitudeEnvelope.test.ts +1 -0
- package/Tone/component/envelope/Envelope.test.ts +1 -0
- package/Tone/component/envelope/Envelope.ts +3 -3
- package/Tone/component/envelope/FrequencyEnvelope.test.ts +4 -3
- package/Tone/component/envelope/FrequencyEnvelope.ts +4 -4
- package/Tone/component/filter/BiquadFilter.test.ts +1 -0
- package/Tone/component/filter/BiquadFilter.ts +2 -2
- package/Tone/component/filter/Convolver.test.ts +1 -0
- package/Tone/component/filter/Convolver.ts +2 -2
- package/Tone/component/filter/EQ3.test.ts +1 -0
- package/Tone/component/filter/FeedbackCombFilter.test.ts +4 -3
- package/Tone/component/filter/FeedbackCombFilter.worklet.ts +1 -0
- package/Tone/component/filter/Filter.test.ts +1 -0
- package/Tone/component/filter/Filter.ts +1 -1
- package/Tone/component/filter/LowpassCombFilter.test.ts +3 -2
- package/Tone/component/filter/OnePoleFilter.test.ts +5 -4
- package/Tone/component/filter/OnePoleFilter.ts +1 -1
- package/Tone/component/index.ts +7 -11
- package/Tone/core/Global.ts +1 -1
- package/Tone/core/Tone.ts +0 -1
- package/Tone/core/clock/Clock.test.ts +1 -0
- package/Tone/core/clock/Clock.ts +1 -1
- package/Tone/core/clock/TickSignal.test.ts +1 -0
- package/Tone/core/clock/TickSource.test.ts +1 -0
- package/Tone/core/clock/TickSource.ts +1 -1
- package/Tone/core/clock/Ticker.test.ts +1 -0
- package/Tone/core/clock/Transport.test.ts +8 -6
- package/Tone/core/clock/Transport.ts +1 -1
- package/Tone/core/clock/TransportEvent.test.ts +1 -0
- package/Tone/core/clock/TransportRepeatEvent.test.ts +1 -0
- package/Tone/core/clock/TransportRepeatEvent.ts +1 -1
- package/Tone/core/context/AudioContext.ts +1 -0
- package/Tone/core/context/BaseContext.ts +2 -2
- package/Tone/core/context/Context.test.ts +2 -1
- package/Tone/core/context/Context.ts +4 -4
- package/Tone/core/context/Delay.test.ts +1 -0
- package/Tone/core/context/Destination.test.ts +1 -0
- package/Tone/core/context/DummyContext.ts +3 -3
- package/Tone/core/context/Gain.test.ts +1 -0
- package/Tone/core/context/Listener.test.ts +1 -0
- package/Tone/core/context/Listener.ts +2 -2
- package/Tone/core/context/Offline.test.ts +2 -1
- package/Tone/core/context/Offline.ts +3 -2
- package/Tone/core/context/OfflineContext.test.ts +1 -0
- package/Tone/core/context/Param.test.ts +4 -3
- package/Tone/core/context/Param.ts +2 -2
- package/Tone/core/context/ToneAudioBuffer.test.ts +1 -0
- package/Tone/core/context/ToneAudioBuffer.ts +1 -1
- package/Tone/core/context/ToneAudioBuffers.test.ts +1 -0
- package/Tone/core/context/ToneAudioBuffers.ts +1 -1
- package/Tone/core/context/ToneAudioNode.test.ts +4 -3
- package/Tone/core/context/ToneAudioNode.ts +1 -1
- package/Tone/core/context/ToneWithContext.ts +1 -1
- package/Tone/core/index.ts +9 -11
- package/Tone/core/type/Conversions.test.ts +1 -0
- package/Tone/core/type/Frequency.test.ts +2 -1
- package/Tone/core/type/Frequency.ts +0 -1
- package/Tone/core/type/Midi.test.ts +2 -1
- package/Tone/core/type/Ticks.test.ts +1 -0
- package/Tone/core/type/Time.test.ts +1 -0
- package/Tone/core/type/TransportTime.test.ts +1 -0
- package/Tone/core/util/Debug.test.ts +3 -2
- package/Tone/core/util/Debug.ts +1 -1
- package/Tone/core/util/Decorator.ts +1 -1
- package/Tone/core/util/Defaults.ts +1 -1
- package/Tone/core/util/Draw.test.ts +8 -11
- package/Tone/core/util/Draw.ts +4 -4
- package/Tone/core/util/Emitter.test.ts +1 -0
- package/Tone/core/util/IntervalTimeline.test.ts +1 -0
- package/Tone/core/util/IntervalTimeline.ts +1 -1
- package/Tone/core/util/StateTimeline.test.ts +1 -0
- package/Tone/core/util/StateTimeline.ts +1 -1
- package/Tone/core/util/Timeline.test.ts +1 -0
- package/Tone/core/util/Timeline.ts +1 -1
- package/Tone/core/util/TimelineValue.test.ts +1 -0
- package/Tone/core/util/TimelineValue.ts +1 -1
- package/Tone/core/worklet/SingleIOProcessor.worklet.ts +1 -0
- package/Tone/effect/AutoFilter.test.ts +5 -4
- package/Tone/effect/AutoFilter.ts +2 -2
- package/Tone/effect/AutoPanner.test.ts +4 -3
- package/Tone/effect/AutoPanner.ts +1 -1
- package/Tone/effect/AutoWah.test.ts +4 -3
- package/Tone/effect/AutoWah.ts +5 -5
- package/Tone/effect/BitCrusher.test.ts +6 -5
- package/Tone/effect/BitCrusher.ts +6 -6
- package/Tone/effect/BitCrusher.worklet.ts +1 -0
- package/Tone/effect/Chebyshev.test.ts +4 -3
- package/Tone/effect/Chebyshev.ts +2 -2
- package/Tone/effect/Chorus.test.ts +5 -4
- package/Tone/effect/Chorus.ts +8 -8
- package/Tone/effect/Distortion.test.ts +1 -0
- package/Tone/effect/FeedbackDelay.test.ts +1 -0
- package/Tone/effect/Freeverb.test.ts +4 -3
- package/Tone/effect/Freeverb.ts +2 -2
- package/Tone/effect/FrequencyShifter.test.ts +1 -0
- package/Tone/effect/JCReverb.test.ts +4 -3
- package/Tone/effect/JCReverb.ts +3 -3
- package/Tone/effect/LFOEffect.ts +4 -4
- package/Tone/effect/MidSideEffect.ts +2 -2
- package/Tone/effect/Phaser.test.ts +4 -3
- package/Tone/effect/Phaser.ts +3 -3
- package/Tone/effect/PingPongDelay.test.ts +4 -3
- package/Tone/effect/PingPongDelay.ts +5 -5
- package/Tone/effect/PitchShift.test.ts +4 -3
- package/Tone/effect/PitchShift.ts +7 -7
- package/Tone/effect/Reverb.test.ts +1 -0
- package/Tone/effect/Reverb.ts +3 -3
- package/Tone/effect/StereoEffect.ts +6 -6
- package/Tone/effect/StereoFeedbackEffect.ts +5 -5
- package/Tone/effect/StereoWidener.test.ts +4 -3
- package/Tone/effect/StereoWidener.ts +5 -5
- package/Tone/effect/StereoXFeedbackEffect.ts +2 -2
- package/Tone/effect/Tremolo.test.ts +4 -3
- package/Tone/effect/Tremolo.ts +4 -4
- package/Tone/effect/Vibrato.test.ts +4 -3
- package/Tone/effect/Vibrato.ts +6 -6
- package/Tone/effect/index.ts +2 -2
- package/Tone/event/Loop.test.ts +4 -3
- package/Tone/event/Loop.ts +5 -5
- package/Tone/event/Part.test.ts +1 -0
- package/Tone/event/Pattern.test.ts +3 -2
- package/Tone/event/Pattern.ts +3 -3
- package/Tone/event/PatternGenerator.test.ts +1 -0
- package/Tone/event/Sequence.test.ts +1 -0
- package/Tone/event/ToneEvent.test.ts +1 -0
- package/Tone/event/ToneEvent.ts +1 -0
- package/Tone/fromContext.test.ts +1 -0
- package/Tone/fromContext.ts +2 -2
- package/Tone/index.test.ts +4 -3
- package/Tone/index.ts +2 -2
- package/Tone/instrument/AMSynth.test.ts +4 -3
- package/Tone/instrument/AMSynth.ts +2 -2
- package/Tone/instrument/DuoSynth.test.ts +4 -3
- package/Tone/instrument/DuoSynth.ts +7 -7
- package/Tone/instrument/FMSynth.test.ts +3 -2
- package/Tone/instrument/MembraneSynth.test.ts +1 -0
- package/Tone/instrument/MembraneSynth.ts +1 -1
- package/Tone/instrument/MetalSynth.test.ts +1 -0
- package/Tone/instrument/ModulationSynth.ts +8 -8
- package/Tone/instrument/MonoSynth.test.ts +4 -3
- package/Tone/instrument/MonoSynth.ts +8 -8
- package/Tone/instrument/Monophonic.ts +1 -1
- package/Tone/instrument/NoiseSynth.test.ts +1 -0
- package/Tone/instrument/NoiseSynth.ts +6 -6
- package/Tone/instrument/PluckSynth.test.ts +1 -0
- package/Tone/instrument/PluckSynth.ts +1 -1
- package/Tone/instrument/PolySynth.test.ts +5 -4
- package/Tone/instrument/PolySynth.ts +4 -4
- package/Tone/instrument/Sampler.test.ts +94 -0
- package/Tone/instrument/Sampler.ts +132 -4
- package/Tone/instrument/Synth.test.ts +1 -0
- package/Tone/instrument/index.ts +1 -1
- package/Tone/signal/Add.ts +1 -1
- package/Tone/signal/AudioToGain.test.ts +1 -0
- package/Tone/signal/GainToAudio.test.ts +1 -1
- package/Tone/signal/GreaterThan.test.ts +1 -1
- package/Tone/signal/GreaterThan.ts +4 -4
- package/Tone/signal/GreaterThanZero.test.ts +1 -1
- package/Tone/signal/GreaterThanZero.ts +3 -3
- package/Tone/signal/Multiply.test.ts +1 -0
- package/Tone/signal/Multiply.ts +1 -1
- package/Tone/signal/Pow.test.ts +1 -1
- package/Tone/signal/Pow.ts +2 -2
- package/Tone/signal/Scale.test.ts +1 -0
- package/Tone/signal/ScaleExp.test.ts +3 -2
- package/Tone/signal/ScaleExp.ts +1 -1
- package/Tone/signal/Signal.test.ts +2 -1
- package/Tone/signal/SignalOperator.ts +1 -1
- package/Tone/signal/Subtract.ts +1 -1
- package/Tone/signal/SyncedSignal.test.ts +6 -4
- package/Tone/signal/SyncedSignal.ts +4 -4
- package/Tone/signal/ToneConstantSource.test.ts +2 -1
- package/Tone/signal/ToneConstantSource.ts +1 -1
- package/Tone/signal/WaveShaper.test.ts +1 -0
- package/Tone/signal/WaveShaper.ts +1 -1
- package/Tone/signal/Zero.test.ts +1 -0
- package/Tone/signal/index.ts +2 -2
- package/Tone/source/Noise.test.ts +1 -0
- package/Tone/source/Noise.ts +1 -1
- package/Tone/source/OneShotSource.ts +1 -1
- package/Tone/source/Source.test.ts +1 -0
- package/Tone/source/Source.ts +4 -3
- package/Tone/source/UserMedia.test.ts +3 -2
- package/Tone/source/UserMedia.ts +3 -3
- package/Tone/source/buffer/GrainPlayer.test.ts +4 -3
- package/Tone/source/buffer/GrainPlayer.ts +6 -6
- package/Tone/source/buffer/Player.test.ts +1 -0
- package/Tone/source/buffer/Player.ts +2 -2
- package/Tone/source/buffer/Players.test.ts +1 -0
- package/Tone/source/buffer/Players.ts +1 -1
- package/Tone/source/buffer/ToneBufferSource.test.ts +1 -0
- package/Tone/source/buffer/ToneBufferSource.ts +3 -3
- package/Tone/source/index.ts +9 -9
- package/Tone/source/oscillator/AMOscillator.test.ts +1 -0
- package/Tone/source/oscillator/AMOscillator.ts +2 -2
- package/Tone/source/oscillator/FMOscillator.test.ts +1 -0
- package/Tone/source/oscillator/FatOscillator.test.ts +1 -0
- package/Tone/source/oscillator/FatOscillator.ts +1 -1
- package/Tone/source/oscillator/LFO.test.ts +1 -0
- package/Tone/source/oscillator/OmniOscillator.test.ts +1 -0
- package/Tone/source/oscillator/Oscillator.test.ts +1 -0
- package/Tone/source/oscillator/Oscillator.ts +2 -2
- package/Tone/source/oscillator/OscillatorInterface.ts +1 -1
- package/Tone/source/oscillator/PWMOscillator.test.ts +1 -0
- package/Tone/source/oscillator/PulseOscillator.test.ts +1 -0
- package/Tone/source/oscillator/ToneOscillatorNode.test.ts +1 -0
- package/Tone/source/oscillator/ToneOscillatorNode.ts +2 -2
- package/Tone/version.ts +1 -1
- package/build/Tone.js +1 -1
- package/build/Tone.js.map +1 -1
- package/build/esm/classes.d.ts +5 -5
- package/build/esm/classes.js +5 -5
- package/build/esm/classes.js.map +1 -1
- package/build/esm/component/analysis/Analyser.js +2 -2
- package/build/esm/component/analysis/Analyser.js.map +1 -1
- package/build/esm/component/analysis/FFT.js +1 -1
- package/build/esm/component/analysis/FFT.js.map +1 -1
- package/build/esm/component/analysis/Follower.d.ts +1 -1
- package/build/esm/component/analysis/Follower.js +1 -1
- package/build/esm/component/analysis/Follower.js.map +1 -1
- package/build/esm/component/analysis/Meter.js +4 -4
- package/build/esm/component/analysis/Meter.js.map +1 -1
- package/build/esm/component/channel/Channel.d.ts +3 -3
- package/build/esm/component/channel/Channel.js +3 -3
- package/build/esm/component/channel/Channel.js.map +1 -1
- package/build/esm/component/channel/MidSideMerge.js +3 -3
- package/build/esm/component/channel/MidSideMerge.js.map +1 -1
- package/build/esm/component/channel/MidSideSplit.js +2 -2
- package/build/esm/component/channel/MidSideSplit.js.map +1 -1
- package/build/esm/component/channel/PanVol.js +1 -1
- package/build/esm/component/channel/PanVol.js.map +1 -1
- package/build/esm/component/channel/Panner3D.d.ts +1 -1
- package/build/esm/component/channel/Panner3D.js +1 -1
- package/build/esm/component/channel/Panner3D.js.map +1 -1
- package/build/esm/component/channel/Recorder.d.ts +1 -1
- package/build/esm/component/channel/Recorder.js +2 -2
- package/build/esm/component/channel/Recorder.js.map +1 -1
- package/build/esm/component/dynamics/Gate.js +3 -3
- package/build/esm/component/dynamics/Gate.js.map +1 -1
- package/build/esm/component/dynamics/Limiter.d.ts +1 -1
- package/build/esm/component/dynamics/Limiter.js +1 -1
- package/build/esm/component/dynamics/Limiter.js.map +1 -1
- package/build/esm/component/dynamics/MidSideCompressor.d.ts +1 -1
- package/build/esm/component/dynamics/MidSideCompressor.js +3 -3
- package/build/esm/component/dynamics/MidSideCompressor.js.map +1 -1
- package/build/esm/component/dynamics/MultibandCompressor.d.ts +2 -2
- package/build/esm/component/dynamics/MultibandCompressor.js +2 -2
- package/build/esm/component/dynamics/MultibandCompressor.js.map +1 -1
- package/build/esm/component/envelope/Envelope.js +3 -3
- package/build/esm/component/envelope/Envelope.js.map +1 -1
- package/build/esm/component/envelope/FrequencyEnvelope.js +3 -3
- package/build/esm/component/envelope/FrequencyEnvelope.js.map +1 -1
- package/build/esm/component/filter/BiquadFilter.d.ts +1 -1
- package/build/esm/component/filter/BiquadFilter.js +2 -2
- package/build/esm/component/filter/BiquadFilter.js.map +1 -1
- package/build/esm/component/filter/Convolver.d.ts +2 -2
- package/build/esm/component/filter/Convolver.js +2 -2
- package/build/esm/component/filter/Convolver.js.map +1 -1
- package/build/esm/component/filter/FeedbackCombFilter.worklet.js.map +1 -1
- package/build/esm/component/filter/Filter.js +1 -1
- package/build/esm/component/filter/Filter.js.map +1 -1
- package/build/esm/component/filter/OnePoleFilter.d.ts +1 -1
- package/build/esm/component/filter/OnePoleFilter.js +1 -1
- package/build/esm/component/filter/OnePoleFilter.js.map +1 -1
- package/build/esm/component/index.d.ts +7 -7
- package/build/esm/component/index.js +7 -7
- package/build/esm/component/index.js.map +1 -1
- package/build/esm/core/Global.js.map +1 -1
- package/build/esm/core/Tone.js.map +1 -1
- package/build/esm/core/clock/Clock.js +1 -1
- package/build/esm/core/clock/Clock.js.map +1 -1
- package/build/esm/core/clock/TickSource.js +1 -1
- package/build/esm/core/clock/TickSource.js.map +1 -1
- package/build/esm/core/clock/Transport.js.map +1 -1
- package/build/esm/core/clock/TransportRepeatEvent.d.ts +1 -1
- package/build/esm/core/clock/TransportRepeatEvent.js +1 -1
- package/build/esm/core/clock/TransportRepeatEvent.js.map +1 -1
- package/build/esm/core/context/AudioContext.js.map +1 -1
- package/build/esm/core/context/BaseContext.d.ts +2 -2
- package/build/esm/core/context/BaseContext.js.map +1 -1
- package/build/esm/core/context/Context.d.ts +2 -2
- package/build/esm/core/context/Context.js +2 -2
- package/build/esm/core/context/Context.js.map +1 -1
- package/build/esm/core/context/DummyContext.d.ts +3 -3
- package/build/esm/core/context/DummyContext.js.map +1 -1
- package/build/esm/core/context/Listener.d.ts +1 -1
- package/build/esm/core/context/Listener.js +2 -2
- package/build/esm/core/context/Listener.js.map +1 -1
- package/build/esm/core/context/Offline.d.ts +2 -2
- package/build/esm/core/context/Offline.js +2 -2
- package/build/esm/core/context/Offline.js.map +1 -1
- package/build/esm/core/context/Param.js +2 -2
- package/build/esm/core/context/Param.js.map +1 -1
- package/build/esm/core/context/ToneAudioBuffer.js +1 -1
- package/build/esm/core/context/ToneAudioBuffer.js.map +1 -1
- package/build/esm/core/context/ToneAudioBuffers.js +1 -1
- package/build/esm/core/context/ToneAudioBuffers.js.map +1 -1
- package/build/esm/core/context/ToneAudioNode.js +1 -1
- package/build/esm/core/context/ToneAudioNode.js.map +1 -1
- package/build/esm/core/context/ToneWithContext.js.map +1 -1
- package/build/esm/core/index.d.ts +4 -4
- package/build/esm/core/index.js +4 -4
- package/build/esm/core/index.js.map +1 -1
- package/build/esm/core/type/Frequency.js +0 -1
- package/build/esm/core/type/Frequency.js.map +1 -1
- package/build/esm/core/util/Debug.js.map +1 -1
- package/build/esm/core/util/Decorator.js.map +1 -1
- package/build/esm/core/util/Defaults.js.map +1 -1
- package/build/esm/core/util/Draw.js +1 -1
- package/build/esm/core/util/Draw.js.map +1 -1
- package/build/esm/core/util/IntervalTimeline.js +1 -1
- package/build/esm/core/util/IntervalTimeline.js.map +1 -1
- package/build/esm/core/util/StateTimeline.js +1 -1
- package/build/esm/core/util/StateTimeline.js.map +1 -1
- package/build/esm/core/util/Timeline.js +1 -1
- package/build/esm/core/util/Timeline.js.map +1 -1
- package/build/esm/core/util/TimelineValue.js +1 -1
- package/build/esm/core/util/TimelineValue.js.map +1 -1
- package/build/esm/core/worklet/SingleIOProcessor.worklet.js.map +1 -1
- package/build/esm/effect/AutoFilter.d.ts +1 -1
- package/build/esm/effect/AutoFilter.js.map +1 -1
- package/build/esm/effect/AutoPanner.d.ts +1 -1
- package/build/esm/effect/AutoPanner.js.map +1 -1
- package/build/esm/effect/AutoWah.d.ts +1 -1
- package/build/esm/effect/AutoWah.js +4 -4
- package/build/esm/effect/AutoWah.js.map +1 -1
- package/build/esm/effect/BitCrusher.d.ts +2 -2
- package/build/esm/effect/BitCrusher.js +4 -4
- package/build/esm/effect/BitCrusher.js.map +1 -1
- package/build/esm/effect/BitCrusher.worklet.js.map +1 -1
- package/build/esm/effect/Chebyshev.d.ts +1 -1
- package/build/esm/effect/Chebyshev.js +2 -2
- package/build/esm/effect/Chebyshev.js.map +1 -1
- package/build/esm/effect/Chorus.d.ts +2 -2
- package/build/esm/effect/Chorus.js +3 -3
- package/build/esm/effect/Chorus.js.map +1 -1
- package/build/esm/effect/Freeverb.d.ts +1 -1
- package/build/esm/effect/Freeverb.js +2 -2
- package/build/esm/effect/Freeverb.js.map +1 -1
- package/build/esm/effect/JCReverb.d.ts +1 -1
- package/build/esm/effect/JCReverb.js +3 -3
- package/build/esm/effect/JCReverb.js.map +1 -1
- package/build/esm/effect/LFOEffect.d.ts +3 -3
- package/build/esm/effect/LFOEffect.js +1 -1
- package/build/esm/effect/LFOEffect.js.map +1 -1
- package/build/esm/effect/MidSideEffect.d.ts +1 -1
- package/build/esm/effect/MidSideEffect.js +2 -2
- package/build/esm/effect/MidSideEffect.js.map +1 -1
- package/build/esm/effect/Phaser.d.ts +1 -1
- package/build/esm/effect/Phaser.js +3 -3
- package/build/esm/effect/Phaser.js.map +1 -1
- package/build/esm/effect/PingPongDelay.d.ts +1 -1
- package/build/esm/effect/PingPongDelay.js +3 -3
- package/build/esm/effect/PingPongDelay.js.map +1 -1
- package/build/esm/effect/PitchShift.d.ts +1 -1
- package/build/esm/effect/PitchShift.js +6 -6
- package/build/esm/effect/PitchShift.js.map +1 -1
- package/build/esm/effect/Reverb.js +3 -3
- package/build/esm/effect/Reverb.js.map +1 -1
- package/build/esm/effect/StereoEffect.d.ts +4 -4
- package/build/esm/effect/StereoEffect.js +2 -2
- package/build/esm/effect/StereoEffect.js.map +1 -1
- package/build/esm/effect/StereoFeedbackEffect.d.ts +4 -4
- package/build/esm/effect/StereoFeedbackEffect.js +4 -4
- package/build/esm/effect/StereoFeedbackEffect.js.map +1 -1
- package/build/esm/effect/StereoWidener.d.ts +1 -1
- package/build/esm/effect/StereoWidener.js +4 -4
- package/build/esm/effect/StereoWidener.js.map +1 -1
- package/build/esm/effect/StereoXFeedbackEffect.d.ts +1 -1
- package/build/esm/effect/StereoXFeedbackEffect.js +1 -1
- package/build/esm/effect/StereoXFeedbackEffect.js.map +1 -1
- package/build/esm/effect/Tremolo.d.ts +2 -2
- package/build/esm/effect/Tremolo.js +3 -3
- package/build/esm/effect/Tremolo.js.map +1 -1
- package/build/esm/effect/Vibrato.d.ts +3 -3
- package/build/esm/effect/Vibrato.js +3 -3
- package/build/esm/effect/Vibrato.js.map +1 -1
- package/build/esm/effect/index.d.ts +2 -2
- package/build/esm/effect/index.js +2 -2
- package/build/esm/effect/index.js.map +1 -1
- package/build/esm/event/Loop.d.ts +1 -1
- package/build/esm/event/Loop.js +1 -1
- package/build/esm/event/Loop.js.map +1 -1
- package/build/esm/event/Pattern.d.ts +1 -1
- package/build/esm/event/Pattern.js +2 -2
- package/build/esm/event/Pattern.js.map +1 -1
- package/build/esm/event/ToneEvent.js.map +1 -1
- package/build/esm/fromContext.d.ts +1 -1
- package/build/esm/fromContext.js +1 -1
- package/build/esm/fromContext.js.map +1 -1
- package/build/esm/index.d.ts +1 -1
- package/build/esm/index.js +1 -1
- package/build/esm/index.js.map +1 -1
- package/build/esm/instrument/AMSynth.js +1 -1
- package/build/esm/instrument/AMSynth.js.map +1 -1
- package/build/esm/instrument/DuoSynth.d.ts +4 -4
- package/build/esm/instrument/DuoSynth.js +6 -6
- package/build/esm/instrument/DuoSynth.js.map +1 -1
- package/build/esm/instrument/MembraneSynth.js +1 -1
- package/build/esm/instrument/MembraneSynth.js.map +1 -1
- package/build/esm/instrument/ModulationSynth.d.ts +7 -7
- package/build/esm/instrument/ModulationSynth.js +6 -6
- package/build/esm/instrument/ModulationSynth.js.map +1 -1
- package/build/esm/instrument/MonoSynth.d.ts +4 -4
- package/build/esm/instrument/MonoSynth.js +2 -2
- package/build/esm/instrument/MonoSynth.js.map +1 -1
- package/build/esm/instrument/Monophonic.js +1 -1
- package/build/esm/instrument/Monophonic.js.map +1 -1
- package/build/esm/instrument/NoiseSynth.d.ts +2 -2
- package/build/esm/instrument/NoiseSynth.js +3 -3
- package/build/esm/instrument/NoiseSynth.js.map +1 -1
- package/build/esm/instrument/PluckSynth.js.map +1 -1
- package/build/esm/instrument/PolySynth.d.ts +3 -3
- package/build/esm/instrument/PolySynth.js +1 -1
- package/build/esm/instrument/PolySynth.js.map +1 -1
- package/build/esm/instrument/Sampler.d.ts +56 -0
- package/build/esm/instrument/Sampler.js +108 -4
- package/build/esm/instrument/Sampler.js.map +1 -1
- package/build/esm/instrument/index.d.ts +1 -1
- package/build/esm/instrument/index.js +1 -1
- package/build/esm/instrument/index.js.map +1 -1
- package/build/esm/signal/Add.js +1 -1
- package/build/esm/signal/Add.js.map +1 -1
- package/build/esm/signal/GreaterThan.d.ts +1 -1
- package/build/esm/signal/GreaterThan.js +3 -3
- package/build/esm/signal/GreaterThan.js.map +1 -1
- package/build/esm/signal/GreaterThanZero.d.ts +1 -1
- package/build/esm/signal/GreaterThanZero.js +2 -2
- package/build/esm/signal/GreaterThanZero.js.map +1 -1
- package/build/esm/signal/Multiply.d.ts +1 -1
- package/build/esm/signal/Multiply.js.map +1 -1
- package/build/esm/signal/Pow.d.ts +2 -2
- package/build/esm/signal/Pow.js +1 -1
- package/build/esm/signal/Pow.js.map +1 -1
- package/build/esm/signal/ScaleExp.d.ts +1 -1
- package/build/esm/signal/ScaleExp.js +1 -1
- package/build/esm/signal/ScaleExp.js.map +1 -1
- package/build/esm/signal/SignalOperator.js +1 -1
- package/build/esm/signal/SignalOperator.js.map +1 -1
- package/build/esm/signal/Subtract.js +1 -1
- package/build/esm/signal/Subtract.js.map +1 -1
- package/build/esm/signal/SyncedSignal.d.ts +2 -2
- package/build/esm/signal/SyncedSignal.js +2 -2
- package/build/esm/signal/SyncedSignal.js.map +1 -1
- package/build/esm/signal/ToneConstantSource.js +1 -1
- package/build/esm/signal/ToneConstantSource.js.map +1 -1
- package/build/esm/signal/WaveShaper.js +1 -1
- package/build/esm/signal/WaveShaper.js.map +1 -1
- package/build/esm/signal/index.d.ts +2 -2
- package/build/esm/signal/index.js +2 -2
- package/build/esm/signal/index.js.map +1 -1
- package/build/esm/source/Noise.js +1 -1
- package/build/esm/source/Noise.js.map +1 -1
- package/build/esm/source/OneShotSource.js +1 -1
- package/build/esm/source/OneShotSource.js.map +1 -1
- package/build/esm/source/Source.js +3 -3
- package/build/esm/source/Source.js.map +1 -1
- package/build/esm/source/UserMedia.d.ts +1 -1
- package/build/esm/source/UserMedia.js +2 -2
- package/build/esm/source/UserMedia.js.map +1 -1
- package/build/esm/source/buffer/GrainPlayer.d.ts +1 -1
- package/build/esm/source/buffer/GrainPlayer.js +5 -5
- package/build/esm/source/buffer/GrainPlayer.js.map +1 -1
- package/build/esm/source/buffer/Player.js +2 -2
- package/build/esm/source/buffer/Player.js.map +1 -1
- package/build/esm/source/buffer/Players.js +1 -1
- package/build/esm/source/buffer/Players.js.map +1 -1
- package/build/esm/source/buffer/ToneBufferSource.js +3 -3
- package/build/esm/source/buffer/ToneBufferSource.js.map +1 -1
- package/build/esm/source/index.d.ts +9 -9
- package/build/esm/source/index.js +9 -9
- package/build/esm/source/index.js.map +1 -1
- package/build/esm/source/oscillator/AMOscillator.js +2 -2
- package/build/esm/source/oscillator/AMOscillator.js.map +1 -1
- package/build/esm/source/oscillator/FatOscillator.js +1 -1
- package/build/esm/source/oscillator/FatOscillator.js.map +1 -1
- package/build/esm/source/oscillator/Oscillator.js +2 -2
- package/build/esm/source/oscillator/Oscillator.js.map +1 -1
- package/build/esm/source/oscillator/OscillatorInterface.js.map +1 -1
- package/build/esm/source/oscillator/ToneOscillatorNode.js +2 -2
- package/build/esm/source/oscillator/ToneOscillatorNode.js.map +1 -1
- package/build/esm/version.js +1 -1
- package/package.json +10 -9
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { expect } from "chai";
|
|
2
|
-
|
|
3
|
-
import { BitCrusher } from "../../effect/BitCrusher.js";
|
|
2
|
+
|
|
4
3
|
import { BasicTests } from "../../../test/helper/Basic.js";
|
|
5
|
-
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
|
6
4
|
import { Offline } from "../../../test/helper/Offline.js";
|
|
5
|
+
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
|
6
|
+
import { BitCrusher } from "../../effect/BitCrusher.js";
|
|
7
7
|
import { Signal } from "../../signal/index.js";
|
|
8
|
+
import { FeedbackCombFilter } from "./FeedbackCombFilter.js";
|
|
8
9
|
|
|
9
10
|
describe("FeedbackCombFilter", () => {
|
|
10
11
|
BasicTests(FeedbackCombFilter);
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
ToneAudioNode,
|
|
5
5
|
} from "../../core/context/ToneAudioNode.js";
|
|
6
6
|
import { Frequency } from "../../core/type/Units.js";
|
|
7
|
+
import { assert } from "../../core/util/Debug.js";
|
|
7
8
|
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
|
8
9
|
import { readOnly, writable } from "../../core/util/Interface.js";
|
|
9
10
|
import { isNumber } from "../../core/util/TypeCheck.js";
|
|
10
11
|
import { Signal } from "../../signal/Signal.js";
|
|
11
|
-
import { assert } from "../../core/util/Debug.js";
|
|
12
12
|
import { BiquadFilter, BiquadFilterOptions } from "./BiquadFilter.js";
|
|
13
13
|
|
|
14
14
|
export type FilterRollOff = -12 | -24 | -48 | -96;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { expect } from "chai";
|
|
2
|
+
|
|
2
3
|
import { BasicTests } from "../../../test/helper/Basic.js";
|
|
3
4
|
import { Offline } from "../../../test/helper/Offline.js";
|
|
4
5
|
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
|
5
6
|
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
|
6
|
-
import {
|
|
7
|
+
import { LowpassCombFilter } from "./LowpassCombFilter.js";
|
|
7
8
|
|
|
8
9
|
describe("LowpassCombFilter", () => {
|
|
9
10
|
BasicTests(LowpassCombFilter);
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { OnePoleFilter } from "./OnePoleFilter.js";
|
|
2
|
-
import { BasicTests } from "../../../test/helper/Basic.js";
|
|
3
|
-
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
|
4
|
-
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
|
5
1
|
import { expect } from "chai";
|
|
2
|
+
|
|
3
|
+
import { BasicTests } from "../../../test/helper/Basic.js";
|
|
6
4
|
import { CompareToFile } from "../../../test/helper/CompareToFile.js";
|
|
7
5
|
import { atTime, Offline } from "../../../test/helper/Offline.js";
|
|
6
|
+
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
|
7
|
+
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
|
8
|
+
import { OnePoleFilter } from "./OnePoleFilter.js";
|
|
8
9
|
|
|
9
10
|
describe("OnePoleFilter", () => {
|
|
10
11
|
BasicTests(OnePoleFilter);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { Gain } from "../../core/context/Gain.js";
|
|
1
2
|
import {
|
|
2
3
|
ToneAudioNode,
|
|
3
4
|
ToneAudioNodeOptions,
|
|
4
5
|
} from "../../core/context/ToneAudioNode.js";
|
|
5
6
|
import { Frequency } from "../../core/type/Units.js";
|
|
6
7
|
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
|
7
|
-
import { Gain } from "../../core/context/Gain.js";
|
|
8
8
|
|
|
9
9
|
export type OnePoleFilterType = "highpass" | "lowpass";
|
|
10
10
|
|
package/Tone/component/index.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
export * from "./analysis/Analyser.js";
|
|
2
|
-
export * from "./analysis/Meter.js";
|
|
3
|
-
export * from "./analysis/FFT.js";
|
|
4
2
|
export * from "./analysis/DCMeter.js";
|
|
5
|
-
export * from "./analysis/
|
|
3
|
+
export * from "./analysis/FFT.js";
|
|
6
4
|
export * from "./analysis/Follower.js";
|
|
7
|
-
|
|
5
|
+
export * from "./analysis/Meter.js";
|
|
6
|
+
export * from "./analysis/Waveform.js";
|
|
8
7
|
export * from "./channel/Channel.js";
|
|
9
8
|
export * from "./channel/CrossFade.js";
|
|
10
9
|
export * from "./channel/Merge.js";
|
|
@@ -19,21 +18,18 @@ export * from "./channel/Recorder.js";
|
|
|
19
18
|
export * from "./channel/Solo.js";
|
|
20
19
|
export * from "./channel/Split.js";
|
|
21
20
|
export * from "./channel/Volume.js";
|
|
22
|
-
|
|
23
21
|
export * from "./dynamics/Compressor.js";
|
|
24
22
|
export * from "./dynamics/Gate.js";
|
|
25
23
|
export * from "./dynamics/Limiter.js";
|
|
26
24
|
export * from "./dynamics/MidSideCompressor.js";
|
|
27
25
|
export * from "./dynamics/MultibandCompressor.js";
|
|
28
|
-
|
|
29
26
|
export * from "./envelope/AmplitudeEnvelope.js";
|
|
30
27
|
export * from "./envelope/Envelope.js";
|
|
31
28
|
export * from "./envelope/FrequencyEnvelope.js";
|
|
32
|
-
|
|
29
|
+
export * from "./filter/BiquadFilter.js";
|
|
30
|
+
export * from "./filter/Convolver.js";
|
|
33
31
|
export * from "./filter/EQ3.js";
|
|
34
|
-
export * from "./filter/Filter.js";
|
|
35
|
-
export * from "./filter/OnePoleFilter.js";
|
|
36
32
|
export * from "./filter/FeedbackCombFilter.js";
|
|
33
|
+
export * from "./filter/Filter.js";
|
|
37
34
|
export * from "./filter/LowpassCombFilter.js";
|
|
38
|
-
export * from "./filter/
|
|
39
|
-
export * from "./filter/BiquadFilter.js";
|
|
35
|
+
export * from "./filter/OnePoleFilter.js";
|
package/Tone/core/Global.ts
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
hasAudioContext,
|
|
5
5
|
theWindow,
|
|
6
6
|
} from "./context/AudioContext.js";
|
|
7
|
+
import { BaseContext } from "./context/BaseContext.js";
|
|
7
8
|
import { Context } from "./context/Context.js";
|
|
8
9
|
import { DummyContext } from "./context/DummyContext.js";
|
|
9
|
-
import { BaseContext } from "./context/BaseContext.js";
|
|
10
10
|
import { OfflineContext } from "./context/OfflineContext.js";
|
|
11
11
|
import {
|
|
12
12
|
isAudioContext,
|
package/Tone/core/Tone.ts
CHANGED
package/Tone/core/clock/Clock.ts
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
ToneWithContextOptions,
|
|
4
4
|
} from "../context/ToneWithContext.js";
|
|
5
5
|
import { Frequency, Hertz, Seconds, Ticks, Time } from "../type/Units.js";
|
|
6
|
+
import { assertContextRunning } from "../util/Debug.js";
|
|
6
7
|
import { optionsFromArguments } from "../util/Defaults.js";
|
|
7
8
|
import { Emitter } from "../util/Emitter.js";
|
|
8
9
|
import { noOp, readOnly } from "../util/Interface.js";
|
|
9
10
|
import { PlaybackState, StateTimeline } from "../util/StateTimeline.js";
|
|
10
11
|
import { TickSignal } from "./TickSignal.js";
|
|
11
12
|
import { TickSource } from "./TickSource.js";
|
|
12
|
-
import { assertContextRunning } from "../util/Debug.js";
|
|
13
13
|
|
|
14
14
|
type ClockCallback = (time: Seconds, ticks?: Ticks) => void;
|
|
15
15
|
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
import { Seconds, Ticks, Time } from "../type/Units.js";
|
|
6
6
|
import { optionsFromArguments } from "../util/Defaults.js";
|
|
7
7
|
import { readOnly } from "../util/Interface.js";
|
|
8
|
+
import { EQ } from "../util/Math.js";
|
|
8
9
|
import {
|
|
9
10
|
PlaybackState,
|
|
10
11
|
StateTimeline,
|
|
@@ -13,7 +14,6 @@ import {
|
|
|
13
14
|
import { Timeline, TimelineEvent } from "../util/Timeline.js";
|
|
14
15
|
import { isDefined } from "../util/TypeCheck.js";
|
|
15
16
|
import { TickSignal } from "./TickSignal.js";
|
|
16
|
-
import { EQ } from "../util/Math.js";
|
|
17
17
|
|
|
18
18
|
interface TickSourceOptions extends ToneWithContextOptions {
|
|
19
19
|
frequency: number;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
// importing for side affects
|
|
2
|
+
import "../context/Destination.js";
|
|
3
|
+
|
|
1
4
|
import { expect } from "chai";
|
|
5
|
+
|
|
6
|
+
import { warns } from "../../../test/helper/Basic.js";
|
|
2
7
|
import { atTime, Offline, whenBetween } from "../../../test/helper/Offline.js";
|
|
3
|
-
import {
|
|
4
|
-
import { noOp } from "../util/Interface.js";
|
|
8
|
+
import { Synth } from "../../instrument/Synth.js";
|
|
5
9
|
import { Signal } from "../../signal/Signal.js";
|
|
10
|
+
import { Time } from "../type/Time.js";
|
|
6
11
|
import { TransportTime } from "../type/TransportTime.js";
|
|
12
|
+
import { noOp } from "../util/Interface.js";
|
|
7
13
|
import { TransportClass } from "./Transport.js";
|
|
8
|
-
// importing for side affects
|
|
9
|
-
import "../context/Destination.js";
|
|
10
|
-
import { warns } from "../../../test/helper/Basic.js";
|
|
11
|
-
import { Synth } from "../../instrument/Synth.js";
|
|
12
14
|
|
|
13
15
|
describe("Transport", () => {
|
|
14
16
|
context("BPM and timeSignature", () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ToneAudioNode } from "../../core/context/ToneAudioNode.js";
|
|
1
2
|
import { TimeClass } from "../../core/type/Time.js";
|
|
2
3
|
import { PlaybackState } from "../../core/util/StateTimeline.js";
|
|
3
4
|
import { TimelineValue } from "../../core/util/TimelineValue.js";
|
|
4
|
-
import { ToneAudioNode } from "../../core/context/ToneAudioNode.js";
|
|
5
5
|
import { Pow } from "../../signal/Pow.js";
|
|
6
6
|
import { Signal } from "../../signal/Signal.js";
|
|
7
7
|
import {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { BaseContext } from "../context/BaseContext.js";
|
|
2
2
|
import { TicksClass } from "../type/Ticks.js";
|
|
3
3
|
import { Seconds, Ticks, Time } from "../type/Units.js";
|
|
4
|
-
import { TransportEvent, TransportEventOptions } from "./TransportEvent.js";
|
|
5
4
|
import { GT, LT } from "../util/Math.js";
|
|
6
5
|
import type { TransportClass as Transport } from "./Transport.js";
|
|
6
|
+
import { TransportEvent, TransportEventOptions } from "./TransportEvent.js";
|
|
7
7
|
|
|
8
8
|
interface TransportRepeatEventOptions extends TransportEventOptions {
|
|
9
9
|
interval: Ticks;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import type { TransportClass as Transport } from "../clock/Transport.js";
|
|
1
2
|
import { Seconds } from "../type/Units.js";
|
|
3
|
+
import type { DrawClass as Draw } from "../util/Draw.js";
|
|
2
4
|
import { Emitter } from "../util/Emitter.js";
|
|
3
5
|
import { AnyAudioContext } from "./AudioContext.js";
|
|
4
|
-
import type { DrawClass as Draw } from "../util/Draw.js";
|
|
5
6
|
import type { DestinationClass as Destination } from "./Destination.js";
|
|
6
|
-
import type { TransportClass as Transport } from "../clock/Transport.js";
|
|
7
7
|
import type { ListenerClass as Listener } from "./Listener.js";
|
|
8
8
|
|
|
9
9
|
// these are either not used in Tone.js or deprecated and not implemented.
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { expect } from "chai";
|
|
2
|
+
|
|
2
3
|
import { ConstantOutput } from "../../../test/helper/ConstantOutput.js";
|
|
3
4
|
import { Offline } from "../../../test/helper/Offline.js";
|
|
4
5
|
import { TransportClass } from "../clock/Transport.js";
|
|
5
6
|
import { getContext } from "../Global.js";
|
|
7
|
+
import { DrawClass } from "../util/Draw.js";
|
|
6
8
|
import { createAudioContext } from "./AudioContext.js";
|
|
7
9
|
import { Context } from "./Context.js";
|
|
8
10
|
import { DestinationClass } from "./Destination.js";
|
|
9
11
|
import { ListenerClass } from "./Listener.js";
|
|
10
|
-
import { DrawClass } from "../util/Draw.js";
|
|
11
12
|
import { connect } from "./ToneAudioNode.js";
|
|
12
13
|
|
|
13
14
|
describe("Context", () => {
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Ticker, TickerClockSource } from "../clock/Ticker.js";
|
|
2
|
+
import type { TransportClass as Transport } from "../clock/Transport.js";
|
|
2
3
|
import { Seconds } from "../type/Units.js";
|
|
3
4
|
import { isAudioContext } from "../util/AdvancedTypeCheck.js";
|
|
5
|
+
import { assert } from "../util/Debug.js";
|
|
4
6
|
import { optionsFromArguments } from "../util/Defaults.js";
|
|
7
|
+
import type { DrawClass as Draw } from "../util/Draw.js";
|
|
5
8
|
import { Timeline } from "../util/Timeline.js";
|
|
6
9
|
import { isDefined } from "../util/TypeCheck.js";
|
|
7
10
|
import {
|
|
@@ -9,12 +12,9 @@ import {
|
|
|
9
12
|
createAudioContext,
|
|
10
13
|
createAudioWorkletNode,
|
|
11
14
|
} from "./AudioContext.js";
|
|
12
|
-
import { closeContext, initializeContext } from "./ContextInitialization.js";
|
|
13
15
|
import { BaseContext, ContextLatencyHint } from "./BaseContext.js";
|
|
14
|
-
import {
|
|
15
|
-
import type { DrawClass as Draw } from "../util/Draw.js";
|
|
16
|
+
import { closeContext, initializeContext } from "./ContextInitialization.js";
|
|
16
17
|
import type { DestinationClass as Destination } from "./Destination.js";
|
|
17
|
-
import type { TransportClass as Transport } from "../clock/Transport.js";
|
|
18
18
|
import type { ListenerClass as Listener } from "./Listener.js";
|
|
19
19
|
|
|
20
20
|
export interface ContextOptions {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TransportClass as Transport } from "../clock/Transport.js";
|
|
2
2
|
import { Seconds } from "../type/Units.js";
|
|
3
|
-
import { AnyAudioContext } from "./AudioContext.js";
|
|
4
3
|
import type { DrawClass as Draw } from "../util/Draw.js";
|
|
4
|
+
import { AnyAudioContext } from "./AudioContext.js";
|
|
5
|
+
import { BaseContext } from "./BaseContext.js";
|
|
5
6
|
import type { DestinationClass as Destination } from "./Destination.js";
|
|
6
|
-
import type { TransportClass as Transport } from "../clock/Transport.js";
|
|
7
7
|
import type { ListenerClass as Listener } from "./Listener.js";
|
|
8
8
|
|
|
9
9
|
export class DummyContext extends BaseContext {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ToneAudioNode, ToneAudioNodeOptions } from "./ToneAudioNode.js";
|
|
2
|
-
import { Param } from "./Param.js";
|
|
3
1
|
import { onContextClose, onContextInit } from "./ContextInitialization.js";
|
|
2
|
+
import { Param } from "./Param.js";
|
|
3
|
+
import { ToneAudioNode, ToneAudioNodeOptions } from "./ToneAudioNode.js";
|
|
4
4
|
|
|
5
5
|
export interface ListenerOptions extends ToneAudioNodeOptions {
|
|
6
6
|
positionX: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { TestAudioBuffer } from "../../../test/helper/compare/TestAudioBuffer.js";
|
|
2
1
|
import { expect } from "chai";
|
|
2
|
+
|
|
3
|
+
import { TestAudioBuffer } from "../../../test/helper/compare/TestAudioBuffer.js";
|
|
3
4
|
import { ToneOscillatorNode } from "../../source/oscillator/ToneOscillatorNode.js";
|
|
4
5
|
import { noOp } from "../util/Interface.js";
|
|
5
6
|
import { Offline } from "./Offline.js";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import "./Destination.js";
|
|
2
|
+
import "./Listener.js";
|
|
3
|
+
|
|
1
4
|
import { getContext, setContext } from "../Global.js";
|
|
2
5
|
import { Seconds } from "../type/Units.js";
|
|
3
6
|
import { OfflineContext } from "./OfflineContext.js";
|
|
4
7
|
import { ToneAudioBuffer } from "./ToneAudioBuffer.js";
|
|
5
|
-
import "./Destination.js";
|
|
6
|
-
import "./Listener.js";
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Generate a buffer by rendering all of the Tone.js code within the callback using the OfflineAudioContext.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { Compare, Plot } from "../../../test/helper/compare/index.js";
|
|
2
1
|
import { expect } from "chai";
|
|
2
|
+
|
|
3
3
|
import { BasicTests, testAudioContext } from "../../../test/helper/Basic.js";
|
|
4
|
+
import { Compare, Plot } from "../../../test/helper/compare/index.js";
|
|
4
5
|
import { atTime, Offline } from "../../../test/helper/Offline.js";
|
|
6
|
+
import { Signal } from "../../signal/Signal.js";
|
|
7
|
+
import { getContext } from "../Global.js";
|
|
5
8
|
import {
|
|
6
9
|
BPM,
|
|
7
10
|
Decibels,
|
|
@@ -12,8 +15,6 @@ import {
|
|
|
12
15
|
Unit,
|
|
13
16
|
UnitName,
|
|
14
17
|
} from "../type/Units.js";
|
|
15
|
-
import { Signal } from "../../signal/Signal.js";
|
|
16
|
-
import { getContext } from "../Global.js";
|
|
17
18
|
import { Param } from "./Param.js";
|
|
18
19
|
import { connect } from "./ToneAudioNode.js";
|
|
19
20
|
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
UnitName,
|
|
10
10
|
} from "../type/Units.js";
|
|
11
11
|
import { isAudioParam } from "../util/AdvancedTypeCheck.js";
|
|
12
|
+
import { assert, assertRange } from "../util/Debug.js";
|
|
12
13
|
import { optionsFromArguments } from "../util/Defaults.js";
|
|
14
|
+
import { EQ } from "../util/Math.js";
|
|
13
15
|
import { Timeline } from "../util/Timeline.js";
|
|
14
16
|
import { isDefined } from "../util/TypeCheck.js";
|
|
15
17
|
import { ToneWithContext, ToneWithContextOptions } from "./ToneWithContext.js";
|
|
16
|
-
import { EQ } from "../util/Math.js";
|
|
17
|
-
import { assert, assertRange } from "../util/Debug.js";
|
|
18
18
|
|
|
19
19
|
export interface ParamOptions<TypeName extends UnitName>
|
|
20
20
|
extends ToneWithContextOptions {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { getContext } from "../Global.js";
|
|
2
2
|
import { Tone } from "../Tone.js";
|
|
3
3
|
import { Samples, Seconds } from "../type/Units.js";
|
|
4
|
+
import { assert } from "../util/Debug.js";
|
|
4
5
|
import { optionsFromArguments } from "../util/Defaults.js";
|
|
5
6
|
import { noOp } from "../util/Interface.js";
|
|
6
7
|
import { isArray, isNumber, isString } from "../util/TypeCheck.js";
|
|
7
|
-
import { assert } from "../util/Debug.js";
|
|
8
8
|
|
|
9
9
|
interface ToneAudioBufferOptions {
|
|
10
10
|
url?: string | AudioBuffer | ToneAudioBuffer;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Tone } from "../Tone.js";
|
|
2
|
+
import { assert } from "../util/Debug.js";
|
|
2
3
|
import { optionsFromArguments } from "../util/Defaults.js";
|
|
3
4
|
import { noOp } from "../util/Interface.js";
|
|
4
5
|
import { isString } from "../util/TypeCheck.js";
|
|
5
6
|
import { ToneAudioBuffer } from "./ToneAudioBuffer.js";
|
|
6
|
-
import { assert } from "../util/Debug.js";
|
|
7
7
|
|
|
8
8
|
export interface ToneAudioBuffersUrlMap {
|
|
9
9
|
[name: string]: string | AudioBuffer | ToneAudioBuffer;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { expect } from "chai";
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { Offline } from "../../../test/helper/Offline.js";
|
|
4
|
+
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
|
3
5
|
import { Split } from "../../component/channel/Split.js";
|
|
6
|
+
import { Merge } from "../../component/index.js";
|
|
4
7
|
import { Oscillator } from "../../source/index.js";
|
|
5
8
|
import { Gain } from "./Gain.js";
|
|
6
9
|
import { connect, disconnect, fanIn } from "./ToneAudioNode.js";
|
|
7
|
-
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
|
8
|
-
import { Offline } from "../../../test/helper/Offline.js";
|
|
9
10
|
|
|
10
11
|
describe("ToneAudioNode", () => {
|
|
11
12
|
context("constructor", () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isAudioNode, isAudioParam } from "../util/AdvancedTypeCheck.js";
|
|
2
|
+
import { assert, warn } from "../util/Debug.js";
|
|
2
3
|
import { isDefined } from "../util/TypeCheck.js";
|
|
3
4
|
import { Param } from "./Param.js";
|
|
4
5
|
import { ToneWithContext, ToneWithContextOptions } from "./ToneWithContext.js";
|
|
5
|
-
import { assert, warn } from "../util/Debug.js";
|
|
6
6
|
|
|
7
7
|
export type InputNode = ToneAudioNode | AudioNode | Param<any> | AudioParam;
|
|
8
8
|
export type OutputNode = ToneAudioNode | AudioNode;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { TransportClass } from "../clock/Transport.js";
|
|
1
2
|
import { getContext } from "../Global.js";
|
|
2
3
|
import { Tone } from "../Tone.js";
|
|
3
4
|
import { FrequencyClass } from "../type/Frequency.js";
|
|
@@ -19,7 +20,6 @@ import {
|
|
|
19
20
|
isUndef,
|
|
20
21
|
} from "../util/TypeCheck.js";
|
|
21
22
|
import { BaseContext } from "./BaseContext.js";
|
|
22
|
-
import type { TransportClass } from "../clock/Transport.js";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* A unit which process audio
|
package/Tone/core/index.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from "./clock/Clock.js";
|
|
2
2
|
// export * from "./clock/Transport";
|
|
3
3
|
|
|
4
|
-
export * from "./context/Context.js";
|
|
5
4
|
export * from "./context/BaseContext.js";
|
|
5
|
+
export * from "./context/Context.js";
|
|
6
6
|
export * from "./context/Delay.js";
|
|
7
7
|
// export * from "./context/Destination";
|
|
8
8
|
export * from "./context/Gain.js";
|
|
@@ -12,28 +12,26 @@ export * from "./context/Param.js";
|
|
|
12
12
|
export * from "./context/ToneAudioBuffer.js";
|
|
13
13
|
export * from "./context/ToneAudioBuffers.js";
|
|
14
14
|
export * from "./context/ToneAudioNode.js";
|
|
15
|
-
|
|
16
15
|
export * from "./type/Frequency.js";
|
|
17
16
|
export * from "./type/Midi.js";
|
|
18
|
-
export * from "./type/Time.js";
|
|
19
17
|
export * from "./type/Ticks.js";
|
|
18
|
+
export * from "./type/Time.js";
|
|
20
19
|
export * from "./type/TransportTime.js";
|
|
21
20
|
|
|
22
21
|
import "./util/Draw.js";
|
|
23
|
-
export * from "./util/Emitter.js";
|
|
24
|
-
export * from "./util/IntervalTimeline.js";
|
|
25
|
-
export * from "./util/StateTimeline.js";
|
|
26
|
-
export * from "./util/Timeline.js";
|
|
27
|
-
export * from "./util/TypeCheck.js";
|
|
28
|
-
|
|
29
22
|
export {
|
|
30
23
|
dbToGain,
|
|
24
|
+
ftom,
|
|
31
25
|
gainToDb,
|
|
32
26
|
intervalToFrequencyRatio,
|
|
33
|
-
ftom,
|
|
34
27
|
mtof,
|
|
35
28
|
} from "./type/Conversions.js";
|
|
36
|
-
export {
|
|
29
|
+
export { defaultArg, optionsFromArguments } from "./util/Defaults.js";
|
|
30
|
+
export * from "./util/Emitter.js";
|
|
31
|
+
export * from "./util/IntervalTimeline.js";
|
|
32
|
+
export * from "./util/StateTimeline.js";
|
|
33
|
+
export * from "./util/Timeline.js";
|
|
34
|
+
export * from "./util/TypeCheck.js";
|
|
37
35
|
|
|
38
36
|
// get the units and export them under the "Unit" namespace
|
|
39
37
|
import * as Unit from "./type/Units.js";
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { expect } from "chai";
|
|
2
|
+
import { Midi as TonalMidi, Note } from "tonal";
|
|
3
|
+
|
|
2
4
|
import { BasicTests } from "../../../test/helper/Basic.js";
|
|
3
5
|
import { Offline } from "../../../test/helper/Offline.js";
|
|
4
6
|
import { getContext } from "../Global.js";
|
|
@@ -7,7 +9,6 @@ import { Midi } from "./Midi.js";
|
|
|
7
9
|
import { Ticks } from "./Ticks.js";
|
|
8
10
|
import { Time } from "./Time.js";
|
|
9
11
|
import { TransportTime } from "./TransportTime.js";
|
|
10
|
-
import { Note, Midi as TonalMidi } from "tonal";
|
|
11
12
|
|
|
12
13
|
describe("FrequencyClass", () => {
|
|
13
14
|
BasicTests(Frequency);
|