fix test
This commit is contained in:
parent
c6c5a3035c
commit
4ba9d47bff
1 changed files with 1 additions and 2 deletions
|
|
@ -115,12 +115,11 @@ class AMProcessor extends AudioWorkletProcessor {
|
||||||
const secondsPassed = cycle / cps;
|
const secondsPassed = cycle / cps;
|
||||||
this.phase = _mod(secondsPassed * frequency + phaseoffset, 1);
|
this.phase = _mod(secondsPassed * frequency + phaseoffset, 1);
|
||||||
}
|
}
|
||||||
|
// eslint-disable-next-line no-undef
|
||||||
const dt = frequency / sampleRate;
|
const dt = frequency / sampleRate;
|
||||||
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++) {
|
||||||
const modval = clamp(waveshapes.tri(this.phase, skew) * depth + (1 - depth), 0, 1);
|
const modval = clamp(waveshapes.tri(this.phase, skew) * depth + (1 - depth), 0, 1);
|
||||||
|
|
||||||
output[i][n] = input[i][n] * modval;
|
output[i][n] = input[i][n] * modval;
|
||||||
}
|
}
|
||||||
this.incrementPhase(dt);
|
this.incrementPhase(dt);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue