From 0c6ca220c4955634eb14765f64d27285098e888b Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Thu, 1 Feb 2024 15:56:22 +0100 Subject: [PATCH] fix web processor.js bug wrt stereo input --- templates/web/src/processor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web/src/processor.js b/templates/web/src/processor.js index bb14d15..530e72e 100644 --- a/templates/web/src/processor.js +++ b/templates/web/src/processor.js @@ -91,7 +91,7 @@ class Processor extends AudioWorkletProcessor { this.x[j][k].fill(0); } else { for (var k = 0; k < this.x[j].length; k++) - if (k <= input.length) + if (k < input.length) this.x[j][k].set(input[k].subarray(i, s)); else this.x[j][k].fill(0);