summaryrefslogtreecommitdiff
path: root/client/lib
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2025-07-09 19:28:32 +0200
committerjulian laplace <julescarbon@gmail.com>2025-07-09 19:28:32 +0200
commitd7cf2d2404d205e9480befaf6a2b454471de75a2 (patch)
tree7fc5b47d528cd5a73dd7751bb7f70347701510da /client/lib
parente3bf17a4782cd86bdbfbc51fa5ef3af0ec32a34f (diff)
test equal tempered scale
Diffstat (limited to 'client/lib')
-rw-r--r--client/lib/scales.js2
-rw-r--r--client/lib/util.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/client/lib/scales.js b/client/lib/scales.js
index 1e5afd6..f122ba0 100644
--- a/client/lib/scales.js
+++ b/client/lib/scales.js
@@ -71,3 +71,5 @@ export const scales = [
: [2 ** (i + Math.ceil(Math.max(0, (j * 1.2) / 2))), 3 ** j],
},
];
+
+export const equal = { name: "equal", get: (i, j) => [i, j + 1] };
diff --git a/client/lib/util.js b/client/lib/util.js
index d0a3914..95f1bc4 100644
--- a/client/lib/util.js
+++ b/client/lib/util.js
@@ -27,7 +27,7 @@ function roundInterval(interval) {
return Math.round(interval * 10000000);
}
const intervalInRange = (interval, root) =>
- 20 < interval * root && interval * root < 15000;
+ 20 < interval * root && interval * root < 20000;
const lerp = (n, a, b) => (b - a) * n + a;
const clamp = (n, a = 0, b = 1) => (n < a ? a : n < b ? n : b);