From 966e3b080f039fa1c62113e75e1e1481d7e19439 Mon Sep 17 00:00:00 2001 From: julian laplace Date: Mon, 7 Jul 2025 12:13:51 +0200 Subject: trigger index --- client/lib/util.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'client/lib') diff --git a/client/lib/util.js b/client/lib/util.js index 8696a50..5bf93dc 100644 --- a/client/lib/util.js +++ b/client/lib/util.js @@ -26,6 +26,7 @@ function mod(n, m) { function roundFreq(freq) { return Math.round(freq * 100); } +const frequencyInRange = (freq) => 20 < freq && freq < 15000; function requestAudioContext(fn) { if (window.location.protocol !== "https:") { @@ -70,4 +71,11 @@ function requestAudioContext(fn) { } } -export { choice, mod, browser, roundFreq, requestAudioContext }; +export { + choice, + mod, + browser, + roundFreq, + frequencyInRange, + requestAudioContext, +}; -- cgit v1.2.3-70-g09d2