← f_ notebook · ideas/dspless_control_modules.md

DSP-less control modules: audio-tool ideas without the audio engine ​

Started 2026-11-24. Status: ⚪ concept only. Nothing here was built or tried in Max.

Provenance. From a chat with Matt on 2026-11-24 (his questions and decisions are marked below) plus offline reads by Claude of docs/ and of the installed Vsynth package (~/Documents/Max 9/Packages/Vsynth/patchers/). The Vsynth facts are in docs/vsynth-reference/module-inventory.md ("Control signals in Vsynth") and patterns.md; this file does not repeat them. Items marked (inferred) are worked out, not observed. Companion: ideas/audio_inspired_visual.md (audio ideas that act on images).

The decision this rests on ​

Matt, 2026-11-24: message-rate js driven by the draw clock, no DSP, for f_util_envelope (not gen~ fed by sig~ and snapshot~). Reason: vs_render has no dac~, startwindow or DSP message and runs on a qmetro, so a video-only Vsynth patch has DSP off, and a gen~ module would do nothing there (inferred). The audio entry modules vs_envelope_follower and vs_audio2video start DSP themselves (loadbang → [1] → dac~), so audio-reactive patches have it on and video-only patches do not.

The vector subsystem (patchers/vector/, read offline 2026-11-24) is the opposite case: audio-rate XY signals, DSP by design, and a 192 kHz interface recommended. Control modules built here stay DSP-less and can still drive its parameters by message.

Two working precedents for the style: f_lfo (package/javascript/f_lfo.js: a tick on every r draw, elapsed time clamped to 250 ms, a float outlet and a 1x1 float32 texture outlet) and f_util_vary (f_util_vary.js, same tick).

Where the audio boundary sits. DSP only in the audio-to-control step; everything after it is message rate. Vsynth's own idiom is peakamp~ banged by r draw, then jit.slide (vs_envelope_follower). This is the "control-rate bridge modules only" option parked in ideas/f_a_build_process.md and the INDEX, and it touches gate P-chladni-audio (the unbuilt sigmund~ / peakamp~ note-and-amp bridge into f_chladni). Nothing here clears or reopens that gate.

What Vsynth already has, so not to build ​

vs_vca (attenuverter and, with an inverted modulator, ducker), vs_op2 (mixer, min, max), vs_comparator, vs_wavefolder, vs_transfer_curves, vs_frame_delay (60-frame buffer, one tap), vs_filter_temp (symmetric one-pole), vs_s&h (frame hold on bang), vs_envelope (one-shot A-R to a 1x1 texture), vs_preset_ease (easing morph). The table is in the inventory. What is missing: a clock, trigger generators, hysteresis and hold, asymmetric per-pixel slew, quantize, median, lists.

Candidates ​

1. Trigger outlets on f_lfo (the clock without a clock) ​

f_lfo has steps (the cycle cut into N slots) and cycles, but only a float and a texture outlet. A step-boundary bang, a cycle-end bang and a pulse gate would make it a Hz-based clock and divider, which fits Matt's Hz-only call (BPM and note values were removed from f_lfo 2026-11-24; .specify/f_lfo/spec.md Q: not from a clock). Consumers that take a bang today: vs_s&h, vs_envelope, f_vf_stamp (stamp tap), f_wave_field (strike tap), f_util_vary (roll). Needs Matt's decision; he has removed LFO features before.

2. A clock module (demoted) ​

vs_sync_time is only a ratio selector over global time (timediv.txt: 1/16, 1/5, 1/4, 1/3, 1/2, 1, 2, 3, 4, 10). A real BPM clock (tap tempo, dividers, swing, a phase output) would have been justified by LFO rate-in-beats, which Matt removed. Revive only if a consumer needs a beat. If built, reuse the timediv.txt ratios and fire trig_res on the bar line so the WFG family restarts phase together (hard sync; inferred from the vs_newTime description). Open: own BPM, tap, or the Max transport.

3. Trigger generators ​

Probability gate (continuous p, seeded), Euclidean (N hits in M steps, rotation, stepped by a clock bang), Poisson (random bangs at a mean rate), hold-off (onebang plus delay). upshot_1bitprobability and upshot_7bitprobability exist as Max objects (per CV_TRIGGER_INVENTORY.md); rtt.* is RNBO-based and probably needs DSP (inferred). The f_util_envelope gating items 6 to 9 overlap hold-off. Open: one module with a mode menu, a module of its own, or a section of the envelope.

4. One-shot envelope with sustain ​

vs_envelope already gives a one-shot A-R. The gap is a gate input (sustain while held), ms times (it multiplies by 60), retrigger, and per-pixel use. Could be an f_lfo one-shot mode (LFO note item 7) or part of the conditioner. This resolves the "generator question" in f_util_envelope.md only partly: the simple case is done.

5. The conditioner (f_util_envelope): two routes, both DSP-less ​

message-rate js (decided for scalars)state pix in float32 RGBA
Inputa float; a list needs the matrix before f_util_profile's texturea 1x1 texture, a 1xN texture (f_util_profile outputs are textures), or a frame
Statearrays in jschannels: value, gate, hold counter (inferred)
Asymmetric slewjit.slide with slide_up / slide_down, or hand-writtenone pix, two coefficients; dt fed as a Param each draw
Hysteresis, hold-off, medianeasypossible (counter in a channel); median is awkward
Outputfloat plus 1x1 texture, as f_lfotexture only, or texture plus a read-back float
Readback costnone for scalars; one more readback for a profile listnone
Matt chose js for scalars. The texture route was raised after the list-input mismatch
was found (f_util_envelope.md said a 1xN matrix; the profile outlets are textures) and is
not decided. They could both exist.

6. Self-triggering visual chains (recipes, mostly existing parts) ​

  • Visual onset: vs_differentiator → asyncread → jit.3m mean → conditioner gate and hold-off → bang → vs_s&h or vs_envelope.
  • Auto-exposure compressor: mean luma → conditioner (attack / release) → gain into vs_vca or vs_op2. The readback adds a frame on top of the loop's own, so loop gain matters (inferred).
  • Closing the proprioception loop: f_util_profile → conditioner → f_vf_glow radius mod (the profile-driven-radius flow is already in library-characteristics.md).

7. Control delay and phase spread ​

vs_frame_delay on a 1x1 texture gives a delayed copy of a control signal (about a second at 60 fps) with no new module. A js ring buffer would give ms-accurate taps and lists. Use: per-plate time offsets in f_misregister-style chains.

8. Texture descriptors ​

Audio descriptor statistics (centroid, spread, skewness, kurtosis, rolloff, flatness, crest) on any distribution: a profile vector, a luma histogram, a radial spectrum. Edge density (zero-crossing rate), periodicity (autocorrelation; f_halftone and f_tf_hatch specs already mention it), scene cut (flux onset), section change (novelty curve). The scalar math lives in the same js core.

Shared js core (not decided) ​

Elapsed-ms helper with a stall clamp, ring buffer, seeded random, tick source. f_lfo.js is the template. Shared file versus per-module copies is open; a shared file could drift between modules.

Conventions a new control module should follow ​

  • Value on a float outlet and a 1x1 float32 texture outlet, texture first (as f_lfo).
  • tick on r draw; times from elapsed ms. f_vf_stamp counts frames on purpose and vs_envelope assumes 60 fps; mixing conventions is the thing to avoid.
  • The bypass pill and plain pattr per setting (saved with presets, not with the patch).
  • Whether to honor r canvas_lfo (the global LFO toggle that vs_envelope listens to) is open; f_lfo.md does not say.
  • Events land on draw ticks, so a beat can be up to one frame late; say so in the doc.

Open questions ​

  1. Trigger outlets on f_lfo: wanted, or kept out as the removed features were?
  2. Texture-domain conditioner alongside the js one, or js only?
  3. A clock at all, and from where (own BPM, tap, transport)?
  4. Trigger generators: own module, mode menu, or inside the envelope?
  5. Does anything need trig_res to be fired, and by what?

Gates ​

Scanned .specify/gates.md 2026-11-24: touches P-chladni-audio (the audio-to-control bridge shape) and G-menu (any new module's category). Nothing cleared or reopened.

Suggested order (a recommendation, not a decision) ​

f_util_envelope first slice (already in its file), then trigger outlets on f_lfo if Matt agrees, then trigger generators, then the rest as consumers appear.