A performance controller for PAM, driven from a varibright Monome Grid 128 (8 rows × 16 cols) via serialosc. Terms: CONTEXT.md. Decisions with lasting weight: docs/adr/. Visual map of every view: docs/grid-map.html (published as the PAM Grid Map artifact).
Status: v3 designed 2026-09-27 (grill of the two spikes); slices V0–V5 built (on main
since 2026-09-28; GFX, V6, tabled). Both spikes were removed in V0 and are tagged: classic UX (spike-classic, M1–M9) and
UX 2 (spike-ux2, S1–S6); see §3 History. The core (§1–§2) carries over unchanged.
Premise. A performance means eyes mostly on the grid: the grid carries the state you need, and PAM's screen (FOLLOW) is a glance, not a dependency. Material is mostly prepared in PAM or with Claude; the grid transforms it, and step entry covers what's built live (mono steps, ratchets, poly chords).
c1 ─ c4 c5 ─ c8 c9 ─ c12 │ c13 c14 c15 c16
r1–r4 [ C1 ] [ C2 ] · · · │ C1 C2 C5 C6 r1 cell keys
(bank 2: C5 · C6 · C7 · C8) │ C3 C4 C7 C8 r2 (PAM's layout)
r5–r8 [ C3 ] [ C4 ] · · · │ MUTE ROLL16 ROLL32 EVOLVE r3 modifier row
│ b1 b2 b3 b4 r4 bar keys
│ b5 b6 b7 b8 r5
│ NOTE MOD PLAY · r6 cell modes
│ MACRO GFX · VAR r7 global modes · VAR
│ FOLLOW · A SH r8
- Squares (cols 1–8): the current bank (one of PAM's two 2 × 2 cell blocks, C1 C2 / C3 C4 or C5 C6 / C7 C8) as four 4x4 squares, laid out as PAM draws them. Focusing a cell (its cell key) shows its bank; there is no BANK key. A square is one bar (16 steps, row-major) and shows its cell's live bar unless pinned. Squares are cells in every cell mode (ADR 0001).
- Any cell may be Poly (PAM's setting,
isPoly); a Poly cell's square works like the others, and holding one of its steps opens the scale keyboard (§ NOTE). - Cols 9–12: NOTE's tabs on row 1, and a focused Poly cell's arp panel on rows 2–8 (§ NOTE); the detail block covers them while something is held.
- Nav column (cols 13–16), top to bottom as drawn. Three keys (r6 c16, r7 c15, r8 c14) are left free on purpose, as room for additions after v3 has been played.
One rule for every cell mode: square = cell · tap = the quick action · hold = the detail block opens with that thing's editor.
- Detail block: while something in a square is held, the other half of cols 1–12 (4 × 12) becomes its editor: rows 5–8 for the bank's top squares, rows 1–4 for its bottom squares. The half being edited stays live, so several held steps across its two cells form one selection.
- Property editors mirror, so the first priority is always the row next to the held key (r5 for the top half, r4 for the bottom). Pitch doesn't mirror: higher is always up.
- Modifiers: hold a verb, tap a cell key (MUTE, ROLL16, ROLL32, EVOLVE, VAR; a bar key works the same way for length).
- Two keys at most for any gesture (user, after V1). A held step counts as one. A variant that won't fit is cut or becomes a hold duration, never SH as a third key. The whole vocabulary is four gestures: tap · long hold · hold + tap · hold + long hold (e.g. VAR + a 1 s hold = save).
- Tap a mode key again = next tab / next set. Hold on a mode key means nothing (the spikes' tab strip is gone).
- SH + A = undo. In NOTE and PLAY, the grid's last edit on any cell, evolves included; other modes undo in their own scope. Grid-only undo; refused (A flashes) if the target changed since (§2.2).
- Focus is set only by tapping a cell key (not by pressing steps). The focused cell drives the bar keys and FOLLOW. Tap the focused key again = PAM zoom flip. Focusing a cell in the other bank shows that bank.
| Keys | Gesture | Action |
|---|---|---|
| Cell keys (r1–r2) | tap | focus (FOLLOW moves PAM; a cell in the other bank brings its bank) · focused again = zoom flip |
| MUTE | hold + tap a cell key | mute / unmute (no solo on the grid) |
| ROLL16 · ROLL32 | hold + hold a cell key | pad roll (IAC) until the cell key is let go · roll style fixed Classic (set in PAM); no pattern ratchet (per-step ratchet covers it) |
| EVOLVE | hold + tap a cell key | reroll that cell, scoped by mode: the note pattern on NOTE's N tab and in PLAY, the lane on its P · T · S tab · undo with SH + A |
| Bar keys (r4–r5) | show | the focused cell's bars 1–8: dim = within length, bright = live bar, blink = pinned; an odd beat length shows its last bar at half brightness |
| tap | pin the focused cell's square to that bar · tap again = back to the live bar | |
| hold + tap a cell key | that cell's length = that many whole bars (odd beat counts are set in PAM) | |
| VAR | hold + tap a cell key | recall variation N (cell keys in PAM layout = 1 2 5 6 / 3 4 7 8), queued on the next bar (at once while stopped) · the queued one again = cancel · hold the cell key 1 s = save (backed up first, as before) · while VAR is held the cell keys show the variations |
| FOLLOW | tap | PAM's screen follows the grid: on / off |
Tap NOTE again = next tab (NOTE · PITCH · STRETCH · SLICE). The tabs show on row 1 of cols 9–12 (current lit) while no detail block is open; tapping one jumps to it. The bar keys, length (hold bar
- cell) and pins act on the tab's lane, and EVOLVE + a cell key rerolls it.
N — the note lane
| Where | Gesture | Action |
|---|---|---|
| Square | press an empty step | add it at once (so it can be held) |
| quick tap (< 200 ms) on a step | remove it | |
| long hold (≥ 200 ms) on a step | detail block: velocity (12 levels) · ratchet 0–8 (cols 1–9) · condition (always · 1ST · 1:2 2:2 · 1:3…3:3 · 1:4…4:4, 11 keys) · probability (12 levels), mirrored | |
| holding a step | freezes its square on that bar until every held key is released (the bar is fixed on press) | |
| press steps while the detail block is open | they join the selection (edited together, kept on release); overlapping quick taps before that are independent taps (fast fingers aren't a selection) | |
| Poly cell's square | quick tap on an empty step | add the root note (a press alone adds nothing, so a chord doesn't start with an unwanted root) |
| quick tap on a step | remove the chord | |
| long hold (≥ 200 ms) a step | detail block = the scale keyboard: one row per octave of the cell's scale (poly.scaleName / scaleRoot, up to 12 cols), octaves +1 · 0 · −1 · −2 above the root note (top → bottom), the same wherever the step is held (never mirrored); root marked (5), the chord's notes lit (15) · tap a note = toggle it in the chord (heard as added) · steps pressed while it's open get the same toggles |
|
| open (after V3 is played) | a Poly step's properties (velocity · ratchet · condition · probability) and ties; the spike-era gestures were three keys. Candidates: tap SH while holding flips keyboard ↔ properties, a LENGTH row for ties |
The arp panel (cols 9–12, rows 2–8) shows for the focused cell when it's Poly, on every NOTE tab, while no detail block is open. PAM's arp is a retrigger arp (it walks the pitch across a note's retriggers), so a step's ratchet count sets how many notes it plays.
c9 c10 c11 c12
r2 Up Down Up/Dn Rand mode: current lit (half-bright while the arp is off)
r3 Triad Maj Min PMaj
r4 PMin Micro · ·
r5 +24 +19 +12 +7 range in semitones (`cell{N}_arpeg`), higher above
r6 +5 +3 +2 +1 tap the lit range again = off (0)
r7 −1 −2 −3 −5
r8 −7 −12 −19 −24
Choosing a mode while the arp is off turns it on at +12, so a mode tap is always heard.
Velocity randomness and micro are dropped (micro is kept on steps that have it; they pulse). LED language is carried over from the spikes: trig brightness by velocity, pending 8, off-grid pulse, playhead, predicted hits (§2.3).
P · T · S — the value lanes
| Tab | Square | Gestures |
|---|---|---|
| PITCH | steps with a pitch lit by value (5 … 15); note-lane trigs as dim ghosts (3); empty 1 | quick tap = clear the value · long hold = the picker: 4 rows = octaves +1 · 0 · −1 · −2 of the cell's scale (up to 12 cols, root of octave 0 marked), never mirrored · tap the lit value again = clear |
| STRETCH | same | long hold = the 7 tiers (0.25 … 3 ×) on the row next to the key |
| SLICE | same | long hold = slices 1–48 as a keyboard, 12 a row from the top (past the cell's count dark); a press assigns and auditions |
Steps pressed while a picker is open join the selection, as on N. EVOLVE on a value tab = a random value wherever the note lane fires (one undo step).
Each cell's square (the V2 layout; a row-per-lane redesign was tried and reverted):
| Row | Keys | Action |
|---|---|---|
| r1 | lane N · P · T · S | which lane r3 and r4 act on; a lane with no events is dim (1) but can be picked (to fill it) |
| r2 | fwd · back · ping-pong · random | direction, one setting per cell (random again: cycle ↔ step) |
| r3 | ◀ ▶ · REROLL | rotate the chosen lane one step · REROLL it: P · T · S = a value wherever the note lane fires (refused with an empty note lane), N = PAM's pattern randomizer; one undo step |
| r4 | ½ · 1 · 2 | the chosen lane's speed (SH held: ¼ · 3 · 4) |
When the chosen lane has no events, rotate and speed dim and do nothing, and REROLL lights (8): the quick way to fill it. The bar keys follow the focused cell's chosen lane. EVOLVE + a cell key = the pattern, as on N.
c1 c2 c3 c4
LFO s1 s2 s3 s4 a slot = one of the cell's mappings of that type, in PAM's order
VARY s1 s2 s3 s4 lit by strength (5 … 15), muted 2, empty 1
ENV s1 s2 s3 s4
PSEQ s1 s2 s3 s4 a ParamSeq lane on one of the cell's params
- Slot: tap empty = add a random mapping · tap = mute / unmute · SH + tap = a new random target (same source, strength) · A + tap = delete · long hold = its detail block (no punch: you hear it while editing). There is no mute-all or reroll-all row (cut after V5).
- Detail block (a held slot), nearest row first: STRENGTH (LFO · VARY · ENV: 12 signed steps, −1 … −⅙ | +⅙ … +1 · PSEQ: 1/12 … 1) · TARGET 12 curated targets on the cell (current lit; a target that already has a Vary / envelope / ParamSeq of that type is refused) · the third row is dark except for PSEQ: c1 = reroll the lane's steps (CHARACTER was cut) · SOURCE LFO 1–6 · VARY / ENV source cell 1–8 · PSEQ the cell whose clock drives it.
- Tap MOD again = slots 5–8 (and back); the set shows on row 1 of cols 9–12 as two tabs.
- While an LFO slot's editor is open, every square's slots on that LFO blink.
- New LFO mappings take a random free LFO; new Varies vary on the cell itself; new envelopes take
PAM's source pick (self 75 %, else another cell); new ParamSeq lanes (written into
paramSeqs, as pam-mcp's add_param_seq does) are clocked by the cell: 16 random steps over a bar. SH + A = undo (mapping edits, newest first). PAM's screen shows the LFO view.
PAM's macro controls are MIDI CC 1–8 on channel 1, mapped per patch in PAM (Settings → Mappings; Auto Map = macros 1–8). The grid sends those CCs over IAC and never hardcodes a destination: pad n is CC 2n−1 on X, CC 2n on Y (1·2 · 3·4 on top, 5·6 · 7·8 below). PAM's screen shows CtrlAll.
- Keys are evenly spaced 0–127: 6 columns (0 · 25 · 51 · 76 · 102 · 127), 4 rows (0 · 42 · 85 · 127). The current point is lit (15) with a faint crosshair; nothing lights until a value is known.
- What it shows: a CC mapped (in config.pam's
midiMappings, re-read every 2 s) to amacro_*param PAM reports shows that param's value, so moves made in PAM show too; otherwise the value the grid last sent. - Glide: tap = over 1 beat · SH + tap = over 1 bar · A + tap = jump · hold a key + tap another on the same pad = sweep from the held one · tap the lit key again = centre (64). Glides stream CCs about 16 per beat; the press is logged, the stream isn't.
Delay · reverb · repeat · vinyl brake · filter · crusher, two columns each.
| Rows | Action |
|---|---|
| r1 | ON: the effect in every active cell (tap latch · hold momentary) |
| r2 | REROLL: the effect's CtrlAll FX macros (switched on as PAM does: new = EQUAL) |
| r3–r6 | AMOUNT: 8 levels (2 × 4) on the Mix macro, with glide; hold the top = ENGAGE (Repeat / Vinyl brake: Engage; others: Mix 100 % throw) |
| r8 | +FX (a random effect of the six that's off) · REROLL ALL · FX KILL (tap latch · hold momentary) |
STUTTER (and range loops) · MOD KILL · the ParamSeq page (PSEQ lanes live on as MOD's fourth row) · the per-cell FX page · LOOP (and always-listen: v3 never touches the looper's settings) · XY · crossfader · the VAR panel (quantize choice, HOLD, roll-style picker) · the cell strip and PERF · a POLY mode (poly editing is per cell) · both spike shells.
| Slice | Contents |
|---|---|
| V0 | Delete classic (app.ts, its pages) and UX 2 (src/ux2/), and the CUT-only core (looper.ts, pseq.ts, pseqPage.ts, modPage.ts, the mirror's looper and ParamSeq reads). Add src/v3/: a small shell (nav column, focus, routing) and a cell-mode interface (render a square, tap, provide a detail editor) that NOTE's tabs, MOD and PLAY implement. Tests via a v3 harness in test/fakes.ts. |
| V1 | The overview (NOTE's N tab, mono steps) + nav column: cell keys, modifier row (MUTE, ROLL16 / 32, EVOLVE), bar keys (pin, hold + cell = length), VAR (tap = recall, hold 1 s = save), FOLLOW, undo. A playable set on its own. |
| V2 | NOTE's P · T · S tabs (pickers) and PLAY (a row per lane, held speed / direction) |
| V3 | Poly step entry: a held Poly step's scale keyboard (properties and ties after it's played) |
| V4 | MACRO (four XY pads, glide) |
| V5 | MOD (squares, mapping slots, slots 5–8) |
| V6 | GFX · tabled (user, 2026-09-28): the key stays unbuilt (refuses); design kept below |
Until V1 runs, npm start has no usable UX.
┌──────────┐ OSC/UDP ┌───────────────────────────┐ TCP JSON-lines ┌──────────┐
│ Grid │◄──────────►│ pam_grid │◄────────────────►│ PAM │
│ 128 │ serialosc │ (Node daemon) │ bridge :984x │ (plugin/ │
└──────────┘ │ │ │ standalone)
│ mirror · queues · pages │ IAC MIDI │ │
│ │─── PAM-grid-in ─►│ cell MIDI│
│ │ │ │
└───────────────────────────┘ └──────────┘
Hybrid transport (decision Q1: "C, with A as the core"):
| Path | Used for | Why |
|---|---|---|
PAM TCP bridge (same protocol as @map-audio/pam-mcp-server) |
Everything stateful: lane reads/writes, ParamSeq, mutes, variations, transport, params (rollMode, retrigger, Player controls) | Only path that can write patterns. ~70–110 ms round trip. |
IAC PAM-grid-in (daemon → PAM) |
Time-critical gestures: one-shot triggers, pad rolls (held notes), slice audition, v2 isomorphic keyboard | MIDI timing instead of a 100 ms TCP round trip. |
PAM-grid-out |
— |
- Discovery:
~/.pam-mcp-bridge.json→ array of{instanceId, pid, port, product}. Filter stale PIDs withprocess.kill(pid, 0). Bind to the first live instance; honour an env pinPAM_GRID_PRODUCT/PAM_GRID_INSTANCE(mirrors pam-mcp'sPAM_BRIDGE_PRODUCT). - Wire format: newline-delimited JSON. Request
{id, action, args}→ response{id, result}or{id, error}. Request/response only; no subscriptions. - Key actions:
getState(section|keys),getTransport→{bpm, isPlaying, ppqPosition},applyUnifiedStateKvUpdate,applyParamSeqUpdate,applyParamSeqSequenceUpdate,queueVariationOnBars,loadVariation,setVariationHoldEnabled,setMidiOutputEnabled,setMidiOutputDevice,setMidiInputDevices,startMidiRecording,stopCell. - Lane write (copied from pam-mcp
update_pattern):Keys:applyUnifiedStateKvUpdate({ delta: { [key]: seq, __forceRender__: true }, options: { shouldDispatch: true, syncKVResources: true, syncConfigResources: false, skipFileLoadingIfUnchanged: true, resyncKVAfterDispatch: false, updateParameters: false, broadcastFollowers: false }, directNodeOps: [{ key, property: "sequence", value: seq }], })
cell{N}_midiSequence | _pitchSequence | _sliceSequence | _stretchSequence. - Safety: the bridge is unauthenticated localhost and gated behind Settings → Experimental → Beta Features. pam_grid is a trusted local client, like pam-mcp.
- Note event:
{time, note, duration, velocity, value, prob, randVel, retrigger, retriggerDelay, retriggerProb, retriggerVelocity, channel, …};timeis a float in beats (0.25 = one 16th). - Value events (pitch/slice/stretch):
{time, value, duration, …}. cell{N}_patternLength*is in beats (quarter notes), 1–32 — the manual's "1–32 bars" is wrong; the param manifest sayssuffix:"beat". So a lane is at most 8 bars in 4/4 and may be an odd beat count (polymeter). (spike 1b)cell{N}_patternSpeed*is an index 0–19 into1/32 1/16 1/12 1/8 1/6 1/5 1/4 1/3 1/2 **1** 1.33 1.5 1.66 2 3 4 5 6 8 12(index 9 = 1×).- Per cell: 4 lanes (Note, Pitch, Slice, Stretch), each with independent length (1–32 beats) and speed. Plus ParamSeq lanes (2–64 steps; source Free / Cell N clock / Gate) and the Free Sequencer master contour.
The daemon holds a mirror of each lane's raw event list. The grid never quantizes the mirror.
- A column is a bucket
[step·0.25, (step+1)·0.25)beats within the lane's viewed bar. - Toggle on an empty bucket → insert one event at exactly
step·0.25(defaults as in pam-mcp: note = cell default, velocity 127, prob 1, duration 0.25). - Toggle off an occupied bucket → remove all events in that bucket.
- Property edits (vel/prob/…) apply to every event in the bucket.
- Every other event is written back unchanged — recorded/grooved/humanized feel survives.
- LED: on-grid event = brightness from velocity; bucket whose event(s) are off-grid (micro, humanize, recorded) shows a steady 8 ("wobble") instead of velocity brightness.
Other writers: PAM UI, Claude via pam-mcp, variation recall, preset load, randomize, Player Freeze/Keep, MIDI recording.
- Read-before-write: every edit re-reads the lane, applies the bucket change to the fresh
list, then writes. Measured ~300–400 ms per edit (spike 1c). Note:
getStateonly accepts a section server-side (pam-mcp'skeysfilter is client-side), and thecellssection does not contain sequences — so the read is a fullgetState(~240 KB). Its cost is dominated by PAM's message-thread scheduling (~100 ms median whether 9 KB or 240 KB), not payload. - Optimistic LEDs: because a confirmed edit takes ~350 ms, the grid lights the pressed key immediately in a pending style (brightness 8, no velocity) and settles to the true value when the write is read back. A failed/conflicting write reverts the LED and flashes it.
- Per-lane serialized queue: edits to one lane run strictly in order; rapid presses coalesce (pending toggles on the same lane batch into one read-modify-write).
- Background refresh: one full
getStateevery ~1 s for all cells. (Tiering by focus was dropped: every read costs the same ~100 ms whatever its size — spike 1c.) - Wholesale invalidation: after the daemon issues (or detects) variation recall, preset load, randomize, Freeze → immediate refresh of all lanes.
- Undo: per-lane stack of the grid's own writes (before/after snapshots).
SH + Aundoes the last grid edit on the focused lane. Never attempts to undo UI/Claude edits; if the lane changed externally since that write, undo is refused (flash the A key) rather than clobbering.
- Playhead: poll
getTransportevery 250 ms; interpolateppqPositionlocally at 60 fps frombpm; re-anchor on each poll. Per-lane position =(ppq × speedMultiplier) mod laneLengthBeats. - Hits are predicted from the mirror + interpolated playhead (spike 1a: PAM-as-plugin
MIDI out does not reach IAC through Bitwig). Per lane, each frame:
- step index =
floor(pos / 0.25)mapped through direction (fwd / bwd / ping-pong are deterministic index arithmetic); - loop count =
floor(ppq · speed / lengthBeats)→ evaluates N:M conditions exactly; 1ST = loop 0 since the transport started (detect byisPlayingedge / ppq jump back); - flash time shifted by the event's Micro and the cell's Swing;
- muted cells never flash.
- step index =
- Uncertain hits — shown as a dim flash (3) instead of a hit flash (8): probability < 100 %, Random Cycle / Random Step direction, cells with a Generative Player running, and (not modelled) Vary. The daemon never claims a hit it can't know happened.
setMidiOutputEnabledis not used. The grid → PAM direction (PAM-grid-in) is verified working and remains the path for triggers, pad rolls and slice audition.
- Classic UX (
git show spike-classic:DESIGN.md, M1–M9, 2026-09-25): the grid was the whole display: row 8 nav (C1–C8 | N P S T Q ★ A SH), one page per lane or tool, a ★ Perform page, a source × target MOD matrix. - UX 2 (
git show spike-ux2:DESIGN.md, §0, S1–S6, 2026-09-26/27): a hybrid. PAM's screen followed the grid (setView), and the grid showed steps, routings and FX: two geometries (edit full width / perform split), the PERF cell strip, five modes with tabs. - What carried into v3: mute / solo, pad rolls + pattern ratchet, EVOLVE, variations, FOLLOW, step add / remove / hold-to-edit, randomization first (one-key add / reroll / stepped values), glide, SH = the variant, tap again = next.
- What didn't: features that needed their own geometry (STUTTER, MOD KILL, LOOP, PSEQ, per-cell FX); one-cell-at-a-time pages; faders where XY pairs play better; panels of rarely used options (the VAR page); a 24k shell that every slice touched.
setView({view?, cellId?, gridSize?, instrumentView?})is "dispatched" in 14–96 ms and the screen moves;instrumentView: "sampler" | "synth"passes through (undocumented) and persists. Needs PAM's window open; grid → PAM only. Coalesce: latest wins, 40 ms debounce, failures logged and never blocking.- PAM can show: the zoomed cell's sample (sampler view), the 6 LFO generators, each cell's envelope follower, the Looper, and an 8-cell overview with each pattern as a 16-step strip. It can't be driven to show step detail, the FX chain, or any modulation routing.
- Step fields:
retriggerclamped 0–8 ·randVel0–1 ·microinteger −100…100 ·trigCondition=undefined | {type:"first"} | {type:"cycle", offset, period}(periods 2–8). - Undo guards compare lanes by musical content (time, note, velocity, prob, retrigger, micro, cond), not bytes: PAM adds bookkeeping fields on write.
- Predicted flashes fire when a lane enters a new step (all directions), ignoring Micro and Swing: at most one step of visual skew.
- Macros the grid switches on must carry the entry and the first value in one delta (a value alone → PAM uses EQUAL); Relative mode makes home = no change.
- Variation saves write the preset through PAM's own save (backed up to
~/Library/Application Support/pam_grid/backups/, last 50); no preset loaded → the first save createsUser/pam_grid <date time>.preset.
- Node 22 (installed via nvm) + TypeScript.
node-oscfor serialosc (discover via/serialosc/list, set/sys/prefix,/grid/led/level/mapfor varibright quad updates at ≤60 fps; diff-render only dirty quads).@julusian/midi(oreasymidi) for IAC busesPAM-grid-in/PAM-grid-out(create in Audio MIDI Setup → IAC Driver).- Bridge client: reimplementation of pam-mcp
PluginBridge(discovery, id-matched pending map, per-action timeouts) — do not depend on the MCP stdio server. - No daemon-side persistence: PAM's preset is the source of truth. Daemon keeps only UI state (focus, page, view-bars) and the undo stacks, in memory.
v3 slices V0–V6 are in §0. The spikes' milestones (M1 spike, M2 core, M3 value lanes, M4–M7 perform, M8 v2 deferred, M9 MOD) and slices S1–S6 are in the tagged DESIGN.md (§3 History).
Q / M / D rows are the classic spike's, U / V / S rows UX 2's (both superseded by W rows where they differ).
| # | Question | Decision |
|---|---|---|
| Q1 | Architecture | Hybrid: TCP bridge core + IAC MIDI for time-critical gestures |
| Q2 | Top-level layout | Row 8 permanent nav; rows 1–7 edit the focused cell |
| Q3 | Hardware | Varibright 128; 4 tiers 0/3/8/15 |
| Q4 | Note page | Trig row + bar strip + 5 property rows |
| Q5 | Off-grid events | Lossless bucketing; toggle-off clears the whole bucket |
| Q6 | Value lanes | Per-lane encodings (scale degrees / slice keyboard / stretch tiers) |
| Q7 | ParamSeq | Rack + fader drill-in; lane creation stays in PAM/Claude |
| Q8 | Cell keys | Tap focus · SH mute · A trigger · hold+tap copy |
| Q9 | Time & hits | Polled+interpolated playhead; hits predicted (MIDI-out fallback taken after spike 1a) |
| Q10 | Perform page | Variations, rolls, lane play controls, generative/dice |
| Q11 | Rolls | Both: plain = pad roll (MIDI hold), SH = pattern ratchet |
| Q12 | Consistency | Read-before-write, tiered refresh, per-lane queue, grid-only undo |
| Q13 | Poly cells | Scale piano roll (v1) then isomorphic keyboard (v2) |
| M3a | P/T row squeeze | 7 value rows; ghost trigs as column tint; A + edge row pages the pitch window |
| M3b | Slice rows | Adaptive: keyboard ceil(count/16) rows, contour the rest |
| M4a | Variation save | First recall-only; then SH + slot saves via PAM's savePreset (pam-mcp recipe), backed up first |
| M4b | Save with no preset | Auto-create User/pam_grid <date time>.preset |
| M5a | ParamSeq rack scope | All lanes, focused cell's first (macro lanes never hidden) |
| M5b | ParamSeq bypass | A + row |
| M7a | Players | Built, then scrapped at the user's request; EVOLVE kept |
| D1 | Mod pages | Source × target matrix per type |
| D2 | Matrix targets | Dynamic: already-modulated first (union across types), then curated fill |
| D3 | Matrix axes | Transposed: rows = targets, cols = sources; ENV·VARY share a tab |
| D4a | ROLL | Adds one random link per press (undoable) |
| D4b | Hold on a link | Momentary punch; A + hold = settings |
| D5 | FX placement | Inside the MOD cycle (Q taps) |
| D6 | FX page | Focused cell's chain, col 1 on/off with punch, 15-step main fader |
| U1 | Roles | Grid performs, PAM displays (setView follows the grid) |
| U2 | Layout | Split: cell strip left (row = cell), context right, modes on right row 8 |
| U3 | Cell strip | SEL · MUTE · SOLO · TRIG · ROLL 1/16 · ROLL 1/32 · STUTTER · MOD KILL |
| U4 | Focus | Only SELECT moves focus and PAM's screen |
| U5 | Modes | STEP · LANES · MOD · CTRL · LOOPER (+ FOLLOW key); FX stays a MOD tab |
| U6 | STEP | 4 rows = 2 bars; rows 5–7 = held step's velocity / prob / ratchet |
| U7 | CTRL | Variations, macros + crossfader, XY pad, lane play + EVOLVE (in tabs) |
| U8 | Macros | Curated performance 8 |
| (U2, U5, U6, U10, U12 revised by V1–V8) | ||
| U9 | Looper capture | Retro capture first (always-listen), REC/STOP secondary |
| U10 | Zoom | Mode decides (cell modes → gridSize 1); SH + SELECT flips |
| U11 | Migration | New shell reusing the core; classic behind a flag until replaced |
| U12 | Order | Shell → STEP → MOD → CTRL → LOOPER → LANES |
| V1 | Premise after N0 | Hybrid: PAM shows sound / generators / followers / looper / overview; grid shows steps, routings, FX |
| V2 | Strip | Two geometries: edit modes full width (hold PERF for the strip), perform modes split |
| V3 | STEP (16 wide) | 4 bars (a bar per row) + held-step detail |
| V4 | Modes | STEP (NOTE·PITCH·SLICE·STRETCH) · MOD (LFO·ENV·VARY·GEN·PSEQ) · FX · CTRL · LOOP |
| V5 | Restored | STUTTER length (range loops) · step micro / condition via SH while holding |
| V6 | Continuous control | Glide by default (tap 1 beat, SH 1 bar, A jump, hold+tap sweep) |
| V7 | Always-listen | On while the grid runs, restored on exit |
| V8 | Order | Thin slice (S1) first, played before the rest |
| S1a | Default UX while S1 is played | UX 2 (PAM_GRID_UX=classic for M2–M9) |
| S1b | Step ratchet range | 0–8 (PAM clamps retrigger to 8; §0's 0–10 was the cell param's range) |
| S1c | Bar paging vs SH-length | Hold SH: rows 1–2 length, rows 3 / 4 = bars 1–4 / 5–8 |
| S1d | Zoom flip vs SH + cell = mute | Edit row 8: SH + cell = mute; strip: SH + SELECT = zoom flip |
| S1e | Strip orientation (user, 2026-09-26) | Column = cell, actions as rows above C1–C8 (SELECT r8 · MUTE r7 · STUTTER r6); PERF hides the steps. S2's perform geometry (strip as the left 8 × 8, row = cell) needs revisiting to match |
| S1f | Mute under PERF (user, 2026-09-26) | PERF + C1–C8 = mute (as SH + C); MUTE row dropped, STUTTER moves down to row 7; PERF + SH + C = zoom flip |
| S2a-1 | Solo | No dedicated key: PERF + SH + C (as SH is mute's variant elsewhere) |
| S2a-2 | Zoom flip | Tap the focused C again (cell views), like "tap a mode key again = next tab" |
| S2a-3 | Strip in the perform geometry | The same transposed strip everywhere; col 14 stays PERF; FOLLOW = SH + PERF everywhere |
| S2a-4 | Strip rows | |
| S2a-7 | TRIG (user, after S2a) | Removed; MOD KILL moves down to r4, rows 1–3 free |
| S2a-5 | Scope | S2 split: S2a strip + perform geometry + CTRL · VAR; S2b MACRO · crossfader · XY · glide (after a spike) |
| S2a-6 | Design language | One gesture = one kind of thing everywhere; extend existing patterns, flag any break |
| S2b-1 | Macro mode | The grid switches macros on as RELATIVE (home = no change); ones already on keep your mode |
| S2b-2 | Which 8 faders | Continuous macros already on first, then the curated 8 (never reordered by the grid) |
| S2b-3 | XY with no axes | Assign X = Cutoff, Y = Delay mix only when PAM has none |
| S2b-4 | Crossfader sides | Shown only; assigned in PAM |
| S2b-5 | Choice macros | Named options / ≤ 8 whole steps aren't faders (stay in PAM's CtrlAll) |
| S2b-6 | Fader levels | Thirds of the room each side of home; no home key — tap the lit key again = home (same for crossfader and XY centre) |
| S2b-7 | Switch-on write | Entry and first value in one delta (a value alone → PAM uses EQUAL) |
| S3a-1 | S3 scope | S3a = the built LFO · ENV·VARY · PSEQ in UX 2 + views; S3b = GEN + link settings after a spike |
| S3a-2 | MOD key | Like CTRL: tap again = next tab, hold = tab strip; SH + MOD = ROLL / re-roll; SH + A = undo in scope |
| S3a-3 | Matrix row order | Fresh on entering / tab / cell change, then sticky (a create never moves rows) |
| S3a-4 | MOD layout (user) | Randomization first: LFO tab rows = LFO 1–6 (reroll · mapping slot · strength), not a source × target matrix |
| S3a-5 | Reroll a mapping | New target only; same source, strength, polarity |
| S3a-6 | Row 7 | |
| S3a-7 | Strength keys | |
| S3a-8 | LFO relayout (user) | r7 c1–c6 = LFO rerolls, c7 = mute all · c1 = reroll the mapping · c4 = one strength key stepping 8 levels (wraps) · right half kept for Vary |
| S3a-9 | Vary half | Right half of the LFO tab (LFO · VARY), same columns: rows = the cell's Vary slots (new ones vary-on-self), r7 = reroll each Vary's character, c15 mute all; rerolls always change something |
| S3b-1 | ENV tab (user) | |
| S3b-2 | Envelope source (user) | New ones: PAM's pick (self 75 %, else another cell); c3 SOURCE steps it (SH = back) |
| S3c-1 | Poly roll (user) | 7 scale notes × one bar on rows 1–7, as classic; hold a note + SH = its velocity · prob · ratchet on rows 5–7 |
| S3c-2 | Poly paging (user) | In the hold-SH view: r3 = view bar 1–8, r4 = window ▼ / pages / ▲ (not classic's A + row 1 / 7) |
| S4-1 | FX layout (user) | Rows = the cell's switched-on effects (not all 23): c1 on/off · c2 reroll · c4–c16 amount; r7 +FX · reroll all · FX KILL |
| S4-2 | Engage | Repeat / Vinyl brake Engage on c3 (tap latch · hold momentary), not on c1's hold, so c1 means the same on every row |
| S4b-1 | FX vertical (user) | All 23 effects a column each (two bands): ON · REROLL (amount too) · ENGAGE hold = Engage for Repeat / Vinyl brake, else a dub throw (on + Mix 100 %) |
| S4c-1 | CTRL · FX (user) | PAM's Global FX in the FX page's layout, full width |
| S4c-2 | Global FX values (user) | REROLL / ENGAGE target the CtrlAll FX macros (switched on as PAM does: new = EQUAL); ON = the effect's switch in every active cell |
| S5-1 | LOOP details | CAP mode "match" (each track's overdub mode) · REC length = last CAP length · CLEAR on a ½ s hold · variations follow CTRL · VAR's quantize |
| S5-2 | Always-listen | Read from PAM's config.pam; switched on while the grid runs, back off at exit only if it was off |
| S6-1 | Lane reroll | SH + STEP on PITCH · SLICE · STRETCH = a random value wherever the note lane fires (one undo step) |
| S6-2 | Lane navigation | Hold SH = length · view bar · PITCH window, as the Poly roll (not classic's bar strip / A + row paging) |
| Q14 | Scope/stack | Milestones §5; Node 22 + TS, node-osc, @julusian/midi |
| W1 | v3 premise (2026-09-27) | Third shell on the same core, weighted toward performance: eyes mostly on the grid, PAM's screen a glance; mostly prepared material + step entry |
| W2 | Overview | |
| W3 | Nav | 4 × 8 column at cols 13–16: cell keys in PAM's layout (1 2 5 6 / 3 4 7 8) · modifier row · bar keys · modes |
| W4 | Poly cells | |
| W5 | Step detail | Hold → the other half (4 × 12), mirrored so the priority row is nearest: velocity · ratchet · condition · probability; SH = micro; velocity randomness dropped |
| W6 | Bars | Squares follow the playhead; bar keys pin (tap again = live) and set length (SH), whole bars only |
| W7 | Triage | KEEP mute/solo · rolls · variations · EVOLVE · FOLLOW; FIX lane play · MACRO · XY · MOD · global FX · value lanes; CUT STUTTER · MOD KILL · PSEQ · per-cell FX · LOOP |
| W8 | Cell vs global modes | Squares are cells in every cell mode; global modes take the whole 12 × 8 |
| W9 | MACRO | Four 6 × 4 XY pads (macro pairs); XY mode and crossfader cut |
| W10 | MOD | A square per cell: LFO · VARY · ENV rows × 4 slots + ALL row; tap again = slots 5–8; hold a slot = detail block |
| W11 | POLY | |
| W12 | LANES | Hold a step = value picker in the detail block; PITCH = one row per octave, not mirrored; PLAY tab = lane play per square |
| W13 | GFX | Six effects (delay · reverb · repeat · vinyl brake · filter · crusher), two columns each, AMOUNT with glide |
| W14 | VAR | Only hold VAR + tap a cell key (SH = save); the VAR panel is cut; recall on the next bar, roll style Classic |
| W15 | Focus | Only the cell keys move focus (U4 stands) |
| W16 | Free keys | Two nav keys left unassigned on purpose |
| W17 | Code | Tag both spikes, delete classic and UX 2; src/v3/ with a shared cell-mode interface |
| W18 | Order | V0 cleanup → V1 overview + nav → V2 LANES → V3 Poly step entry → V4 MACRO → V5 MOD → V6 GFX |
| W19 | Banks (user, before V0) | Four squares as a 2 × 2 at cols 1–8 = one of PAM's cell blocks; BANK (was POLY, r6 c16) flips C1–C4 ↔ C5–C8; cols 9–12 dark until a hold (ADR 0001) |
| W20 | Poly per cell (user) | Any Poly cell edits in its square; hold a step = the scale keyboard (one row per octave) in the detail block, SH = properties; no POLY mode, no reserved cells |
| W21 | Two keys at most (user, after V1) | No three-key gestures anywhere; a held step counts as one |
| W22 | Solo, pattern ratchet, micro (user) | Cut from the grid (were SH + MUTE, SH + ROLL, hold step + SH) |
| W23 | Variation save (user) | VAR + hold the cell key 1 s (tap = recall) |
| W24 | Undo (user) | SH + A = the grid's last edit on any cell (was the focused cell's); covers EVOLVE |
| W25 | Length (user) | Hold a bar key + tap a cell key (was SH + bar key, focused cell only) |
| W26 | Gesture vocabulary (user) | Tap · long hold · hold + tap · hold + long hold; nothing else |
| W27 | LANES tabs | Shown and jumpable on row 1 of cols 9–12; bar keys / length / EVOLVE follow the tab's lane; quick tap clears a value; PITCH octaves +1 … −2 (PAM's ±24) |
| W28 | NOTE key (user, after V2) | STEP renamed NOTE; PITCH · SLICE · STRETCH are its tabs (N → P → S → T), not a LANES mode |
| W29 | PLAY (user) | |
| W30 | PLAY reverted (user) | Back to the V2 layout (lane · direction · rotate · speed) on the PLAY key; lanes with no events dim and can't be picked |
| W31 | BANK cut (user) | Focusing a cell already shows its bank; r6 c16 is free |
| W32 | PLAY REROLL (user) | r3 c3: reroll the chosen lane; empty lanes selectable (dim) so REROLL can fill them |
| W33 | Lane order (user) | N · P · T · S everywhere (stretch before slice): NOTE's tabs and PLAY's lane row |
| W34 | Poly entry (user) | The scale keyboard in the detail block (not an expanded piano roll: tried in discussion, the keyboard first); quick tap on an empty Poly step = root note, a long hold adds nothing |
| W35 | Arp panel (user) | Cols 9–12 rows 2–8 on NOTE for a focused Poly cell: 10 modes + 16 ranges; a mode while off = on at +12 |
| W36 | MACRO pads | |
| W37 | MACRO = CC 1–8 (user) | The pads send PAM's macro controls (CC 1–8, ch 1, mapped per patch) instead of hardcoded CtrlAll destinations; even 0–127 levels, lit again = 64 |
| W38 | MOD slots | Rows LFO · VARY · ENV + ALL; long hold = editor (no punch; momentary mute on the ALL row); SH + tap = reroll target; the spike's "SH = all six" LFO reroll dropped (three keys) |
| W39 | MOD after V5 (user) | A PSEQ row (ParamSeq lanes as mapping slots) replaces the ALL row (mute-all · reroll-all cut); CHARACTER cut from the held editor, its row reused for PSEQ's step reroll |
| W40 | GFX tabled (user) | V6 deferred; GFX key unbuilt, design kept in §0 |
Test fakes duplicated— resolved in M9 (test/fakes.ts).
Layout collisions found when drawing the pages to scale (docs/grid-map.html):
-
P / T row squeeze— resolved in M3: 7 value rows, ghost trigs as a column tint (§3.4). -
S contour rows— resolved in M3: adaptive keyboard/contour split (§3.4). -
Q rack enable collision— resolved in M5:A+ row = bypass (§3.5). -
PAM MIDI out coverage— resolved negatively (spike 1a): no MIDI reaches IAC from Bitwig; flashes are predicted (§2.3). Revisit if PAM is ever run standalone. -
Enum tables for pattern length/speed— resolved (§1.2). -
Read-modify-write latency— resolved: ~300–400 ms, restore verified byte-equal (§2.2). -
Stretch lane value range → 7 tiers mapping.
-
ParamSeq state shape— resolved in M5:paramSeqsarray keyed byparamId(§3.5). -
Multi-instance: currently "first live instance"; a switcher (e.g.
SH + ★) if needed.