diff --git a/docs/DECISIONS_BY_AREA.md b/docs/DECISIONS_BY_AREA.md index d838f347..71caa84f 100644 --- a/docs/DECISIONS_BY_AREA.md +++ b/docs/DECISIONS_BY_AREA.md @@ -499,7 +499,7 @@ crate" when it names none. The log itself, and how to add to it, is ## Not tied to one crate -233 decision(s). +234 decision(s). - [D1](decisions/D1.md): native OpenGL (glow + glutin), not wgpu - [D2](decisions/D2.md): ANGLE as the fallback context, not native-only @@ -734,3 +734,4 @@ crate" when it names none. The log itself, and how to add to it, is - [D566](decisions/D566.md): local time comes from jiff, not chrono - [D572](decisions/D572.md): The Spout sender calls the 2.007 library's vtable, not mangled exports - [D574](decisions/D574.md): A second Spout sender carries a clean feed, before the post stage and never blacked out +- [D701](decisions/D701.md): the owner's answers to Q20, Q30 and Q31: blackout stays as it is, imports may read a host `iTime`, and synthetic audio runs on one clock diff --git a/docs/IMPLEMENTATION_BACKLOG.md b/docs/IMPLEMENTATION_BACKLOG.md index c614dc40..66d81a2f 100644 --- a/docs/IMPLEMENTATION_BACKLOG.md +++ b/docs/IMPLEMENTATION_BACKLOG.md @@ -305,6 +305,11 @@ ## Epic P — Playlist, audio timing and show control +### I-08 A host-summed `iTime` for Shadertoy imports +- **Status:** Open. Decided by the owner (D701, R28): a converted scene may read a Strobe-only uniform. +- **Work:** sum the import clock (`TIME`, `st_speed`, `st_audio_time`) in `f64` on the host and pass it as a uniform the converter's `iTime` reads, in place of the `f32` clock pass (D393); new imports use it, existing ones keep their baked clock until re-imported. +- **Acceptance:** a test reads `iTime` four hours in at `st_speed` 0.02, 0.05 and 0.5, and after 4 h at `st_speed` 3 then 0.1, and finds each advancing at its set rate within a frame's step; a default import's frames are unchanged. + ### P-01 Audio-event advance - **Status:** Built (D226), pending real music: `strobe_audio::events` hears breakdowns and drops in the analyser's raw energies and the show hands them to the clock; a cue that can end only on audio says so when the audio is synthetic. Left: tuning the thresholds on real sets (a person, or recorded tracks we may use). - **Work:** connect Phase 7 audio hit/event detection to playlist clock advancement with hysteresis and minimum intervals; allow per-show selection of event types and safe fallback when audio is absent. @@ -351,6 +356,11 @@ - **Work:** compare the built-in /strobe namespace to Synesthesia's documented OSC address layout and decide whether compatibility is a requirement; if not, document the intentional divergence. - **Acceptance:** decision recorded before adding aliases; tests cover every supported address and invalid payloads. +### P-09 Audio clocks that carry on across a microphone drop +- **Status:** Open. Decided by the owner (D701, R29): the synthetic fallback runs on one run-wide clock. +- **Work:** move the synthetic track onto one run-wide clock instead of each scene's, then build D393's offsets in `AudioInput`: each clock continues from the value last shown, the beat clocks move by a whole number of beats (rounded up), and the downbeat offset by that number mod 4. +- **Acceptance:** a test switches live to synthetic to live an hour in and checks every clock moves less than a frame's step across each switch, the beat offset is whole, and the bars do not move. + ## Epic M — Media and transitions ### M-01 SSF media/cubemap specification audit diff --git a/docs/OPEN_QUESTIONS.md b/docs/OPEN_QUESTIONS.md index 116f6102..2b6ba924 100644 --- a/docs/OPEN_QUESTIONS.md +++ b/docs/OPEN_QUESTIONS.md @@ -16,35 +16,19 @@ locally but must not be committed. | Q2 | What should `_mouse` / `_muv` hold when the mouse is outside the preview? | All zeros. **Inside the preview, settled (TORNADO T25):** the SSF reference bundled with Synesthesia 1.25.4 (`ssf/standard_uniforms`) gives `_mouse` as Shadertoy's `iMouse` in whole pixels with the click's `zw` negative while no button is down, `_click` as left, right, middle (1 held), and `_muv` as 0..1 in the preview; Strobe already does all of that (`strobe-app` `mouse.rs`). Only the value outside the preview is open | Low priority. None of the 87 shipped scenes reads `_mouse` or `_muv`; one script (`neon_city`) reads `_muvc`. Settle with Synesthesia running: a scene that draws `_mouse` and `_muv`, and the pointer moved off the preview (S2 below) | | Q4 | How does `bang smooth` shape its envelope with PARAMS? | Fast attack (≥25% of the remaining distance per 60th of a second), then exponential decay at PARAMS | Compare by eye with Synesthesia | | Q6 | Does Synesthesia ignore unknown `scene.json` keys? | Yes. Strobe reads and writes `TAGS` (D205), as Synesthesia's own key. **Census of 1.25.4's 87 shipped scenes (TORNADO T25):** root keys `CREDIT` and `TITLE` (87), `IMAGE_PATH` (86), `GPU` (84), `CONTROLS` (84), `TAGS` (83), `PASSES` (65), `DESCRIPTION` (49), `WIDTH`/`HEIGHT` (46), `IMAGES` (39), `HARD_TRANSITIONS` (23), `SMOOTH_TRANSITIONS` (10), `MEDIA` (9), `CATEGORIES` and `IMAGE` (1 each); the bundled `ssf/json` documents 11 of them. `IS_META` **is** Synesthesia's own: 19 controls in 4 shipped scenes carry `"IS_META": false`, a per-control key. A root `LABEL` or `UNIFORMS` is community-only | Only matters if Strobe writes scenes back for Synesthesia. Settle with Synesthesia running: a copy of a scene with an invented root key and an invented control key, loaded (S6) | -| Q7 | Do the EULA terms allow running Synesthesia's own built-in scenes in another engine? | Unknown. Strobe ships none of Synesthesia's scenes and reads only the person's own install (D196, D199, D271; on by default, off in Settings or with `--no-synesthesia`); the EULA decides whether that default stays on. **Where the EULA is (TORNADO T25):** not in the install. The app links `synesthesia.live/resources/eula.pdf`, which redirects to `app.synesthesia.live/resources/synesthesia-eula.pdf`, and that answered HTTP 403 to a plain fetch from TORNADO. The bundled license FAQ covers activations only | A person reads the PDF in a browser and records the clauses on bundled content and its use outside the app (S8) | +| Q7 | Do the EULA terms allow running Synesthesia's own built-in scenes in another engine? | Unknown. Strobe ships none of Synesthesia's scenes and reads only the person's own install (D196, D199, D271; on by default, off in Settings or with `--no-synesthesia`); the EULA decides whether that default stays on. **Where the EULA is (TORNADO T25):** not in the install. The app links `synesthesia.live/resources/eula.pdf`, which redirects to `app.synesthesia.live/resources/synesthesia-eula.pdf`, and that answered HTTP 403 to a plain fetch from TORNADO. The bundled license FAQ covers activations only | **2026-12-02:** the link now answers `{"unauthorized":true}` even in a real browser (Chrome on LIGHTNING): the PDF needs the owner signed in to their Synesthesia account. The public site links no terms page. Next: the owner opens it signed in and records the clauses on bundled content and its use outside the app | | Q10 | What exact layout do real scenes expect from `syn_Spectrum` and `syn_LevelTrail`: texel count, frequency axis of the raw channel, which end of the trail is "now", and what the waveform channel's range is? | **Spectrum width settled: 1024 texels (D269).** Raw linear 0..Nyquist, one FFT bin per texel; juiced log 30 Hz to 16 kHz; waveform 0.5 at zero; trail index 0 = newest, channels whole/bass/mid/high. All sizes are configurable (`Layout`). **Channels settled by the bundled `ssf/audio_uniforms` (TORNADO T25):** `r` raw FFT, `g` juiced (bin and temporal smoothing, logarithmic frequency, high-end boost; the one to use by default), `b` smooth (less frequency resolution), `a` the waveform; the trail is `r` whole, `g` bass, `b` mid, `a` high, Strobe's order. Synesthesia's own Shadertoy converter maps a music channel's row 0 to `.g` and row 1 to `.a`, reading a `texelFetch` x as x/512. Frequency axes, the trail's length and which end is "now" are still unverified | `audio_indicators` in Synesthesia beside ours with a sweep tone (S3) | | Q14 | What does a real script expect of `textureFinalPass`: the resolution behind it, the value on the first frames, and how stale it may be? | **Built (D162).** 64x36 (Strobe's choice), box-filtered by a 2:1 blit chain, rows bottom-up, read through a 3-buffer PBO ring with fences: the picture two frames before the one just drawn, black until two frames have rendered, never a stall. Checked on llvmpipe in both dialects and on the T480. None of the 87 shipped scripts calls it. **The bundled `ssf/script` (TORNADO T25)** documents normalised `x, y` in and `[r, g, b]` 0..1 out, and its one example is a colour picker at the mouse (`_muv` while `_click.x > 0.5`): a point, not the grid, which Strobe's low resolution and two-frame lag suit. Resolution and freshness are not documented | A real script that calls it, then the same on the T480 | -| Q15 | Shadertoy's exact `iDate`, `iChannelTime`, `iMouse`, `iSampleRate` and `iFrameRate` semantics, and its licence terms | `iDate` is local time in the app (cached OS UTC offset, D112) and UTC in the player's default, the bench and tests (year, month 0 to 11, day, seconds since midnight); `iChannelTime[n]` is `iTime` for audio channels and 0 otherwise; `iMouse` is the player's `_mouse` (xy while held, zw click position; Shadertoy flips the sign of z and w with button state, which `_mouse` may not); `iSampleRate` is 44100; `iFrameRate` is 1/dt of the last frame; shaders are CC BY-NC-SA 3.0 unless the author says otherwise | Read Shadertoy's page source (`shadertoy.com/js/effect.js`) once a browser can reach it, and Shadertoy's terms page | -| Q16 | Does a Shadertoy `srgb: true` texture need decoding on sampling, and does `internal: float` matter? | Neither is applied; the importer warns for `srgb`. `Format` has no sRGB entry and `strobe-gfx/src/gl/` was another agent's | A real shader that sets it, next to Shadertoy's own picture | -| Q18 | Does the audio texture's scale match Shadertoy's closely enough for shaders written against it? | Row 0 is the raw FFT converted from -100..-20 dB to the browser's -100..-30 dB window with a 6 dB offset, with none of the browser analyser's smoothing, when the host supplies no slice; the app now supplies the browser-matched `AudioFrame::shadertoy` slice, which the player uploads as given (D112); row 1 is the waveform | Compare a known audio shader against Shadertoy with the same track; the slice is fed through now (D112), so what is left is the comparison itself | -| Q19 | How does a shadertoy.com `/view/` page expose a shader's JSON to a userscript, and does the REST API (`/api/v1/shaders/?key=`) behave as AGENT_RESEARCH records? | The userscript tries the site's own same-origin `POST /shadertoy` (`s={"shaders":[""]}&nt=1&nl=1&np=1`), then the page's `gShaderToy` object, and names both if they fail (D115). The REST client assumes the documented `{"Shader": {...}}` answer and `{"Error": ...}` for a missing or private shader (D111) **T480, 2026-10-10:** a plain HTTP client (PowerShell) on a home connection gets **HTTP 403 from Cloudflare** on `/api/v1/shaders/?key=…` (`server=cloudflare`), so path B may be unusable from the app whatever the key; the userscript (path A) runs inside the browser session and is the route to rely on | Open DevTools > Network on a `/view/` page and find the request that returns the code; run `strobe-import --id ` with a real key; fix `getShaderJson` and the REST test fixtures from what comes back | -| Q20 | Should blackout pause the scene clock, and should it gate every output (a future NDI or capture output) or only the shown output window? | **Partly answered (D181).** Blackout only clears what the shown output window presents; the scene keeps rendering and its clock runs, so the preview shows it and bringing it back is instant (D135). Fading the *picture* is `master`, a meta control applied in the post stage, so previews, screenshots and a future capture see master and not blackout. **Settled for a shared output (D570):** it follows `master`, not blackout, so the panic key darkens the room without cutting a recording, and a cue or a macro sends black when the stream should also go. Still open: what Synesthesia's blackout does to time-based scenes | Ask a VJ, and check what Synesthesia's blackout does to time-based scenes | -| Q22 | How does SSF declare `CUBEMAPS` and `MEDIA`, what orientation do cube faces and cross layouts have, and what values does `syn_MediaType` take? | Cube maps: `CUBEMAPS: [{ NAME, PATHS }]` with six paths in GL face order, or one 6:1 / 1:6 strip / 4:3 cross picture, faces used as decoded (D185). Media: Strobe's own `MEDIA` key (a path, or `{ PATH, FPS, LOOP, WRAP, FILTER, VFLIP }`); a file is a still and a folder is an image sequence (D186). `syn_MediaType` is 0 with no picture, 1 for a still or a sequence and 3 while a webcam shows (D528); video is not an input; the SSF library's `_isMediaActive()` is `> 0.5`. **Checked against SSF's documentation (TORNADO T21):** -- `MEDIA` is one input slot with `WRAP` (default `repeat`) and `FILTER` - (default `linear`) only, and the operator chooses the media. -- `syn_MediaType` is 0 none, 1 image, 2 video, 3 webcam; NDI and Spout - input have no documented value. -- `CUBEMAPS` paths are in GL face order (+X, -X, +Y, -Y, +Z, -Z), with no - orientation stated. -- Missing files are not covered. -- The user-media helpers below are not documented either. | The SSF documentation for `MEDIA`, `CUBEMAPS` and `syn_MediaType`, and a real scene that uses a cube map **Real data (T2, 65 scenes):** no cube maps at all. `IMAGES: [{NAME, PATH}]` in 18 scenes. `MEDIA` appears in 3 scenes as `[{FILTER, WRAP}]`, input slots with no path, now accepted (D193). Eight scenes use a user-media library (`syn_UserImage`, `_loadUserImage`, `_loadUserImageAsMask`, `_exists`, `_correctImageCoords`, `_invertYAxisVideo`) that Strobe lacks; it waits for Synesthesia's engine files | -| Q23 | What are Synesthesia's OSC address map and value conventions, and do MIDI controllers' Synesthesia mappings carry over? | Strobe's own namespace: `/strobe/control/`, `/strobe/meta/`, `/strobe/cmd/`, `/strobe/cue/`, `/strobe/fav/`, `/strobe/preset/`, `/strobe/macro/`, with values **normalised 0 to 1** (D173). **Checked against Synesthesia's OSC manual (T20, read on TORNADO):** input is `/controls/{scene\|meta\|}/` and `/controls/global//` (the nth control of a type, from 1), with `/x` `/y` `/r` `/g` `/b` components and `/raw` `/default` `/random` `/preset` `/lock` suffixes, plus `/scenes/`, `/presets`, `/favslots/`, `/playlist/...` and `/media/...`. Values are normalised 0 to 1 (`/raw` for the control's range); the owner's install has input 6000 and output 127.0.0.1:9000, probably the defaults. Strobe accepts the subset that means the same (D234). Open: whether control names keep `_` (the manual's rule says no, its own example says yes; Strobe ignores `_` either way). MIDI mappings live in Synesthesia's `midi_mappings.json` keyed by internal identifiers, with no MIDI-only export, so none are imported. MIDI is untested on hardware: port names, hot-plug timing and a device another program holds open (WinMM) are open (D171) | Synesthesia's OSC documentation and a real controller on the T480; a TouchOSC layout driving Strobe over a LAN with `--osc-all-interfaces` **Script API in real scenes (T2):** lifecycle `update` (9 scenes), `transition` (6), `setup` (1); `uniforms.X =` (7, with dynamic names such as `'spectrum_' + i`); `inputs.X` reads of `syn_*` audio values (9); `setControl` and the event and randomize family only in one template scene. Every function used exists in Strobe; no `meta.*` calls | +| Q15 | Shadertoy's exact `iDate`, `iChannelTime`, `iMouse`, `iSampleRate` and `iFrameRate` semantics, and its licence terms | `iDate` is local time in the app (cached OS UTC offset, D112) and UTC in the player's default, the bench and tests (year, month 0 to 11, day, seconds since midnight); `iChannelTime[n]` is `iTime` for audio channels and 0 otherwise; `iMouse` is the player's `_mouse` (xy while held, zw click position; Shadertoy flips the sign of z and w with button state, which `_mouse` may not); `iSampleRate` is 44100; `iFrameRate` is 1/dt of the last frame; shaders are CC BY-NC-SA 3.0 unless the author says otherwise | **Partly settled from Shadertoy's own player (its inline script, read in Chrome on LIGHTNING, 2026-12-02):** `iDate` is local `[year, month 0-11, day, hours*3600 + minutes*60 + seconds + ms/1000]`, as Strobe's app gives; `iSampleRate` is the page's AudioContext rate (44100 only when there is none), usually 48000 on Windows, so Strobe's fixed 44100 should become the analyser's real rate; `iChannelTime[n]` is a music or video channel's playback position (`currentTime`), so `iTime` stands in fairly while Strobe plays no media. Still open: the sign convention of `iMouse.zw` and the exact `iFrameRate` formula, which the minified player did not show plainly; the licence default stands | +| Q16 | Does a Shadertoy `srgb: true` texture need decoding on sampling, and does `internal: float` matter? | Neither is applied; the importer warns for `srgb`. `Format` has no sRGB entry and `strobe-gfx/src/gl/` was another agent's | **Narrowed (Shadertoy's player, 2026-12-02):** every built-in input (keyboard, webcam, mic, the stock textures) is declared `srgb: "false"`, `internal: "byte"`, so only a user texture can set either; how the player applies them was not found in its minified code. A real shader that sets `srgb: true`, next to Shadertoy's picture, still settles it | +| Q19 | How does a shadertoy.com `/view/` page expose a shader's JSON to a userscript, and does the REST API (`/api/v1/shaders/?key=`) behave as AGENT_RESEARCH records? | The userscript tries the site's own same-origin `POST /shadertoy` (`s={"shaders":[""]}&nt=1&nl=1&np=1`), then the page's `gShaderToy` object, and names both if they fail (D115). The REST client assumes the documented `{"Shader": {...}}` answer and `{"Error": ...}` for a missing or private shader (D111) **T480, 2026-10-10:** a plain HTTP client (PowerShell) on a home connection gets **HTTP 403 from Cloudflare** on `/api/v1/shaders/?key=…` (`server=cloudflare`), so path B may be unusable from the app whatever the key; the userscript (path A) runs inside the browser session and is the route to rely on | **2026-12-02, LIGHTNING:** in a real Chrome the `/view/` page passes Cloudflare's check by itself after a few seconds, and the player's code is now inline in the page (there is no separate `effect.js`). The REST path stays blocked for plain clients, so the userscript route (D115) remains the one to rely on; check the `gShaderToy` route on the next import from a real page | | Q25 | What fires the script global `syn_PrimeBang`, and for how long is it above 0.5? Two real scenes read it in `update()` to re-randomise their dropdowns | Never fires: it is defined as `0`, so those scripts run and their manual `cycle` buttons still work. **From the engine (TORNADO T25):** the name sits in `Synesthesia.exe` with `syn_InputLevel` and `syn_BassExpoCurve` among the audio analyser's strings, so it is an audio output, not a control; what fires it is still unknown, and so are the other two names | Synesthesia running with OSC audio output on, logged by an OSC listener over music (S4) | -| Q28 | What does `pow(x, y)` return for a negative `x` on the native Windows GL drivers Synesthesia runs on (AMD, Intel), for `y` of 1, a fraction, and an integer of 2 or more? GLSL leaves it undefined, and two of Synesthesia's 90 scenes depend on it (PLUS, sprinkles) | NaN, as `exp2(y * log2(x))`, for 1 and fractions; integer powers of 2 or more are left to the driver. ANGLE's Direct3D compiler gives `\|x\|^y` and folds `pow(x, 1.0)` to `x`, so the ES dialect spells out the native sequence (D301) | The probe scene in AMD.md Task A15 on the RX 580 and an Intel GPU, native and ANGLE | -| Q29 | Should the clocks a shader reads as `f32` uniforms be wrapped once they grow large, and does Synesthesia wrap them? `TIME`, `syn_Time` and the other band clocks, `syn_CurvedTime`, and speed and traveler control outputs grow for as long as a scene plays | No wrap. The sums behind them are exact on the CPU (speed controls since D390, the scene clock since D391, the analyser's clocks always), so the only error is the uniform's own rounding, half the `f32` spacing: at 4 h, `TIME` (14 400) is within 0.0005 s, a clock at 28 800 (`syn_Time` four hours in at twice real time) within 0.001, and one at 1e5 (the audio sweep's worst case) within 0.004, so a frame's step of about 0.1 varies by up to 8 %. A wrap at a multiple of 2π keeps `sin(x)` and `sin(2x)` but jumps `sin(0.5x)`, `noise(uv + x)` and `uv + x`, which real scenes do with all of these; a scene cut once every few hours might still beat steady jitter on a shader that multiplies a clock by tens | Watch a scene that draws `fract(TIME * 100.0)` and `fract(syn_Time * 100.0)` in Synesthesia after hours (or set its clock forward, if it can); count in the private corpus how each clock is used (inside `sin`/`cos` only, or as a coordinate) | -| Q30 | Should a Shadertoy import's `iTime` (and the one-texel clocks of scenes 13 to 16) be summed on the host in `f64`, as D91 left open? The clock pass adds `dt * rate` to an `f32` texel on the GPU | Left on the GPU (D393). At `st_speed` 1 and `st_audio_time` 0 the clock is exactly `TIME`, so a default import is as good as `TIME` (D391). Slowed hours in it is not: four hours at the default speed and then `st_speed` 0.02 freezes `iTime`; 0.05 runs 17 % fast and 0.5 5 % slow; after 4 h at `st_speed` 3 (`iTime` near 43 200), 0.1 freezes. The fixes each cost something: a host uniform for `iTime` makes the converted scene depend on Strobe instead of being plain SSF, and existing imports keep their baked clock file until re-imported; a two-float sum in a 2x1 clock pass needs the GLSL compiler not to reassociate it, and GLSL 3.30 has no `precise` | Decide whether a converted scene may read a Strobe-only uniform; if not, try a two-float clock on the T480's Intel driver, ANGLE and the Vega 3 and check it survives their optimisers | -| Q31 | Should the audio clocks carry on from where they were when the microphone drops or comes back mid-show? Today every clock jumps between the analyser's value and the synthetic track's at the switch (D330's "Not changed") | No continuity (D393). The design is offsets taken at the switch: each clock continues from the value last shown; `syn_BeatTime` and `syn_BPMTwitcher` move by a whole number of beats K (rounded up, so the counter never runs back), and the downbeat offset by K mod 4, so the bar lines stay on the estimate's downbeat (D233). It is not built because the synthetic track is a function of the caller's time, and each frame asks for it at up to four: the show's time and the live, outgoing and warming scenes' times, which restart on every cue (D151). An offset taken from one caller leaves the others jumping, so the fallback first has to run on one run-wide clock instead of each scene's, which changes what a scene on synthetic audio sees at a cue start (today its clocks start at 0, as the bench's do), and the live clocks would carry the offset for the rest of the run | The owner decides whether the synthetic fallback may run on a run-wide clock; then build the offsets in `AudioInput` with a test that switches live to synthetic to live an hour in and checks every clock moves less than a frame's step across each switch, the beat offset is whole, and the bars do not move | | Q32 | What does Synesthesia do with a dropdown whose `LABELS` and `VALUES` differ in length, and with a control that has no `TYPE` and a `DEFAULT` of three or four components? Strobe failed the whole scene for either | Keep the scene (D412). The dropdown keeps the options both lists give, label `i` with value `i` as far as the shorter list goes, with a logged warning; an empty list counts as absent. An untyped control's default picks the one type with that many components, as D193 does for two (an xy pad): three or four make a `color` (the only vec3; a fourth, alpha, is dropped as for a typed colour). Neither shape is in the private corpus or Synesthesia's documentation | A scene with each shape in Synesthesia: which options its dropdown shows and what value each sends, and whether the untyped control shows a colour picker or loads at all | | Q33 | What does Synesthesia do with `HARD_TRANSITIONS` and `SMOOTH_TRANSITIONS` beyond what SSF's page says: does a scene start on its first value and first family member or a random one, can a song change pick the value (or member) already showing, and how long does a family without `DURATION` take? | First value and first member at load; a change always picks another entry or member; 3 s, SSF's own example (D489) | Watch an installed Synesthesia scene that uses them (`glob` has families with no `DURATION`; `filter_blown` has a two-value hard transition) across song changes | ## What Synesthesia itself can settle -Synesthesia 1.25.4 is installed on TORNADO. TORNADO T25 went through every +Synesthesia 1.25.4 is installed on TORNADO, LIGHTNING and the T480 (1.25.4.189, trial mode, on the T480). Since 2026-12-02 every row of the second table below is briefed to the T480's Claude session, which has computer use there, as S5 and S9 were (R20, R21). question here, every Unverified or Degraded row of COMPATIBILITY.md and every backlog item whose "Left:" needs Synesthesia, and sorted them by how each can be answered. Quote only key names and small facts from the @@ -86,7 +70,6 @@ scene inside the person's own scene folder (Synesthesia's | S8 | The EULA (Q7) | Open the EULA link from the app's About in a browser and record the clauses on the bundled scenes and their use outside the app. | | S10 | A dropdown whose `LABELS` and `VALUES` differ in length; an untyped control with a three-number `DEFAULT` (Q32) | Two scene copies, one for each shape, loaded; note what the dropdown lists and sends and what control appears. | | S11 | `bang smooth`'s envelope (Q4) | A copy whose script prints a `bang smooth` control's value every frame for two seconds after a click, at two `PARAMS` values. | -| S12 | Whether OSC control names keep `_` (Q23) | With OSC input on, send `/controls/scene/` and the same name without `_` to a scene whose control has an underscore; note which moves it. | | S13 | I-05 in Strobe's app (no Synesthesia needed, but a person at the keyboard) | Open Strobe: the library lists 88 scenes marked Synesthesia; one plays; tagging one is refused with *Copy to my library*, which copies it; Settings > "Show Synesthesia's scenes" off hides them; nothing under `Program Files (x86)\Synesthesia` changed (compare timestamps before and after). | ## Resolved @@ -114,3 +97,11 @@ scene inside the person's own scene folder (Synesthesia's | R19 | Does Strobe's SSF library compute what Synesthesia's does? | **Not before D492.** `_rotate` takes radians and turns clockwise (documented as degrees; 44 of the 87 shipped scenes call it); `_pulse` and `_sqPulse` take a half-width; `_toPolarTrue` gives turns; `_uv2uvc` has no aspect correction; `_rand`, `_noise`, `_fbm`, `_triWave`, `_statelessContinuousChaotic`, `_saturation`, `_dichrome`, the edge detectors and the media offsets all differed. D492 follows the engine | `Synesthesia.exe` 1.25.4's built-in library; `render.rs` `ssf_helpers_compute_what_synesthesias_engine_computes` (TORNADO T25) | | R20 | What are the meta controls' raw ranges and defaults? (was S5) | **Brightness, gamma, contrast and hue show `0..2` with 1 at default; saturation `-1..1` with 0; Media Scale `0..2` with 1; Master 1, its top.** Each is linear in the stored `0..1` value: typing 0.25 into Brightness put its handle at an eighth of the travel. Hue's shift in turns is the shown value minus 1, so a whole turn either way. Low Color defaults to #5E0808 and High Color to #DE800D; Fit or Fill is on. Reactivity and Audio Speed were not on any panel the session could reach, so their range is still open. Strobe's curves follow (D578) | Synesthesia 1.25.4.189 (trial) on the T480, read from its UI by a Claude session with computer use, 2026-12-02; method and caveats in [hardware/T480.md](hardware/T480.md) ("Synesthesia's meta controls, measured") | | R21 | Does Strobe's meta stage draw what Synesthesia's does? (was S9) | **Yes, to within one 8-bit level.** `test_card` at 1280x720 with Vert and Hor Mirror, Limit Colors at its defaults, Brightness 1.50 and Hue 1.50 (shown): both show the top-left quarter in all four corners, and the background reads #41BCFF in both. Eight samples along the mirrored grey ramp differ by at most one level per channel. The neutral frame matches exactly | Synesthesia's frames from the T480 (PrintWindow of its output window); Strobe's from `strobe-bench --meta` on LIGHTNING (RX 580), 2026-12-02 ([hardware/T480.md](hardware/T480.md)). The mic was live on the Synesthesia side, but only the corner rings animate | +| R22 | How does SSF declare `CUBEMAPS` and `MEDIA`, and what values does `syn_MediaType` take? (was Q22) | **`syn_MediaType` is None 0, Image 1, Video 2, Webcam 3; `MEDIA` is an array of one object holding `WRAP` and `FILTER` only (filter `linear` by default); `IMAGES` are `{NAME, PATH}` from the scene's `images` folder; SSF has no `CUBEMAPS` key at all.** Strobe's `CUBEMAPS` (D185) and its path keys on `MEDIA` (D186) are Strobe's own extensions, and its webcam value of 3 (D528) matches. NDI and Spout input have no documented value. Missing files are not covered by the documentation | `views/embedded_docs/ssf/standard_uniforms.html` and `ssf/json.html` in the install, read on LIGHTNING, 2026-12-02; no shipped scene of the 88 uses a cube map | +| R23 | What are Synesthesia's OSC address map and value conventions, and do control names keep `_`? (was Q23 and S12) | **Input is `/controls/{scene\|meta\|}/` with up to three values, normalised 0 to 1 unless `/raw` is added, and `/x` `/y` `/r` `/g` `/b` for one component; `/controls/global//`; `/scenes/ [preset]`, `/presets `, `/presets/new [name]`, `/playlist/select `, `/media/name `.** The manual asks for names "all lowercase without any underscores or hyphens" yet its own example is `/controls/meta/high_color`, so matching ignores case, `_` and `-`, as Strobe's does (D234). Output has a normalised and a raw mode; on a scene launch it sends `/scenes/`, each control's default (raw mode: min, max, then default), the global controls' names and the dropdowns' labels, on fixed addresses. Strobe has no alias yet for `/presets/new`, `/playlist/select` or `/media/name` (P-08) | `views/embedded_docs/manual/osc.html` and `faq/midi_osc.html` in the install, read on LIGHTNING, 2026-12-02 | +| R24 | What does `pow(x, y)` return for a negative `x` on the drivers Synesthesia runs on? (was Q28) | **Measured on the RX 580: native GL gives NaN for `y` of 1 and 0.5 and the signed `x^3` for 3; ANGLE-D3D11 gives `x`, `\|x\|^0.5` and the signed `x^3`, even with D301's `exp2(log2(x) * y)` in its source.** The ES dump holds the rewrite, so Direct3D's compiler folds it back, and D301 has no effect there. It shows: `PLUS` and `sprinkles` render almost black on ANGLE (mean 2.6 and 4.3 against 66.4 and 48.2 on native, 640x360). D301 is reopened for a spelling ANGLE cannot fold; Intel is not measured | AMD.md Task A15 steps 1, 3 and 4 on LIGHTNING (RX 580, native and ANGLE-D3D11), 2026-12-02 | +| R25 | Should the clocks a shader reads as `f32` be wrapped once they grow large? (was Q29) | **No.** Real scenes use their clocks as coordinates and noise inputs, not only inside `sin` and `cos`, so a wrap would jump visibly: in the 88 installed scenes `TIME` appears in 71, outside `sin`/`cos` in 63; `syn_Time` in 37 (24); `syn_BassTime` in 29 (22); `syn_BeatTime` in 18 (15); `syn_CurvedTime` in 8 (8); only `syn_MidTime` stays inside `sin`/`cos` (4). The `f32` rounding Strobe accepts instead stays under 0.004 at 1e5. Whether Synesthesia wraps after hours is unwatched, and would not change this | A census of the `.glsl` files of Synesthesia 1.25.4's `release` and `default` scenes on LIGHTNING, comments stripped, 2026-12-02 | +| R26 | Does the Shadertoy audio texture's scale match Shadertoy's closely enough? (was Q18) | **Yes in scale; two small differences in shape.** Strobe's `AudioFrame::shadertoy` slice uses the browser analyser's -100 to -30 dB window and its 1/N scaling (-6.02 dB), 512 wide, as Shadertoy's sound texture does. It differs in the window (Hann where the browser's `AnalyserNode` uses Blackman, so peaks spread a little less) and the smoothing (about 0.1 s where the browser's 0.8 per analysis frame is about 0.075 s at 60 fps). Both are worth matching; a side-by-side with a track would confirm, but is not needed to answer | `strobe-audio` `spectrum.rs` and `analyzer.rs` against the Web Audio `AnalyserNode` specification, 2026-12-02 | +| R27 | Should blackout pause the scene clock, and gate every output? (was Q20) | **No change, decided by the owner (D701).** Blackout clears only the shown output window and the clock runs, so it ends without a jump (D181); shared outputs follow `master` (D570). What Synesthesia's blackout does to a time-based scene stays on the T480's list, as information | D701, 2026-12-02 | +| R28 | Should a Shadertoy import's `iTime` be summed on the host in `f64`? (was Q30) | **Yes, decided by the owner (D701).** A converted scene may read a Strobe-only uniform; the host sums the import clock in `f64` and passes it in, ending the freeze and drift after hours (D393). Imports already depend on Strobe for `st_speed` and `st_audio_time`. Backlog I-08 | D701, 2026-12-02 | +| R29 | Should the audio clocks carry on across a microphone drop? (was Q31) | **Yes, decided by the owner (D701).** The synthetic fallback runs on one run-wide clock, and every clock continues across a switch with D393's offsets: whole beats, never backwards, bars kept. Backlog P-09 | D701, 2026-12-02 | diff --git a/docs/decisions/D701.md b/docs/decisions/D701.md new file mode 100644 index 00000000..67a96299 --- /dev/null +++ b/docs/decisions/D701.md @@ -0,0 +1,17 @@ +# D701: the owner's answers to Q20, Q30 and Q31: blackout stays as it is, imports may read a host `iTime`, and synthetic audio runs on one clock (2026-12-02) + +**Context.** Three open questions needed a choice rather than a measurement. Each had a recommendation in OPEN_QUESTIONS.md, and the owner accepted all three on 2026-12-02. + +**Decisions.** +1. **Q20, blackout:** no change. D181 stands: blackout clears only the shown output window, the scene keeps rendering and its clock runs, and `master` fades the picture itself, so previews, screenshots and shared outputs follow `master` (D570). A blackout therefore ends without a jump. What Synesthesia's own blackout does to a time-based scene stays on the T480's list; it informs, but does not reopen, this. +2. **Q30, a Shadertoy import's `iTime`:** a converted scene may read a Strobe-only uniform. The host sums the import clock in `f64`, from `TIME`, `st_speed` and `st_audio_time`, and passes it as a uniform. That ends the freeze and drift after hours that the `f32` clock pass has (D393). Imports already depend on Strobe for their generated `st_speed` and `st_audio_time` controls, so plain SSF portability was already gone. Existing imports keep their baked clock until re-imported. Tracked as backlog I-08. +3. **Q31, audio clocks across a microphone drop:** the synthetic fallback runs on one run-wide clock, and the clocks carry on across each switch with the offsets D393 designed: + - every clock continues from the value last shown; + - the beat clocks move by a whole number of beats, never backwards; + - the downbeat stays on the bar. + + A scene on synthetic audio no longer starts its clocks at 0 at a cue, which mattered only to the bench. Tracked as backlog P-09. + +**Consequences.** I-08 and P-09 are code work, each with its test as the questions describe: +- a clock read hours in at a slowed `st_speed`; +- live to synthetic to live an hour in, with every clock moving less than a frame's step across each switch.