From f62ebdc79b8eb7c1cdbc923361d7a84f5272a176 Mon Sep 17 00:00:00 2001 From: teahubxyz Date: Wed, 21 Oct 2026 07:31:27 +0000 Subject: [PATCH] room tone default 18% (was 35%); a saved higher level is brought down once Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01K6897PWcUEwHiqZMcVnNF6 --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 56f2028..71f5190 100644 --- a/index.html +++ b/index.html @@ -650,7 +650,7 @@ function makeCrackle(seconds = 12) { str(0, "RIFF"); dv.setUint32(4, 36 + n * 2, true); str(8, "WAVE"); str(12, "fmt "); dv.setUint32(16, 16, true); dv.setUint16(20, 1, true); dv.setUint16(22, 1, true); dv.setUint32(24, sr, true); dv.setUint32(28, sr * 2, true); dv.setUint16(32, 2, true); dv.setUint16(34, 16, true); str(36, "data"); dv.setUint32(40, n * 2, true); new Int16Array(buf, 44).set(out); - const el = new Audio(URL.createObjectURL(new Blob([buf], { type: "audio/wav" }))); el.loop = true; el.volume = crackle.base = parseFloat(localStorage.getItem("gandora.bed") || "0.35"); el.preload = "auto"; + const el = new Audio(URL.createObjectURL(new Blob([buf], { type: "audio/wav" }))); el.loop = true; el.volume = crackle.base = Math.min(parseFloat(localStorage.getItem("gandora.bed") || "0.18"), localStorage.getItem("gandora.bed2") ? 1 : 0.18); localStorage.setItem("gandora.bed2", "1"); el.preload = "auto"; el.mix = mix; el.sr = sr; // kept for the Web Audio bed return el; }