josh
|
712f049f96
|
Serialize split-region topology in presets
Replace the flat per-board pedal list with an ordered [BoardSegmentState]
(pedal | parallel | stereoSplit | mergeToMono) so parallel and stereo
split regions — branch pedal chains plus SplitMode/StereoRoute — round-trip
through saveRig/loadRig and rebuildBoard.
- PedalBoard.orderedSegments tracks chain structure (add/split/splitStereo/
mergeToMono); captureState() walks it; rebuildSegments() replays it.
- BoardState backward-compatible: decodes legacy flat `pedals` arrays;
computed `pedals` exposes the linear subset; throws on a file missing both
keys. BoardSegmentState wire discriminators documented.
- applyState (lightweight recall) extended to branch pedals + routing modes.
- Unknown pedal types skipped on load, including inside branches.
- Tests: parallel / stereo / mergeToMono file round-trips, legacy decode,
unknown-pedal-in-branch, branch-param recall. Suite 116/116; demo builds.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-21 17:12:46 -07:00 |
|
josh
|
f89229282f
|
Add mono→stereo routing to PedalBoard
Introduce chain width propagation (mono=1 / stereo=2, capped at 2),
represented as a pair of mono buses to reuse existing infrastructure.
- Pedal: width-parameterized build() with channelKind (mono / widener /
stereoNative); effect() runs per channel for auto-stereoize, shared knobs.
- PedalBoard: width tracking, add() dispatch, mergeToMono(), splitStereo()/
collectStereo() with four route modes (stereo / leftOnly / rightOnly /
bypass), centered solo, click-free lagged gains.
- BoardOutputMaster: width-aware (Pan2 mono, direct L/R stereo).
- New routing nodes: StereoSplitter, StereoRouteCollector, StereoSplitSection.
- Reference pedals: OctaveUpSplitterPedal (widener), PingPongDelayPedal
(stereo-native).
- 12 stereo-routing tests; full suite 108/108.
Design: docs/stereo-routing-design.md
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
2026-06-21 16:48:25 -07:00 |
|