coarse: handle non-integer parameters more smoothly
This commit is contained in:
parent
b4e171f5b4
commit
751f924a4d
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ class CoarseProcessor extends AudioWorkletProcessor {
|
||||||
coarse = Math.max(1, coarse);
|
coarse = Math.max(1, coarse);
|
||||||
for (let n = 0; n < blockSize; n++) {
|
for (let n = 0; n < blockSize; n++) {
|
||||||
for (let i = 0; i < input.length; i++) {
|
for (let i = 0; i < input.length; i++) {
|
||||||
output[i][n] = n % coarse === 0 ? input[i][n] : output[i][n - 1];
|
output[i][n] = n % coarse < 1 ? input[i][n] : output[i][n - 1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue