From 5e7a4f44e2e43431b7274100e6502be1e2ab299b Mon Sep 17 00:00:00 2001 From: guillaumeAbel Date: Wed, 19 Nov 2025 20:49:47 +0100 Subject: [PATCH] Replace double condition --- allscripts.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/allscripts.js b/allscripts.js index 7a1adbf..bff8a4c 100644 --- a/allscripts.js +++ b/allscripts.js @@ -2,9 +2,9 @@ register('o', (orbit, pat) => pat.orbit(orbit)) samples('http://localhost:5432') setCpm(140 / 4) +// setGainCurve(x => x**2) setGainCurve(x => Math.pow(x, 2)) -// setGainCurve(x => x**2) function blockArrange(patArr, modifiers = []) { return stack( ...patArr.map(([pat, maskPat]) => { @@ -99,8 +99,7 @@ register('grab', function (scale, pat) { let note = isObject ? hap.value.n : hap.value; if (typeof note === 'number') { note = note; - } - if (typeof note === 'string') { + } else if (typeof note === 'string') { note = noteToMidi(note); }