From a22d14de7c9b30d902b1cf5ae1c0425424eaef53 Mon Sep 17 00:00:00 2001 From: cab file <32414797+cabfile@users.noreply.github.com> Date: Mon, 25 Dec 2023 17:13:52 +0300 Subject: [PATCH] fix detune + transpose down to be correct with the tracker (c is actually a# in the original) --- zzfxm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zzfxm.js b/zzfxm.js index 86dfc26..950f452 100644 --- a/zzfxm.js +++ b/zzfxm.js @@ -110,7 +110,7 @@ zzfxM = (instruments, patterns, sequence, BPM = 125) => { ] = sampleCache[[instrument, note]] || ( // add sample to cache instrumentParameters = [...instruments[instrument]], - instrumentParameters[2] *= 2 ** ((note - 12) / 12), + instrumentParameters[2] *= 2 ** ((note - 46) / 12), // allow negative values to stop notes note > 0 ? zzfxG(...instrumentParameters) : []