diff --git a/Tone/component/analysis/Meter.test.ts b/Tone/component/analysis/Meter.test.ts index c272437d..2324ae4e 100644 --- a/Tone/component/analysis/Meter.test.ts +++ b/Tone/component/analysis/Meter.test.ts @@ -30,7 +30,7 @@ describe("Meter", () => { it("returns an array of channels if channels > 1", () => { const meter = new Meter({ - channels: 4, + channelCount: 4, }); expect((meter.getValue() as number[]).length).to.equal(4); meter.dispose(); diff --git a/Tone/component/analysis/Meter.ts b/Tone/component/analysis/Meter.ts index d90ceb7c..88a6c1c1 100644 --- a/Tone/component/analysis/Meter.ts +++ b/Tone/component/analysis/Meter.ts @@ -8,7 +8,7 @@ import { Analyser } from "./Analyser"; export interface MeterOptions extends MeterBaseOptions { smoothing: NormalRange; normalRange: boolean; - channels: number; + channelCount: number; } /** @@ -59,7 +59,7 @@ export class Meter extends MeterBase { context: this.context, size: 256, type: "waveform", - channels: options.channels, + channels: options.channelCount, }); this.smoothing = options.smoothing, @@ -70,7 +70,7 @@ export class Meter extends MeterBase { return Object.assign(MeterBase.getDefaults(), { smoothing: 0.8, normalRange: false, - channels: 1, + channelCount: 1, }); }