mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
coarse: handle non-integer parameters more smoothly
This commit is contained in:
@@ -214,7 +214,7 @@ class CoarseProcessor extends AudioWorkletProcessor {
|
||||
coarse = Math.max(1, coarse);
|
||||
for (let n = 0; n < blockSize; n++) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user