halve detune range

This commit is contained in:
Felix Roos 2024-03-21 21:26:43 +01:00
parent 5982e3ebea
commit 1d48d5d5ef

View File

@ -166,7 +166,7 @@ function getUnisonDetune(unison, detune, voiceIndex) {
if (unison < 2) {
return 0;
}
return lerp(-detune, detune, voiceIndex / (unison - 1));
return lerp(-detune * 0.5, detune * 0.5, voiceIndex / (unison - 1));
}
class SuperSawOscillatorProcessor extends AudioWorkletProcessor {
constructor() {