mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-27 03:53:07 +00:00
Adding file extensions
This commit is contained in:
parent
593d9067ae
commit
8e4b56853b
318 changed files with 1871 additions and 1871 deletions
|
@ -1,7 +1,7 @@
|
|||
export * from "./core/index";
|
||||
export * from "./source/index";
|
||||
export * from "./signal/index";
|
||||
export * from "./instrument/index";
|
||||
export * from "./event/index";
|
||||
export * from "./effect/index";
|
||||
export * from "./component/index";
|
||||
export * from "./core/index.js";
|
||||
export * from "./source/index.js";
|
||||
export * from "./signal/index.js";
|
||||
export * from "./instrument/index.js";
|
||||
export * from "./event/index.js";
|
||||
export * from "./effect/index.js";
|
||||
export * from "./component/index.js";
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Noise } from "../../source/Noise";
|
||||
import { Analyser } from "./Analyser";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Noise } from "../../source/Noise.js";
|
||||
import { Analyser } from "./Analyser.js";
|
||||
|
||||
describe("Analyser", () => {
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { NormalRange, PowerOfTwo } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Split } from "../channel/Split";
|
||||
import { Gain } from "../../core/context/Gain";
|
||||
import { assert, assertRange } from "../../core/util/Debug";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { NormalRange, PowerOfTwo } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Split } from "../channel/Split.js";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { assert, assertRange } from "../../core/util/Debug.js";
|
||||
|
||||
export type AnalyserType = "fft" | "waveform";
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests, warns } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { DCMeter } from "./DCMeter";
|
||||
import { BasicTests, warns } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { DCMeter } from "./DCMeter.js";
|
||||
|
||||
describe("DCMeter", () => {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { MeterBase, MeterBaseOptions } from "./MeterBase";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { MeterBase, MeterBaseOptions } from "./MeterBase.js";
|
||||
|
||||
export type DCMeterOptions = MeterBaseOptions;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports";
|
||||
import { Noise } from "../../source/Noise";
|
||||
import { FFT } from "./FFT";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports.js";
|
||||
import { Noise } from "../../source/Noise.js";
|
||||
import { FFT } from "./FFT.js";
|
||||
|
||||
describe("FFT", () => {
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { ToneAudioNode } from "../../core/context/ToneAudioNode";
|
||||
import { dbToGain } from "../../core/type/Conversions";
|
||||
import { Hertz, NormalRange, PowerOfTwo } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { MeterBase, MeterBaseOptions } from "./MeterBase";
|
||||
import { assert } from "../../core/util/Debug";
|
||||
import { ToneAudioNode } from "../../core/context/ToneAudioNode.js";
|
||||
import { dbToGain } from "../../core/type/Conversions.js";
|
||||
import { Hertz, NormalRange, PowerOfTwo } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { MeterBase, MeterBaseOptions } from "./MeterBase.js";
|
||||
import { assert } from "../../core/util/Debug.js";
|
||||
|
||||
export interface FFTOptions extends MeterBaseOptions {
|
||||
size: PowerOfTwo;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Follower } from "./Follower";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Follower } from "./Follower.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { expect } from "chai";
|
||||
|
||||
describe("Follower", () => {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Time } from "../../core/type/Units";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { OnePoleFilter } from "../filter/OnePoleFilter";
|
||||
import { Abs } from "../../signal/Abs";
|
||||
import { Time } from "../../core/type/Units.js";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { OnePoleFilter } from "../filter/OnePoleFilter.js";
|
||||
import { Abs } from "../../signal/Abs.js";
|
||||
|
||||
export interface FollowerOptions extends ToneAudioNodeOptions {
|
||||
smoothing: Time;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests, warns } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator";
|
||||
import { Meter } from "./Meter";
|
||||
import { Panner } from "../channel/Panner";
|
||||
import { Merge } from "../channel/Merge";
|
||||
import { BasicTests, warns } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
||||
import { Meter } from "./Meter.js";
|
||||
import { Panner } from "../channel/Panner.js";
|
||||
import { Merge } from "../channel/Merge.js";
|
||||
|
||||
describe("Meter", () => {
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { gainToDb } from "../../core/type/Conversions";
|
||||
import { NormalRange } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { MeterBase, MeterBaseOptions } from "./MeterBase";
|
||||
import { warn } from "../../core/util/Debug";
|
||||
import { Analyser } from "./Analyser";
|
||||
import { gainToDb } from "../../core/type/Conversions.js";
|
||||
import { NormalRange } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { MeterBase, MeterBaseOptions } from "./MeterBase.js";
|
||||
import { warn } from "../../core/util/Debug.js";
|
||||
import { Analyser } from "./Analyser.js";
|
||||
|
||||
export interface MeterOptions extends MeterBaseOptions {
|
||||
smoothing: NormalRange;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Analyser } from "./Analyser";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Analyser } from "./Analyser.js";
|
||||
|
||||
export type MeterBaseOptions = ToneAudioNodeOptions;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports";
|
||||
import { Noise } from "../../source/Noise";
|
||||
import { Waveform } from "./Waveform";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports.js";
|
||||
import { Noise } from "../../source/Noise.js";
|
||||
import { Waveform } from "./Waveform.js";
|
||||
|
||||
describe("Waveform", () => {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { PowerOfTwo } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { MeterBase, MeterBaseOptions } from "./MeterBase";
|
||||
import { PowerOfTwo } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { MeterBase, MeterBaseOptions } from "./MeterBase.js";
|
||||
|
||||
export interface WaveformOptions extends MeterBaseOptions {
|
||||
/**
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Channel } from "./Channel";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { Channel } from "./Channel.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { expect } from "chai";
|
||||
|
||||
describe("Channel", () => {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { AudioRange, Decibels } from "../../core/type/Units";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Solo } from "./Solo";
|
||||
import { PanVol } from "./PanVol";
|
||||
import { Param } from "../../core/context/Param";
|
||||
import { readOnly } from "../../core/util/Interface";
|
||||
import { Gain } from "../../core/context/Gain";
|
||||
import { AudioRange, Decibels } from "../../core/type/Units.js";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Solo } from "./Solo.js";
|
||||
import { PanVol } from "./PanVol.js";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { readOnly } from "../../core/util/Interface.js";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
|
||||
export interface ChannelOptions extends ToneAudioNodeOptions {
|
||||
pan: AudioRange;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect";
|
||||
import { ConstantOutput } from "../../../test/helper/ConstantOutput";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { CrossFade } from "./CrossFade";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect.js";
|
||||
import { ConstantOutput } from "../../../test/helper/ConstantOutput.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { CrossFade } from "./CrossFade.js";
|
||||
|
||||
describe("CrossFade", () => {
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { Gain } from "../../core/context/Gain";
|
||||
import { connect, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { NormalRange } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { readOnly } from "../../core/util/Interface";
|
||||
import { GainToAudio } from "../../signal/GainToAudio";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { connect, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { NormalRange } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { readOnly } from "../../core/util/Interface.js";
|
||||
import { GainToAudio } from "../../signal/GainToAudio.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
|
||||
interface CrossFadeOptions extends ToneAudioNodeOptions {
|
||||
fade: NormalRange;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Merge } from "./Merge";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Merge } from "./Merge.js";
|
||||
|
||||
describe("Merge", () => {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Positive } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Positive } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
|
||||
interface MergeOptions extends ToneAudioNodeOptions {
|
||||
channels: Positive;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { MidSideMerge } from "./MidSideMerge";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect";
|
||||
import { MidSideMerge } from "./MidSideMerge.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect.js";
|
||||
|
||||
describe("MidSideMerge", () => {
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Merge } from "./Merge";
|
||||
import { Add } from "../../signal/Add";
|
||||
import { Multiply } from "../../signal/Multiply";
|
||||
import { Subtract } from "../../signal/Subtract";
|
||||
import { Gain } from "../../core/context/Gain";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Merge } from "./Merge.js";
|
||||
import { Add } from "../../signal/Add.js";
|
||||
import { Multiply } from "../../signal/Multiply.js";
|
||||
import { Subtract } from "../../signal/Subtract.js";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
|
||||
export type MidSideMergeOptions = ToneAudioNodeOptions;
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { MidSideSplit } from "./MidSideSplit";
|
||||
import { MidSideMerge } from "./MidSideMerge";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { Merge } from "./Merge";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect";
|
||||
import { MidSideSplit } from "./MidSideSplit.js";
|
||||
import { MidSideMerge } from "./MidSideMerge.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { Merge } from "./Merge.js";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect.js";
|
||||
import { expect } from "chai";
|
||||
|
||||
describe("MidSideSplit", () => {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Split } from "./Split";
|
||||
import { Add } from "../../signal/Add";
|
||||
import { Multiply } from "../../signal/Multiply";
|
||||
import { Subtract } from "../../signal/Subtract";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Split } from "./Split.js";
|
||||
import { Add } from "../../signal/Add.js";
|
||||
import { Multiply } from "../../signal/Multiply.js";
|
||||
import { Subtract } from "../../signal/Subtract.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
|
||||
export type MidSideSplitOptions = ToneAudioNodeOptions;
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { StereoSignal } from "../../../test/helper/StereoSignal";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Mono } from "./Mono";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { StereoSignal } from "../../../test/helper/StereoSignal.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Mono } from "./Mono.js";
|
||||
|
||||
describe("Mono", () => {
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Gain } from "../../core/context/Gain";
|
||||
import { OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Merge } from "./Merge";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Merge } from "./Merge.js";
|
||||
|
||||
export type MonoOptions = ToneAudioNodeOptions;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { MultibandSplit } from "./MultibandSplit";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { MultibandSplit } from "./MultibandSplit.js";
|
||||
|
||||
describe("MultibandSplit", () => {
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { Gain } from "../../core/context/Gain";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Frequency, Positive } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { readOnly, writable } from "../../core/util/Interface";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Filter } from "../filter/Filter";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Frequency, Positive } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { readOnly, writable } from "../../core/util/Interface.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Filter } from "../filter/Filter.js";
|
||||
|
||||
interface MultibandSplitOptions extends ToneAudioNodeOptions {
|
||||
Q: Positive;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { PanVol } from "./PanVol";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { PanVol } from "./PanVol.js";
|
||||
|
||||
describe("PanVol", () => {
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { readOnly } from "../../core/util/Interface";
|
||||
import { Param } from "../../core/context/Param";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { AudioRange, Decibels } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Panner } from "./Panner";
|
||||
import { Volume } from "./Volume";
|
||||
import { readOnly } from "../../core/util/Interface.js";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { AudioRange, Decibels } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Panner } from "./Panner.js";
|
||||
import { Volume } from "./Volume.js";
|
||||
|
||||
export interface PanVolOptions extends ToneAudioNodeOptions {
|
||||
pan: AudioRange;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Panner } from "./Panner";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Panner } from "./Panner.js";
|
||||
|
||||
describe("Panner", () => {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Param } from "../../core/context/Param";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { AudioRange } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { readOnly } from "../../core/util/Interface";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { AudioRange } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { readOnly } from "../../core/util/Interface.js";
|
||||
|
||||
interface TonePannerOptions extends ToneAudioNodeOptions {
|
||||
pan: AudioRange;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Panner3D } from "./Panner3D";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Panner3D } from "./Panner3D.js";
|
||||
|
||||
describe("Panner3D", () => {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Param } from "../../core/context/Param";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Degrees, GainFactor } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import "../../core/context/Listener";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Degrees, GainFactor } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import "../../core/context/Listener.js";
|
||||
|
||||
export interface Panner3DOptions extends ToneAudioNodeOptions {
|
||||
coneInnerAngle: Degrees;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { connectFrom } from "../../../test/helper/Connect";
|
||||
import { Recorder } from "./Recorder";
|
||||
import { Context } from "../../core/context/Context";
|
||||
import { ToneWithContext } from "../../core/context/ToneWithContext";
|
||||
import { Synth } from "../../instrument/Synth";
|
||||
import { connectFrom } from "../../../test/helper/Connect.js";
|
||||
import { Recorder } from "./Recorder.js";
|
||||
import { Context } from "../../core/context/Context.js";
|
||||
import { ToneWithContext } from "../../core/context/ToneWithContext.js";
|
||||
import { Synth } from "../../instrument/Synth.js";
|
||||
|
||||
describe("Recorder", () => {
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Gain } from "../../core/context/Gain";
|
||||
import { assert } from "../../core/util/Debug";
|
||||
import { theWindow } from "../../core/context/AudioContext";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { PlaybackState } from "../../core/util/StateTimeline";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { assert } from "../../core/util/Debug.js";
|
||||
import { theWindow } from "../../core/context/AudioContext.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { PlaybackState } from "../../core/util/StateTimeline.js";
|
||||
|
||||
export interface RecorderOptions extends ToneAudioNodeOptions {
|
||||
mimeType?: string;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { ConstantOutput } from "../../../test/helper/ConstantOutput";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Solo } from "./Solo";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { ConstantOutput } from "../../../test/helper/ConstantOutput.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Solo } from "./Solo.js";
|
||||
|
||||
describe("Solo", () => {
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { BaseContext } from "../../core/context/BaseContext";
|
||||
import { Gain } from "../../core/context/Gain";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { BaseContext } from "../../core/context/BaseContext.js";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
|
||||
export interface SoloOptions extends ToneAudioNodeOptions {
|
||||
solo: boolean;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { connectTo } from "../../../test/helper/Connect";
|
||||
import { ConstantOutput } from "../../../test/helper/ConstantOutput";
|
||||
import { StereoSignal } from "../../../test/helper/StereoSignal";
|
||||
import { Split } from "./Split";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { connectTo } from "../../../test/helper/Connect.js";
|
||||
import { ConstantOutput } from "../../../test/helper/ConstantOutput.js";
|
||||
import { StereoSignal } from "../../../test/helper/StereoSignal.js";
|
||||
import { Split } from "./Split.js";
|
||||
|
||||
describe("Split", () => {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
|
||||
interface SplitOptions extends ToneAudioNodeOptions {
|
||||
channels: number;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Volume } from "./Volume";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Volume } from "./Volume.js";
|
||||
|
||||
describe("Volume", () => {
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { Gain } from "../../core/context/Gain";
|
||||
import { Param } from "../../core/context/Param";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Decibels } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { readOnly } from "../../core/util/Interface";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Decibels } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { readOnly } from "../../core/util/Interface.js";
|
||||
|
||||
interface VolumeOptions extends ToneAudioNodeOptions {
|
||||
volume: Decibels;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Compressor } from "./Compressor";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Compressor } from "./Compressor.js";
|
||||
|
||||
describe("Compressor", () => {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Param } from "../../core/context/Param";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Decibels, Positive, Time } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { readOnly } from "../../core/util/Interface";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Decibels, Positive, Time } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { readOnly } from "../../core/util/Interface.js";
|
||||
|
||||
export interface CompressorOptions extends ToneAudioNodeOptions {
|
||||
attack: Time;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { Gate } from "./Gate";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator";
|
||||
import { CompareToFile } from "../../../test/helper/CompareToFile";
|
||||
import { Gate } from "./Gate.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
||||
import { CompareToFile } from "../../../test/helper/CompareToFile.js";
|
||||
import { expect } from "chai";
|
||||
|
||||
describe("Gate", () => {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Decibels, Time } from "../../core/type/Units";
|
||||
import { GreaterThan } from "../../signal/GreaterThan";
|
||||
import { Gain } from "../../core/context/Gain";
|
||||
import { Follower } from "../analysis/Follower";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { dbToGain, gainToDb } from "../../core/type/Conversions";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Decibels, Time } from "../../core/type/Units.js";
|
||||
import { GreaterThan } from "../../signal/GreaterThan.js";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { Follower } from "../analysis/Follower.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { dbToGain, gainToDb } from "../../core/type/Conversions.js";
|
||||
|
||||
export interface GateOptions extends ToneAudioNodeOptions {
|
||||
threshold: Decibels;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Limiter } from "./Limiter";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Limiter } from "./Limiter.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { expect } from "chai";
|
||||
|
||||
describe("Limiter", () => {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Decibels } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Compressor } from "./Compressor";
|
||||
import { Param } from "../../core/context/Param";
|
||||
import { readOnly } from "../../core/util/Interface";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Decibels } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Compressor } from "./Compressor.js";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { readOnly } from "../../core/util/Interface.js";
|
||||
|
||||
export interface LimiterOptions extends ToneAudioNodeOptions {
|
||||
threshold: Decibels;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MidSideCompressor } from "./MidSideCompressor";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { MidSideCompressor } from "./MidSideCompressor.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { expect } from "chai";
|
||||
|
||||
describe("MidSideCompressor", () => {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Compressor, CompressorOptions } from "./Compressor";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { MidSideSplit } from "../channel/MidSideSplit";
|
||||
import { MidSideMerge } from "../channel/MidSideMerge";
|
||||
import { readOnly, RecursivePartial } from "../../core/util/Interface";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Compressor, CompressorOptions } from "./Compressor.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { MidSideSplit } from "../channel/MidSideSplit.js";
|
||||
import { MidSideMerge } from "../channel/MidSideMerge.js";
|
||||
import { readOnly, RecursivePartial } from "../../core/util/Interface.js";
|
||||
|
||||
export interface MidSideCompressorOptions extends ToneAudioNodeOptions {
|
||||
mid: Omit<CompressorOptions, keyof ToneAudioNodeOptions>;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { MultibandCompressor } from "./MultibandCompressor";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { MultibandCompressor } from "./MultibandCompressor.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { expect } from "chai";
|
||||
|
||||
describe("MultibandCompressor", () => {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { InputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Compressor, CompressorOptions } from "./Compressor";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { readOnly, RecursivePartial } from "../../core/util/Interface";
|
||||
import { Frequency } from "../../core/type/Units";
|
||||
import { MultibandSplit } from "../channel/MultibandSplit";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Gain } from "../../core/context/Gain";
|
||||
import { InputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Compressor, CompressorOptions } from "./Compressor.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { readOnly, RecursivePartial } from "../../core/util/Interface.js";
|
||||
import { Frequency } from "../../core/type/Units.js";
|
||||
import { MultibandSplit } from "../channel/MultibandSplit.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
|
||||
export interface MultibandCompressorOptions extends ToneAudioNodeOptions {
|
||||
mid: Omit<CompressorOptions, keyof ToneAudioNodeOptions>;
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { CompareToFile } from "../../../test/helper/CompareToFile";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator";
|
||||
import { AmplitudeEnvelope } from "./AmplitudeEnvelope";
|
||||
import { Envelope } from "./Envelope";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { CompareToFile } from "../../../test/helper/CompareToFile.js";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
||||
import { AmplitudeEnvelope } from "./AmplitudeEnvelope.js";
|
||||
import { Envelope } from "./Envelope.js";
|
||||
|
||||
describe("AmplitudeEnvelope", () => {
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Gain } from "../../core/context/Gain";
|
||||
import { NormalRange, Time } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Envelope, EnvelopeOptions } from "./Envelope";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { NormalRange, Time } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Envelope, EnvelopeOptions } from "./Envelope.js";
|
||||
|
||||
/**
|
||||
* AmplitudeEnvelope is a Tone.Envelope connected to a gain node.
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { connectTo } from "../../../test/helper/Connect";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { Envelope, EnvelopeCurve } from "./Envelope";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { connectTo } from "../../../test/helper/Connect.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { Envelope, EnvelopeCurve } from "./Envelope.js";
|
||||
|
||||
describe("Envelope", () => {
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { InputNode, OutputNode } from "../../core/context/ToneAudioNode";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { NormalRange, Time } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { isArray, isObject, isString } from "../../core/util/TypeCheck";
|
||||
import { connectSignal, Signal } from "../../signal/Signal";
|
||||
import { OfflineContext } from "../../core/context/OfflineContext";
|
||||
import { assert } from "../../core/util/Debug";
|
||||
import { range, timeRange } from "../../core/util/Decorator";
|
||||
import { InputNode, OutputNode } from "../../core/context/ToneAudioNode.js";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { NormalRange, Time } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { isArray, isObject, isString } from "../../core/util/TypeCheck.js";
|
||||
import { connectSignal, Signal } from "../../signal/Signal.js";
|
||||
import { OfflineContext } from "../../core/context/OfflineContext.js";
|
||||
import { assert } from "../../core/util/Debug.js";
|
||||
import { range, timeRange } from "../../core/util/Decorator.js";
|
||||
|
||||
type BasicEnvelopeCurve = "linear" | "exponential";
|
||||
type InternalEnvelopeCurve = BasicEnvelopeCurve | number[];
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { FrequencyEnvelope } from "./FrequencyEnvelope";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect";
|
||||
import { Envelope } from "./Envelope";
|
||||
import { FrequencyEnvelope } from "./FrequencyEnvelope.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect.js";
|
||||
import { Envelope } from "./Envelope.js";
|
||||
import { expect } from "chai";
|
||||
|
||||
describe("FrequencyEnvelope", () => {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Frequency, Hertz, NormalRange, Time } from "../../core/type/Units";
|
||||
import { Envelope, EnvelopeOptions } from "./Envelope";
|
||||
import { Scale } from "../../signal/Scale";
|
||||
import { Pow } from "../../signal/Pow";
|
||||
import { assertRange } from "../../core/util/Debug";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Frequency, Hertz, NormalRange, Time } from "../../core/type/Units.js";
|
||||
import { Envelope, EnvelopeOptions } from "./Envelope.js";
|
||||
import { Scale } from "../../signal/Scale.js";
|
||||
import { Pow } from "../../signal/Pow.js";
|
||||
import { assertRange } from "../../core/util/Debug.js";
|
||||
|
||||
export interface FrequencyEnvelopeOptions extends EnvelopeOptions {
|
||||
baseFrequency: Frequency;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator";
|
||||
import { BiquadFilter } from "./BiquadFilter";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
||||
import { BiquadFilter } from "./BiquadFilter.js";
|
||||
|
||||
describe("BiquadFilter", () => {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Cents, Frequency, GainFactor } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Param } from "../../core/context/Param";
|
||||
import { assert } from "../../core/util/Debug";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Cents, Frequency, GainFactor } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { assert } from "../../core/util/Debug.js";
|
||||
|
||||
export interface BiquadFilterOptions extends ToneAudioNodeOptions {
|
||||
frequency: Frequency;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { ToneAudioBuffer } from "../../core/context/ToneAudioBuffer";
|
||||
import { Convolver } from "./Convolver";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { ToneAudioBuffer } from "../../core/context/ToneAudioBuffer.js";
|
||||
import { Convolver } from "./Convolver.js";
|
||||
|
||||
describe("Convolver", () => {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { ToneAudioBuffer } from "../../core/context/ToneAudioBuffer";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Gain } from "../../core/context/Gain";
|
||||
import { noOp } from "../../core/util/Interface";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { ToneAudioBuffer } from "../../core/context/ToneAudioBuffer.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { noOp } from "../../core/util/Interface.js";
|
||||
|
||||
export interface ConvolverOptions extends ToneAudioNodeOptions {
|
||||
onload: () => void;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { connectFrom } from "../../../test/helper/Connect";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { EQ3 } from "./EQ3";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { connectFrom } from "../../../test/helper/Connect.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { EQ3 } from "./EQ3.js";
|
||||
|
||||
describe("EQ3", () => {
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { Gain } from "../../core/context/Gain";
|
||||
import { Param } from "../../core/context/Param";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Decibels, Frequency } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { readOnly, writable } from "../../core/util/Interface";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { MultibandSplit } from "../channel/MultibandSplit";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Decibels, Frequency } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { readOnly, writable } from "../../core/util/Interface.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { MultibandSplit } from "../channel/MultibandSplit.js";
|
||||
|
||||
interface EQ3Options extends ToneAudioNodeOptions {
|
||||
low: Decibels;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { expect } from "chai";
|
||||
import { FeedbackCombFilter } from "./FeedbackCombFilter";
|
||||
import { BitCrusher } from "../../effect/BitCrusher";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { Signal } from "../../signal";
|
||||
import { FeedbackCombFilter } from "./FeedbackCombFilter.js";
|
||||
import { BitCrusher } from "../../effect/BitCrusher.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { Signal } from "../../signal/index.js";
|
||||
|
||||
describe("FeedbackCombFilter", () => {
|
||||
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
import { Gain } from "../../core/context/Gain";
|
||||
import { Param } from "../../core/context/Param";
|
||||
import { connectSeries, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { NormalRange, Time } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { readOnly, RecursivePartial } from "../../core/util/Interface";
|
||||
import { ToneAudioWorklet } from "../../core/worklet/ToneAudioWorklet";
|
||||
import { workletName } from "./FeedbackCombFilter.worklet";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { connectSeries, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { NormalRange, Time } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { readOnly, RecursivePartial } from "../../core/util/Interface.js";
|
||||
import { ToneAudioWorklet } from "../../core/worklet/ToneAudioWorklet.js";
|
||||
import { workletName } from "./FeedbackCombFilter.worklet.js";
|
||||
|
||||
export interface FeedbackCombFilterOptions extends ToneAudioNodeOptions {
|
||||
delayTime: Time;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import "../../core/worklet/SingleIOProcessor.worklet";
|
||||
import "../../core/worklet/DelayLine.worklet";
|
||||
import { registerProcessor } from "../../core/worklet/WorkletGlobalScope";
|
||||
import "../../core/worklet/SingleIOProcessor.worklet.js";
|
||||
import "../../core/worklet/DelayLine.worklet.js";
|
||||
import { registerProcessor } from "../../core/worklet/WorkletGlobalScope.js";
|
||||
|
||||
export const workletName = "feedback-comb-filter";
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator";
|
||||
import { Filter, FilterRollOff } from "./Filter";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
||||
import { Filter, FilterRollOff } from "./Filter.js";
|
||||
|
||||
describe("Filter", () => {
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { Gain } from "../../core/context/Gain";
|
||||
import { connectSeries, ToneAudioNode } from "../../core/context/ToneAudioNode";
|
||||
import { Frequency } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { readOnly, writable } from "../../core/util/Interface";
|
||||
import { isNumber } from "../../core/util/TypeCheck";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { assert } from "../../core/util/Debug";
|
||||
import { BiquadFilter, BiquadFilterOptions } from "./BiquadFilter";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { connectSeries, ToneAudioNode } from "../../core/context/ToneAudioNode.js";
|
||||
import { Frequency } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { readOnly, writable } from "../../core/util/Interface.js";
|
||||
import { isNumber } from "../../core/util/TypeCheck.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { assert } from "../../core/util/Debug.js";
|
||||
import { BiquadFilter, BiquadFilterOptions } from "./BiquadFilter.js";
|
||||
|
||||
export type FilterRollOff = -12 | -24 | -48 | -96;
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { LowpassCombFilter } from "./LowpassCombFilter";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator";
|
||||
import { LowpassCombFilter } from "./LowpassCombFilter.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
||||
import { expect } from "chai";
|
||||
|
||||
describe("LowpassCombFilter", () => {
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { Param } from "../../core/context/Param";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Frequency, NormalRange, Time } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { RecursivePartial } from "../../core/util/Interface";
|
||||
import { FeedbackCombFilter } from "./FeedbackCombFilter";
|
||||
import { OnePoleFilter } from "./OnePoleFilter";
|
||||
import { Param } from "../../core/context/Param.js";
|
||||
import { InputNode, OutputNode, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Frequency, NormalRange, Time } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { RecursivePartial } from "../../core/util/Interface.js";
|
||||
import { FeedbackCombFilter } from "./FeedbackCombFilter.js";
|
||||
import { OnePoleFilter } from "./OnePoleFilter.js";
|
||||
|
||||
interface LowpassCombFilterOptions extends ToneAudioNodeOptions {
|
||||
delayTime: Time;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { OnePoleFilter } from "./OnePoleFilter";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator";
|
||||
import { OnePoleFilter } from "./OnePoleFilter.js";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { Oscillator } from "../../source/oscillator/Oscillator.js";
|
||||
import { expect } from "chai";
|
||||
import { CompareToFile } from "../../../test/helper/CompareToFile";
|
||||
import { atTime, Offline } from "../../../test/helper/Offline";
|
||||
import { CompareToFile } from "../../../test/helper/CompareToFile.js";
|
||||
import { atTime, Offline } from "../../../test/helper/Offline.js";
|
||||
|
||||
describe("OnePoleFilter", () => {
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Frequency } from "../../core/type/Units";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults";
|
||||
import { Gain } from "../../core/context/Gain";
|
||||
import { ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
import { Frequency } from "../../core/type/Units.js";
|
||||
import { optionsFromArguments } from "../../core/util/Defaults.js";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
|
||||
export type OnePoleFilterType = "highpass" | "lowpass";
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { CompareToFile } from "../../../test/helper/CompareToFile";
|
||||
import { connectTo } from "../../../test/helper/Connect";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { connect } from "../../core/context/ToneAudioNode";
|
||||
import { Subtract } from "../../signal/Subtract";
|
||||
import { PhaseShiftAllpass } from "./PhaseShiftAllpass";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { CompareToFile } from "../../../test/helper/CompareToFile.js";
|
||||
import { connectTo } from "../../../test/helper/Connect.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { connect } from "../../core/context/ToneAudioNode.js";
|
||||
import { Subtract } from "../../signal/Subtract.js";
|
||||
import { PhaseShiftAllpass } from "./PhaseShiftAllpass.js";
|
||||
|
||||
describe("PhaseShiftAllpass", () => {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Gain } from "../../core/context/Gain";
|
||||
import { connectSeries, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode";
|
||||
import { Gain } from "../../core/context/Gain.js";
|
||||
import { connectSeries, ToneAudioNode, ToneAudioNodeOptions } from "../../core/context/ToneAudioNode.js";
|
||||
|
||||
/**
|
||||
* PhaseShiftAllpass is an very efficient implementation of a Hilbert Transform
|
||||
|
|
|
@ -1,39 +1,39 @@
|
|||
export * from "./analysis/Analyser";
|
||||
export * from "./analysis/Meter";
|
||||
export * from "./analysis/FFT";
|
||||
export * from "./analysis/DCMeter";
|
||||
export * from "./analysis/Waveform";
|
||||
export * from "./analysis/Follower";
|
||||
export * from "./analysis/Analyser.js";
|
||||
export * from "./analysis/Meter.js";
|
||||
export * from "./analysis/FFT.js";
|
||||
export * from "./analysis/DCMeter.js";
|
||||
export * from "./analysis/Waveform.js";
|
||||
export * from "./analysis/Follower.js";
|
||||
|
||||
export * from "./channel/Channel";
|
||||
export * from "./channel/CrossFade";
|
||||
export * from "./channel/Merge";
|
||||
export * from "./channel/MidSideMerge";
|
||||
export * from "./channel/MidSideSplit";
|
||||
export * from "./channel/Mono";
|
||||
export * from "./channel/MultibandSplit";
|
||||
export * from "./channel/Panner";
|
||||
export * from "./channel/Panner3D";
|
||||
export * from "./channel/PanVol";
|
||||
export * from "./channel/Recorder";
|
||||
export * from "./channel/Solo";
|
||||
export * from "./channel/Split";
|
||||
export * from "./channel/Volume";
|
||||
export * from "./channel/Channel.js";
|
||||
export * from "./channel/CrossFade.js";
|
||||
export * from "./channel/Merge.js";
|
||||
export * from "./channel/MidSideMerge.js";
|
||||
export * from "./channel/MidSideSplit.js";
|
||||
export * from "./channel/Mono.js";
|
||||
export * from "./channel/MultibandSplit.js";
|
||||
export * from "./channel/Panner.js";
|
||||
export * from "./channel/Panner3D.js";
|
||||
export * from "./channel/PanVol.js";
|
||||
export * from "./channel/Recorder.js";
|
||||
export * from "./channel/Solo.js";
|
||||
export * from "./channel/Split.js";
|
||||
export * from "./channel/Volume.js";
|
||||
|
||||
export * from "./dynamics/Compressor";
|
||||
export * from "./dynamics/Gate";
|
||||
export * from "./dynamics/Limiter";
|
||||
export * from "./dynamics/MidSideCompressor";
|
||||
export * from "./dynamics/MultibandCompressor";
|
||||
export * from "./dynamics/Compressor.js";
|
||||
export * from "./dynamics/Gate.js";
|
||||
export * from "./dynamics/Limiter.js";
|
||||
export * from "./dynamics/MidSideCompressor.js";
|
||||
export * from "./dynamics/MultibandCompressor.js";
|
||||
|
||||
export * from "./envelope/AmplitudeEnvelope";
|
||||
export * from "./envelope/Envelope";
|
||||
export * from "./envelope/FrequencyEnvelope";
|
||||
export * from "./envelope/AmplitudeEnvelope.js";
|
||||
export * from "./envelope/Envelope.js";
|
||||
export * from "./envelope/FrequencyEnvelope.js";
|
||||
|
||||
export * from "./filter/EQ3";
|
||||
export * from "./filter/Filter";
|
||||
export * from "./filter/OnePoleFilter";
|
||||
export * from "./filter/FeedbackCombFilter";
|
||||
export * from "./filter/LowpassCombFilter";
|
||||
export * from "./filter/Convolver";
|
||||
export * from "./filter/BiquadFilter";
|
||||
export * from "./filter/EQ3.js";
|
||||
export * from "./filter/Filter.js";
|
||||
export * from "./filter/OnePoleFilter.js";
|
||||
export * from "./filter/FeedbackCombFilter.js";
|
||||
export * from "./filter/LowpassCombFilter.js";
|
||||
export * from "./filter/Convolver.js";
|
||||
export * from "./filter/BiquadFilter.js";
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import { version } from "../version";
|
||||
import { AnyAudioContext, hasAudioContext, theWindow } from "./context/AudioContext";
|
||||
import { Context } from "./context/Context";
|
||||
import { DummyContext } from "./context/DummyContext";
|
||||
import { BaseContext } from "./context/BaseContext";
|
||||
import { OfflineContext } from "./context/OfflineContext";
|
||||
import { isAudioContext, isOfflineAudioContext } from "./util/AdvancedTypeCheck";
|
||||
import { version } from "../version.js";
|
||||
import { AnyAudioContext, hasAudioContext, theWindow } from "./context/AudioContext.js";
|
||||
import { Context } from "./context/Context.js";
|
||||
import { DummyContext } from "./context/DummyContext.js";
|
||||
import { BaseContext } from "./context/BaseContext.js";
|
||||
import { OfflineContext } from "./context/OfflineContext.js";
|
||||
import { isAudioContext, isOfflineAudioContext } from "./util/AdvancedTypeCheck.js";
|
||||
|
||||
/**
|
||||
* This dummy context is used to avoid throwing immediate errors when importing in Node.js
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @copyright 2014-2019 Yotam Mann
|
||||
*/
|
||||
import { version } from "../version";
|
||||
import { theWindow } from "./context/AudioContext";
|
||||
import { log } from "./util/Debug";
|
||||
import { version } from "../version.js";
|
||||
import { theWindow } from "./context/AudioContext.js";
|
||||
import { log } from "./util/Debug.js";
|
||||
|
||||
//-------------------------------------
|
||||
// TONE
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { atTime, Offline, whenBetween } from "../../../test/helper/Offline";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports";
|
||||
import { noOp } from "../util/Interface";
|
||||
import { Clock } from "./Clock";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { atTime, Offline, whenBetween } from "../../../test/helper/Offline.js";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports.js";
|
||||
import { noOp } from "../util/Interface.js";
|
||||
import { Clock } from "./Clock.js";
|
||||
|
||||
describe("Clock", () => {
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { ToneWithContext, ToneWithContextOptions } from "../context/ToneWithContext";
|
||||
import { Frequency, Hertz, Seconds, Ticks, Time } from "../type/Units";
|
||||
import { optionsFromArguments } from "../util/Defaults";
|
||||
import { Emitter } from "../util/Emitter";
|
||||
import { noOp, readOnly } from "../util/Interface";
|
||||
import { PlaybackState, StateTimeline } from "../util/StateTimeline";
|
||||
import { TickSignal } from "./TickSignal";
|
||||
import { TickSource } from "./TickSource";
|
||||
import { assertContextRunning } from "../util/Debug";
|
||||
import { ToneWithContext, ToneWithContextOptions } from "../context/ToneWithContext.js";
|
||||
import { Frequency, Hertz, Seconds, Ticks, Time } from "../type/Units.js";
|
||||
import { optionsFromArguments } from "../util/Defaults.js";
|
||||
import { Emitter } from "../util/Emitter.js";
|
||||
import { noOp, readOnly } from "../util/Interface.js";
|
||||
import { PlaybackState, StateTimeline } from "../util/StateTimeline.js";
|
||||
import { TickSignal } from "./TickSignal.js";
|
||||
import { TickSource } from "./TickSource.js";
|
||||
import { assertContextRunning } from "../util/Debug.js";
|
||||
|
||||
type ClockCallback = (time: Seconds, ticks?: Ticks) => void;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { BasicTests, testAudioContext } from "../../../test/helper/Basic";
|
||||
import { BasicTests, testAudioContext } from "../../../test/helper/Basic.js";
|
||||
// import { atTime, Offline } from "../../../test/helper/Offline";
|
||||
import { TickParam } from "./TickParam";
|
||||
import { TickParam } from "./TickParam.js";
|
||||
|
||||
describe("TickParam", () => {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { AutomationEvent, Param, ParamOptions } from "../context/Param";
|
||||
import { Seconds, Ticks, Time, UnitMap, UnitName } from "../type/Units";
|
||||
import { optionsFromArguments } from "../util/Defaults";
|
||||
import { Timeline } from "../util/Timeline";
|
||||
import { isUndef } from "../util/TypeCheck";
|
||||
import { AutomationEvent, Param, ParamOptions } from "../context/Param.js";
|
||||
import { Seconds, Ticks, Time, UnitMap, UnitName } from "../type/Units.js";
|
||||
import { optionsFromArguments } from "../util/Defaults.js";
|
||||
import { Timeline } from "../util/Timeline.js";
|
||||
import { isUndef } from "../util/TypeCheck.js";
|
||||
|
||||
type TickAutomationEvent = AutomationEvent & {
|
||||
ticks: number;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { TickSignal } from "./TickSignal";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { TickSignal } from "./TickSignal.js";
|
||||
|
||||
describe("TickSignal", () => {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { Signal, SignalOptions } from "../../signal/Signal";
|
||||
import { InputNode } from "../context/ToneAudioNode";
|
||||
import { Seconds, Ticks, Time, UnitMap, UnitName } from "../type/Units";
|
||||
import { optionsFromArguments } from "../util/Defaults";
|
||||
import { TickParam } from "./TickParam";
|
||||
import { Signal, SignalOptions } from "../../signal/Signal.js";
|
||||
import { InputNode } from "../context/ToneAudioNode.js";
|
||||
import { Seconds, Ticks, Time, UnitMap, UnitName } from "../type/Units.js";
|
||||
import { optionsFromArguments } from "../util/Defaults.js";
|
||||
import { TickParam } from "./TickParam.js";
|
||||
|
||||
interface TickSignalOptions<TypeName extends UnitName> extends SignalOptions<TypeName> {
|
||||
value: UnitMap[TypeName];
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { TickSource } from "./TickSource";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { TickSource } from "./TickSource.js";
|
||||
|
||||
describe("TickSource", () => {
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { ToneWithContext, ToneWithContextOptions } from "../context/ToneWithContext";
|
||||
import { Seconds, Ticks, Time } from "../type/Units";
|
||||
import { optionsFromArguments } from "../util/Defaults";
|
||||
import { readOnly } from "../util/Interface";
|
||||
import { PlaybackState, StateTimeline, StateTimelineEvent } from "../util/StateTimeline";
|
||||
import { Timeline, TimelineEvent } from "../util/Timeline";
|
||||
import { isDefined } from "../util/TypeCheck";
|
||||
import { TickSignal } from "./TickSignal";
|
||||
import { EQ } from "../util/Math";
|
||||
import { ToneWithContext, ToneWithContextOptions } from "../context/ToneWithContext.js";
|
||||
import { Seconds, Ticks, Time } from "../type/Units.js";
|
||||
import { optionsFromArguments } from "../util/Defaults.js";
|
||||
import { readOnly } from "../util/Interface.js";
|
||||
import { PlaybackState, StateTimeline, StateTimelineEvent } from "../util/StateTimeline.js";
|
||||
import { Timeline, TimelineEvent } from "../util/Timeline.js";
|
||||
import { isDefined } from "../util/TypeCheck.js";
|
||||
import { TickSignal } from "./TickSignal.js";
|
||||
import { EQ } from "../util/Math.js";
|
||||
|
||||
interface TickSourceOptions extends ToneWithContextOptions {
|
||||
frequency: number;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { expect } from "chai";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports";
|
||||
import { Ticker } from "./Ticker";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports.js";
|
||||
import { Ticker } from "./Ticker.js";
|
||||
|
||||
describe("Ticker", () => {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Seconds } from "../type/Units";
|
||||
import { Seconds } from "../type/Units.js";
|
||||
|
||||
export type TickerClockSource = "worker" | "timeout" | "offline";
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { expect } from "chai";
|
||||
import { atTime, Offline, whenBetween } from "../../../test/helper/Offline";
|
||||
import { Time } from "../type/Time";
|
||||
import { noOp } from "../util/Interface";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { TransportTime } from "../type/TransportTime";
|
||||
import { TransportClass } from "./Transport";
|
||||
import { atTime, Offline, whenBetween } from "../../../test/helper/Offline.js";
|
||||
import { Time } from "../type/Time.js";
|
||||
import { noOp } from "../util/Interface.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import { TransportTime } from "../type/TransportTime.js";
|
||||
import { TransportClass } from "./Transport.js";
|
||||
// importing for side affects
|
||||
import "../context/Destination";
|
||||
import { warns } from "../../../test/helper/Basic";
|
||||
import { Synth } from "../../instrument/Synth";
|
||||
import "../context/Destination.js";
|
||||
import { warns } from "../../../test/helper/Basic.js";
|
||||
import { Synth } from "../../instrument/Synth.js";
|
||||
|
||||
describe("Transport", () => {
|
||||
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
import { TimeClass } from "../../core/type/Time";
|
||||
import { PlaybackState } from "../../core/util/StateTimeline";
|
||||
import { TimelineValue } from "../../core/util/TimelineValue";
|
||||
import { ToneAudioNode } from "../../core/context/ToneAudioNode";
|
||||
import { Pow } from "../../signal/Pow";
|
||||
import { Signal } from "../../signal/Signal";
|
||||
import { TimeClass } from "../../core/type/Time.js";
|
||||
import { PlaybackState } from "../../core/util/StateTimeline.js";
|
||||
import { TimelineValue } from "../../core/util/TimelineValue.js";
|
||||
import { ToneAudioNode } from "../../core/context/ToneAudioNode.js";
|
||||
import { Pow } from "../../signal/Pow.js";
|
||||
import { Signal } from "../../signal/Signal.js";
|
||||
import {
|
||||
onContextClose,
|
||||
onContextInit,
|
||||
} from "../context/ContextInitialization";
|
||||
import { Gain } from "../context/Gain";
|
||||
} from "../context/ContextInitialization.js";
|
||||
import { Gain } from "../context/Gain.js";
|
||||
import {
|
||||
ToneWithContext,
|
||||
ToneWithContextOptions,
|
||||
} from "../context/ToneWithContext";
|
||||
import { TicksClass } from "../type/Ticks";
|
||||
import { TransportTimeClass } from "../type/TransportTime";
|
||||
} from "../context/ToneWithContext.js";
|
||||
import { TicksClass } from "../type/Ticks.js";
|
||||
import { TransportTimeClass } from "../type/TransportTime.js";
|
||||
import {
|
||||
BarsBeatsSixteenths,
|
||||
BPM,
|
||||
|
@ -25,18 +25,18 @@ import {
|
|||
Time,
|
||||
TimeSignature,
|
||||
TransportTime,
|
||||
} from "../type/Units";
|
||||
import { enterScheduledCallback } from "../util/Debug";
|
||||
import { optionsFromArguments } from "../util/Defaults";
|
||||
import { Emitter } from "../util/Emitter";
|
||||
import { readOnly, writable } from "../util/Interface";
|
||||
import { IntervalTimeline } from "../util/IntervalTimeline";
|
||||
import { Timeline } from "../util/Timeline";
|
||||
import { isArray, isDefined } from "../util/TypeCheck";
|
||||
import { Clock } from "./Clock";
|
||||
import { TickParam } from "./TickParam";
|
||||
import { TransportEvent } from "./TransportEvent";
|
||||
import { TransportRepeatEvent } from "./TransportRepeatEvent";
|
||||
} from "../type/Units.js";
|
||||
import { enterScheduledCallback } from "../util/Debug.js";
|
||||
import { optionsFromArguments } from "../util/Defaults.js";
|
||||
import { Emitter } from "../util/Emitter.js";
|
||||
import { readOnly, writable } from "../util/Interface.js";
|
||||
import { IntervalTimeline } from "../util/IntervalTimeline.js";
|
||||
import { Timeline } from "../util/Timeline.js";
|
||||
import { isArray, isDefined } from "../util/TypeCheck.js";
|
||||
import { Clock } from "./Clock.js";
|
||||
import { TickParam } from "./TickParam.js";
|
||||
import { TransportEvent } from "./TransportEvent.js";
|
||||
import { TransportRepeatEvent } from "./TransportRepeatEvent.js";
|
||||
|
||||
interface TransportOptions extends ToneWithContextOptions {
|
||||
bpm: BPM;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { expect } from "chai";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { TransportClass } from "./Transport";
|
||||
import { TransportEvent } from "./TransportEvent";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { TransportClass } from "./Transport.js";
|
||||
import { TransportEvent } from "./TransportEvent.js";
|
||||
|
||||
describe("TransportEvent", () => {
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { Seconds, Ticks } from "../type/Units";
|
||||
import { noOp } from "../util/Interface";
|
||||
import { Seconds, Ticks } from "../type/Units.js";
|
||||
import { noOp } from "../util/Interface.js";
|
||||
|
||||
type Transport = import("../clock/Transport").TransportClass;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { expect } from "chai";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { TransportClass } from "./Transport";
|
||||
import { TransportRepeatEvent } from "./TransportRepeatEvent";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { TransportClass } from "./Transport.js";
|
||||
import { TransportRepeatEvent } from "./TransportRepeatEvent.js";
|
||||
|
||||
describe("TransportRepeatEvent", () => {
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { BaseContext } from "../context/BaseContext";
|
||||
import { TicksClass } from "../type/Ticks";
|
||||
import { Seconds, Ticks, Time } from "../type/Units";
|
||||
import { TransportEvent, TransportEventOptions } from "./TransportEvent";
|
||||
import { GT, LT } from "../util/Math";
|
||||
import { BaseContext } from "../context/BaseContext.js";
|
||||
import { TicksClass } from "../type/Ticks.js";
|
||||
import { Seconds, Ticks, Time } from "../type/Units.js";
|
||||
import { TransportEvent, TransportEventOptions } from "./TransportEvent.js";
|
||||
import { GT, LT } from "../util/Math.js";
|
||||
|
||||
type Transport = import("../clock/Transport").TransportClass;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Time, UnitMap, UnitName } from "../type/Units";
|
||||
import { Time, UnitMap, UnitName } from "../type/Units.js";
|
||||
|
||||
/**
|
||||
* Abstract base class for {@link Param} and {@link Signal}
|
||||
|
|
|
@ -3,8 +3,8 @@ import {
|
|||
AudioWorkletNode as stdAudioWorkletNode,
|
||||
OfflineAudioContext as stdOfflineAudioContext
|
||||
} from "standardized-audio-context";
|
||||
import { assert } from "../util/Debug";
|
||||
import { isDefined } from "../util/TypeCheck";
|
||||
import { assert } from "../util/Debug.js";
|
||||
import { isDefined } from "../util/TypeCheck.js";
|
||||
|
||||
/**
|
||||
* Create a new AudioContext
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Seconds } from "../type/Units";
|
||||
import { Emitter } from "../util/Emitter";
|
||||
import { AnyAudioContext } from "./AudioContext";
|
||||
import { Seconds } from "../type/Units.js";
|
||||
import { Emitter } from "../util/Emitter.js";
|
||||
import { AnyAudioContext } from "./AudioContext.js";
|
||||
|
||||
type Draw = import("../util/Draw").DrawClass;
|
||||
type Destination = import("./Destination").DestinationClass;
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { expect } from "chai";
|
||||
import { ConstantOutput } from "../../../test/helper/ConstantOutput";
|
||||
import { Offline } from "../../../test/helper/Offline";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports";
|
||||
import { TransportClass } from "../clock/Transport";
|
||||
import { getContext } from "../Global";
|
||||
import { createAudioContext } from "./AudioContext";
|
||||
import { Context } from "./Context";
|
||||
import { DestinationClass } from "./Destination";
|
||||
import { ListenerClass } from "./Listener";
|
||||
import { DrawClass } from "../util/Draw";
|
||||
import { connect } from "./ToneAudioNode";
|
||||
import { ConstantOutput } from "../../../test/helper/ConstantOutput.js";
|
||||
import { Offline } from "../../../test/helper/Offline.js";
|
||||
import { ONLINE_TESTING } from "../../../test/helper/Supports.js";
|
||||
import { TransportClass } from "../clock/Transport.js";
|
||||
import { getContext } from "../Global.js";
|
||||
import { createAudioContext } from "./AudioContext.js";
|
||||
import { Context } from "./Context.js";
|
||||
import { DestinationClass } from "./Destination.js";
|
||||
import { ListenerClass } from "./Listener.js";
|
||||
import { DrawClass } from "../util/Draw.js";
|
||||
import { connect } from "./ToneAudioNode.js";
|
||||
|
||||
describe("Context", () => {
|
||||
it("creates and disposes the classes attached to the context", async () => {
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
import { Ticker, TickerClockSource } from "../clock/Ticker";
|
||||
import { Seconds } from "../type/Units";
|
||||
import { isAudioContext } from "../util/AdvancedTypeCheck";
|
||||
import { optionsFromArguments } from "../util/Defaults";
|
||||
import { Timeline } from "../util/Timeline";
|
||||
import { isDefined } from "../util/TypeCheck";
|
||||
import { Ticker, TickerClockSource } from "../clock/Ticker.js";
|
||||
import { Seconds } from "../type/Units.js";
|
||||
import { isAudioContext } from "../util/AdvancedTypeCheck.js";
|
||||
import { optionsFromArguments } from "../util/Defaults.js";
|
||||
import { Timeline } from "../util/Timeline.js";
|
||||
import { isDefined } from "../util/TypeCheck.js";
|
||||
import {
|
||||
AnyAudioContext,
|
||||
createAudioContext,
|
||||
createAudioWorkletNode,
|
||||
} from "./AudioContext";
|
||||
import { closeContext, initializeContext } from "./ContextInitialization";
|
||||
import { BaseContext, ContextLatencyHint } from "./BaseContext";
|
||||
import { assert } from "../util/Debug";
|
||||
} from "./AudioContext.js";
|
||||
import { closeContext, initializeContext } from "./ContextInitialization.js";
|
||||
import { BaseContext, ContextLatencyHint } from "./BaseContext.js";
|
||||
import { assert } from "../util/Debug.js";
|
||||
|
||||
type Transport = import("../clock/Transport").TransportClass;
|
||||
type Destination = import("./Destination").DestinationClass;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import { expect } from "chai";
|
||||
import { BasicTests } from "../../../test/helper/Basic";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio";
|
||||
import { connect } from "../context/ToneAudioNode";
|
||||
import { Delay } from "./Delay";
|
||||
import { BasicTests } from "../../../test/helper/Basic.js";
|
||||
import { connectFrom, connectTo } from "../../../test/helper/Connect.js";
|
||||
import { PassAudio } from "../../../test/helper/PassAudio.js";
|
||||
import { connect } from "../context/ToneAudioNode.js";
|
||||
import { Delay } from "./Delay.js";
|
||||
|
||||
describe("Delay", () => {
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue