From e63f6e6058abf4f782d4d2012872198f8a310391 Mon Sep 17 00:00:00 2001 From: Ethanfel Date: Sat, 4 Jul 2026 23:02:42 +0200 Subject: [PATCH] Audio Wave: hide the raw segments_json widget (it's driven by the waveform) --- web/audio_wave.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/audio_wave.js b/web/audio_wave.js index 03e35f8..2ad0b45 100644 --- a/web/audio_wave.js +++ b/web/audio_wave.js @@ -45,6 +45,10 @@ function setupWave(node) { node.addDOMWidget("wave", "wave", wrap, { serialize: false }); const ctx = canvas.getContext("2d"); + // Hide the raw segments_json widget — it's machine data driven by the waveform. + const sjw = getW(node, "segments_json"); + if (sjw) { sjw.hidden = true; sjw.computeSize = () => [0, -4]; } + const t2x = (t) => (st.duration ? (t / st.duration) * canvas.width : 0); const x2t = (x) => (st.duration ? (x / canvas.width) * st.duration : 0); const starts = () => [0, ...st.boundaries.slice().sort((a, b) => a - b)];