/** * OutputsBackendConfig — the editable, per-backend specialisation of the Outputs * panel (backends-spec §4) plus the named-preset bar (§5). * * Layout: ONE preset bar (save-as / restore / rename / delete, per-backend * namespace) on top, then a per-backend config section: * - MIDI → output-port picker, number-of-CCs, per-output CC#/channel/name. * - OSC → bridge URL + connect status + send-raw toggle, per-output path/range. * - VCV/CV→ bridge URL + connect status + send-raw toggle, per-output polarity * (uni 0–10 V / bipolar ±5 V). The browser drives + trains the VCV * module over the same Deno bridge. * - Synth/Particle/Editor → handled by ModeConfig in Drawers (no extra config here). * * Everything is editable inline; writes go through the shared MFParam store * (ctx.setParam) — never a second data path. The full-depth modal reuses the * same sections via BackendAdvanced. */ import { useEffect, useState } from 'react'; import type { ConsoleCtx } from '../console/types'; import type { BackendId, CvChannelId, CvSpec } from './output-state'; import { CV_CHANNELS, defaultCvSpec, defaultMidiSpec, defaultOscSpec, defaultVcvSpec } from './output-state'; import { applyPreset, deletePreset, getPreset, listPresets, renamePreset, savePreset, type OutputPreset, } from '../backends/presets'; import { MIDI_DEVICES, MIDI_DEVICES_BY_ID, type MidiDeviceParam } from '../midi-devices'; function num(s: string, fallback: number): number { const v = parseFloat(s); return Number.isFinite(v) ? v : fallback; } const cellInput: React.CSSProperties = { width: '100%', background: 'var(--bg-1)', border: '1px solid var(--line)', borderRadius: 'var(--r-1)', color: 'var(--fg)', fontFamily: 'var(--font-mono)', fontSize: 'var(--fs-xs)', padding: '3px 6px', boxSizing: 'border-box', }; const btn = (color: string): React.CSSProperties => ({ fontSize: 'var(--fs-xs)', fontFamily: 'var(--font-mono)', padding: '3px 9px', cursor: 'pointer', borderRadius: 'var(--r-pill)', border: `1px solid ${color}`, background: 'transparent', color, }); function SectionLabel({ children }: { children: React.ReactNode }) { return (
{device.manufacturer} · default ch {device.default_channel} · {selected.size} selected {overflow ? ` (only the first ${limit} will map — engine has ${limit} outputs)` : ''}. Tick the parameters the model should drive, then Apply. You can still tweak CC#/channel below.
| Name | CC# | Ch | State |
|---|---|---|---|
| ctx.setParam(i, { midi: { ...m, name: e.target.value } })} /> | ctx.setParam(i, { midi: { ...m, cc: Math.max(0, Math.min(127, num(e.target.value, m.cc))) } }) } /> | ctx.setParam(i, { midi: { ...m, channel: Math.max(1, Math.min(16, num(e.target.value, m.channel))) }, }) } /> | {p.status} {p.muted ? ' · muted' : ''} |
The Deno OSC bridge process must be running locally (see manifold/osc-bridge). The browser sends over WebSocket; the bridge encodes OSC and forwards over UDP.
| OSC path | range min | range max |
|---|---|---|
| ctx.setParam(i, { osc: { ...o, path: e.target.value } })} /> | ctx.setParam(i, { osc: { ...o, rangeMin: num(e.target.value, o.rangeMin) } })} /> | ctx.setParam(i, { osc: { ...o, rangeMax: num(e.target.value, o.rangeMax) } })} /> |
The VCV Rack NISPS module AND the Deno OSC bridge (manifold/osc-bridge) must both be running. The browser drives the module's inputs and forwards the verdict loop (thumbs up/down, explore-and-place) over the bridge, so the module's embedded net trains in lock-step. Default module UDP port 7001.
| output | range |
|---|---|
| {p.name} |
Flash the uSEQ main + expander with firmware/useq-celium, connect over USB, then assign each
model output to a CV jack or gate. 11 CV (3 main + 8 expander) + 3 gates, streamed at 100 Hz.
Gate channels run a clock-driven Sequence (RatioSeq track, tempo = app BPM) — tracks 0–1 are the engine's native rhythm; tracks 2+ are browser-only extras on the net's spare outputs (up to ~12 total). Or Threshold a continuous output. CV channels carry the mapped value.
| Output | uSEQ channel | Gate source |
|---|---|---|
| {p.name} |
{isGate ? (
{c.gateSource === 'sequence' ? (
) : (
)}
) : (
— CV —
)}
|