From 5a1a4f03ddfdf6c3bd67873be356acab209f7781 Mon Sep 17 00:00:00 2001 From: Michael Winter Date: Mon, 20 Apr 2026 17:56:11 +0200 Subject: [PATCH] Add multi-siren control to Path Navigator - Add siren selection (1-4) and auto (A) toggle buttons - Keyboard: 1-4 select siren, 0/A auto, R ramp toggle - Click plays to siren, Shift+click to SuperCollider - Add RAMP toggle button - Colored borders on nodes based on which siren is playing - Fix label clicks to use auto (node's voice) - Add toggle styling to cents/freq button - Disable siren hotkeys when typing in input fields - Disable Flask debug mode for background operation --- webapp/generate.html | 5 +- webapp/path_navigator.html | 238 ++++++++++++++++++++++++++++++------- webapp/server.log | 47 ++++++++ webapp/server.py | 9 +- 4 files changed, 250 insertions(+), 49 deletions(-) create mode 100644 webapp/server.log diff --git a/webapp/generate.html b/webapp/generate.html index 700b171..24c7f9a 100644 --- a/webapp/generate.html +++ b/webapp/generate.html @@ -610,7 +610,10 @@ const transcribeResponse = await fetch('/api/transcribe', { method: 'POST', headers: {'Content-Type': 'application/json'}, - body: JSON.stringify({ name: transcribeName }) + body: JSON.stringify({ + name: transcribeName, + fundamental: parseFloat(document.getElementById('fundamental').value) || 55 + }) }); const transcribeResult = await transcribeResponse.json(); diff --git a/webapp/path_navigator.html b/webapp/path_navigator.html index 9e0edf2..fb777d3 100644 --- a/webapp/path_navigator.html +++ b/webapp/path_navigator.html @@ -308,6 +308,27 @@ color: #999999; border-color: #444444; } + + .toggle-btn, .siren-btn { + padding: 6px 12px; + font-size: 12px; + cursor: pointer; + background: #0a0a0a; + color: #666666; + border: 1px solid #222222; + border-radius: 3px; + margin: 0 2px; + } + .toggle-btn:hover, .siren-btn:hover { + background: #151515; + color: #999999; + border-color: #444444; + } + .toggle-btn.active, .siren-btn.active { + background: #1a3a1a; + color: #66cc66; + border-color: #2a5a2a; + } @@ -344,13 +365,21 @@ Siren IP: - +
Index: 0 / 0 + + + + + + + +
@@ -374,6 +403,8 @@