- AmpVoicePedal class doc lists Fullerton Reverb as a subclass.
- Ceiling test exercises the tremolo path (intensity/speed set).
- amp-modeling-2.0-plan S2 notes the Fullerton Reverb full-surface block.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Review follow-ups (non-blocking):
- AmpVoicePedal.effect doc: note the cab Select evaluates every ConvolutionReverb
each block regardless of selection (bounded fixed CPU), carried over from the
removed AmpPedal.
- amp-modeling-2.0-plan.md S2: describe the three-pedal voice split
(California/British/Chime + AmpVoicePedal base) instead of the old single
model-selector design.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Non-blocking cleanups from the clean review pass:
- EngineConfigView.startEngine: collapse the redundant early-return in the
sample-rate-mismatch branch into the shared tail.
- InputMuteButton: hoist the 0.2s settle duration to a named pulseSettleDuration.
- InputMuteTests: correct a stale "input defaults muted" comment (library default
is audible; the test mutes explicitly).
- Plan doc: setInputMuted(true) runs before engine.start(), not after; note the
addBoard priming.
464 tests pass; macOS app builds.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
External review found the lagged mute gate leaks a faint transient (~-54 dB) on
its first blocks: Lag seeds its state at 0, so gating on a lagged value never
starts at exactly zero on a rig that comes up muted — the moment the mute is
meant to keep things quiet. Measured directly via an NRT render.
- Gate the input with a hard, un-lagged kill switch `(inputMute - 1) * -1` in
both HardwareInputPassThrough and TestLoopTap. A muted node is then exactly
silent from the first sample; a kill-switch mute is expected to be abrupt.
Drop the now-unused muteLagTime constant.
- Flip the library default to `inputMuted = false` (audible). Muting is the app's
Start-time policy (EngineConfigView already re-asserts muted on user Start), so
headless/offline library use isn't forced silent and render tests that route the
test-loop through a board no longer depend on a leak to see signal. The pulsing
glow now also starts at engine Start rather than before it.
- Tests: add render-level mutedInputRendersSilent (exact silence) and
unmutedInputRendersSignal; update the default-state and MIDI-latch expectations;
drop the StereoRouting un-mutes that the leak had made necessary.
- Plan doc: correct the mute default / gate description and the UserDefaults note.
463 tests pass; both app targets build.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The rig snapshot already stores inputSource + input/output channel counts and
syncs them via the autosave envelope and the iCloud rig library. Make that the
single source of truth instead of the parallel UserDefaults path.
- RigStore.restore applies the saved channel layout (applyChannelLayout) before
loadRig, while stopped at launch, so a saved live-input channel validates
against the restored count instead of falling back to the test loop. The
general loadRig policy (don't force layout mid-session) is unchanged.
- applyInputSource and the engine-config onConfigApplied now autosave, so input
and I/O changes are captured into the rig immediately.
- Remove the UserDefaults keys and read/write sites: ShoeGaze.inputSelection
(builder view + iOS model) and the ShoeGaze.inputChannels/outputChannels keys
added earlier (EngineConfigView + both app targets build at the default layout
now; RigStore.restore supplies the rig's layout).
- Fresh-launch default: the seed paths set inputSource = liveInput(0) when the
engine has an input channel, so a first launch listens to the instrument. A
restored rig keeps its own saved input; the view's on-appear hook only requests
mic access for a restored live selection (test-loop fallback on denial).
Test: RigStore.restoreAppliesSavedChannelLayoutAndInput. 461 tests pass; both
app targets build.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Input mute: a hard gate on the signal feeding every board (guitar / mic),
distinct from the rig-output mute. Each board input writer (TestLoopTap /
HardwareInputPassThrough) gains a lagged @UIParam mute gain; ShoeGaze holds
inputMuted (default true), drives every input node, and brings newly-added
boards up at the current state. A deliberate user Start re-asserts the mute so
a fresh engine is silent until the player un-mutes — cutting accidental noise.
Toggle sits beside the Start/Stop transport and is MIDI mappable
(MIDIMap.Action.inputMute). First launch now defaults to live In 0 instead of
the test-loop arpeggio.
I/O persistence: the engine's input/output channel counts now persist to
UserDefaults (written by EngineConfigView, restored by the app targets at
engine construction), so a multi-channel setup survives relaunch and a saved
live-input channel stays valid — fixing the input selection reverting to the
test loop after a restart.
Tests: InputMuteTests (default-muted, node driving, per-board adoption, live
path) + a MIDI PC input-mute latch test. StereoRouting render tests un-mute
before rendering. 460 tests pass.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A CC bound to a pedal parameter locked to a note division is now ignored while
synced — the value is tempo-derived and a CC write would be overwritten on the next
tempo change. Index-stable: ccMappableControls is unchanged (persisted bindings resolve
by position), and only the CC *write* is skipped. MIDIController.applyCC checks
Pedal.isNodeTempoSynced(_:) (node-identity match against tempoSyncableParams) and
skips the update; the binding stays intact and resumes control once set back to Free.
Test: MIDIControllerCCTests.ccIsIgnoredWhileParameterIsTempoSynced. 455 tests pass.
Docs: CHANGELOG.md, RELEASES.md, plan MIDI section updated to "implemented".
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Tempo sync
- Lock a delay time or modulation LFO rate to a note division (whole..sixteenth,
dotted, triplet) of the shared clock. Value is derived from the tempo and follows
tap tempo, the stepper, the editable BPM field, and MIDI.
- Delay time: Delay, FeedbackDelay, PingPong, ReverseDelay, MultiTap (per tap).
LFO rate (inverse mapping): Tremolo, Vibrato, Chorus, Flanger, Phaser, Modulation.
- Core types NoteDivision / TempoSync / TempoSyncableParam; Pedal.tempoSyncableParams /
tempoSync / applyTempoSync / setSync; ShoeGaze.setBpm broadcast recomputes all pedals;
tempoSync persisted in PedalState (lenient decode) and recomputed on load + recall.
- Observable TempoSyncRevision so the sync badge refreshes on any state-change path.
UI
- Division picker with drawn music-notation glyphs (NoteGlyphView + rasterized cache):
noteheads, stems, flags, augmentation dot, bracketed 3 for triplets. Presented as a
height-capped popover so it stays on-screen on iOS.
- Editable BPM text field: integer-only, live-filtered, clamped 30-300, commit on
return / Done / blur.
- Divisions that clamp at the current tempo are disabled in the picker; an active
clamped sync shows a warning marker.
- In-context control mapping badges (PC / CC / KEY) per pedal control, with a legend.
Delays
- Maximum delay time raised to 5 s across the delay pedals (was 1-2 s).
Docs: CHANGELOG.md, RELEASES.md, docs/plans/2.2-tempo-synced-parameters.md.
All 454 tests pass; passed lyrebird_external_review (RT-safe, main-thread param writes).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bind letter/digit keys (with Shift/Control/Option; Command reserved for
menu shortcuts) to the same rig toggle Actions a MIDI Program-Change
footswitch drives. Keys reuse MIDIController's perform(_:) dispatch via a
new .key learn target and ingestKey(_:modifiers:).
Key capture is platform-specific: macOS installs an AppKit
NSEvent.addLocalMonitorForEvents(.keyDown) monitor (SwiftUI .onKeyPress
only delivers to the focused view); iOS uses .onKeyPress with the root
made focusable/focused, reclaiming focus when a text-field modal closes.
Both gate on the first responder not being a text field so typing is
never hijacked, filter key-repeat, and reserve Command for the menu.
MIDIMap gains keys:[KeyBinding] and a KeyModifiers OptionSet, both with
tolerant Codable decode so old rigs (no keys / no modifiers) still load
with switches/ccs intact. The mapping sheet is unified: each switch row
shows its footswitch (PC) and key bindings with per-source learn/clear,
and the sheet is retitled "MIDI / Control Mapping".
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- Visual metronome tempo indicator (pendulum playhead) replacing the flashing LED
- Rig Mute (Cmd-Z) hard-silence, distinct from Bypass Rig; wired to header, board menu, MIDI
- Keyboard shortcuts: Cmd-1..9 board switch, Cmd-Shift-1..0 set-list rig load, Cmd-Z mute
(macOS native menus + iOS/iPadOS hardware keyboards)
- Rig set-list ordering: drag or Move Up/Down in the picker; order saved and archive-portable
- Persist tempo, input selection, and engine I/O with a rig (I/O applied via opt-in
applyChannelLayout, not forced on load)
- Fix archive import colliding set-list positions with existing rigs
- Remove ShoeGazeDemo / ShoeGazeiOSDemo apps and projects; keep the two Builder apps
- Bump marketing version to 2.0.0 on both Builder projects; pin Lyrebird 1.2.3
- Add CHANGELOG.md
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Introduce a single shareable document type for rigs and boards:
- ShoeGazeDocument: versioned JSON envelope wrapping either a RigArchive
(one or many rigs) or a BoardVersion, with a tolerant decoder that also
reads the legacy bare-RigArchive and bare-ShoeGazeState shapes.
- Register the .shoegaze UTType (net.realizedsound.shoegaze, conforms to
public.json) in all four demo app Info.plists.
- Migrate library export/import onto the envelope: exportDocumentData() and
a decoder-tolerant importArchive(); RigFileDocument and the Builder
exporter/importer now use .shoegaze. Internal per-rig and board-version
files stay app-private JSON.
- Add OS share-sheet entries via SwiftUI ShareLink: Share per rig in the
library sidebar, Share per version in the board editor, backed by the
Transferable wrappers RigShareItem / BoardShareItem.
Tests: ShoeGazeDocument round-trip and legacy decode, library .shoegaze
export/import round-trip, and a board-document-imports-no-rigs case.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bump MARKETING_VERSION / CFBundleShortVersionString to 1.2.0 (both apps)
and add docs/release-notes-1.2.0.md.
Highlights: ten new pedals (Distortion, Flanger, Vibrato, Rotary,
Harmonizer, Reverse Delay, Shimmer Reverb, Bitcrusher, Granulator, Auto
Granulator), an iCloud-synced rig library, and a reworked builder layout
with a colour-coded, type-filterable pedal picker.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
New RT-safe ReverseDelay generator (ShoeGaze): double-buffered segmented
recorder that plays each segment back reversed, ping-ponging record/play
buffers at each boundary with a linear edge-fade to de-click the wrap and
optional feedback for layered reverse trails. Buffers pre-allocated for
maxDelay; delay/feedback read at control rate; segment length changes only
at a boundary.
ReverseDelayPedal wraps it (Time/Feedback), registered with enclosure
color + palette slot. Tests: build/non-silent, feedback-changes-output,
knobs, preset round-trip, registry. Suite 237.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Harmonizer: two granular PitchShift voices at fixed musical intervals
(ratio 2^(semitones/12) via Exp), mixed under the dry signal with V1/V2/
Direct level knobs. Two interval "knob pickers" snap through octave,
fifth, fourth, and minor/major third and sixth above and below.
New reusable control:
- PedalSelectorKnob (model) + PedalSelectorKnobView (rotary knob that snaps
to labelled stops; drag up/down to step, shows the stop caption).
- Pedal.effectSelectors hook; PedalView renders a selector row.
- PedalState.selectorValues for preset round-trip (forward-compatible).
Registered + PedalType.harmonizer + enclosure color + palette slot.
Tests: build/non-silent, interval-change-changes-output, selector preset
round-trip, registry. Full suite 213 passing.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Move the remaining synchronous main-thread I/O off the main actor:
- RigLibraryStore now constructs instantly with a local placeholder and
exposes an awaitable async start(): it resolves the iCloud-or-local
location off-main (the blocking ubiquity lookup), loads entries off-main
via the shared ioQueue (so a reload can't drop a just-saved rig), then
sets isLoaded. reload() is async; iCloud metadata updates re-read via it.
- Seeding moves into RigLibraryBootstrap.start(_:seedFrom:), which seeds a
"Default" rig only AFTER the (possibly iCloud) library has loaded and is
still empty — preventing a duplicate "Default" on every synced device on
first launch.
- Sidebar shows a Loading state until isLoaded; the builder restores the
persisted current-rig highlight when isLoaded flips true (initialRigID
param dropped).
- Shells construct the store synchronously and start it asynchronously
(macOS via Task in didFinishLaunching; iOS via .task). Codec + file
helpers are nonisolated static so background work needs no actor hop.
- Tests await store.start().
Full suite: 206 passing.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Save/delete/eraseAll now update the in-memory entries on the main actor
immediately and run the file write/delete — including NSFileCoordinator —
on a serial background queue, removing the UI stall the synchronous
coordinated write caused (especially on the iCloud path).
- Encoding stays synchronous so encode errors still surface to the caller;
only the disk write is deferred (logs on failure).
- File-system helpers and coordinated I/O are now nonisolated static so the
background queue can call them without touching actor state.
- Add flushPendingWrites() to drain the queue; called by tests asserting
on-disk state and by both app shells at termination / background.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- macOS File menu gains New Rig (⌘N) and Save Rig (⌘S), which forward to
the in-window builder via shoeGazeNewRig / shoeGazeSaveRig notifications
so the naming prompt and current-rig highlight update correctly.
- Selecting a different rig while the current one has unsaved changes now
prompts Save / Don't Save / Cancel (both platforms). Dirtiness is
captureState() != the loaded entry's state; a backing-less working rig
with boards counts as dirty.
- Generalize saveCurrentRig to take a completion (used by Save & Clear and
by save-then-switch).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the single hand-saved rig file with a managed library of named
rigs persisted in app storage and synced across devices and both builder
apps via a shared iCloud container (iCloud.net.realizedsound.ShoeGazeData),
falling back to local storage when iCloud is unavailable.
Core (LyrebirdShoeGaze/Presets):
- RigEntry: named, timestamped ShoeGazeState (a whole multi-board rig).
- RigArchive: portable multi-rig JSON bundle for backup/transfer; legacy
single-rig files import as a one-rig archive.
- RigLibraryStore (@MainActor @Observable): one JSON file per rig, with
NSFileCoordinator writes and NSMetadataQuery live remote-change watching.
- RigLibraryLocation: iCloud-or-local directory resolver (skips the slow
ubiquity lookup when no iCloud account is signed in).
- ShoeGaze.loadRig(from: ShoeGazeState) + captureEntry; shared filename
sanitizer factored out of BoardVersionStore.
UI (LyrebirdShoeGazeUI):
- RigLibrarySidebarView: persistent left listing with new/save/save-as/
duplicate/rename/delete/erase-all and archive import/export.
- RigNamePrompt; RigLibraryBootstrap one-call shell setup.
- ShoeGazeBuilderView: sidebar wired in; selecting a rig replaces the
session; File menu / sidebar do whole-library archive import/export.
Shells/entitlements: both builder targets own+start the store and carry
the iCloud Documents entitlement; NSUbiquitousContainers exposes the rigs
in the Files app. (macOS pbxproj also carries a pre-existing 1.0->1.1.1
version bump.)
Tests: RigEntry/RigArchive round-trip + RigLibraryStore CRUD/import/export
(15 new; full suite 206 passing).
Provisioning (manual, not done here): enable the iCloud container on both
App IDs and select it in Signing & Capabilities for both targets.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
docs/plans: chorus (stereo), sustainer, ring modulator, and pedal-info UI.
CLAUDE.md: project conventions + a required checklist for new pedals, including
a mandatory user-facing summary used by the pedal-info UI.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Replace the one-line description with a full README: feature list, the 18-pedal
catalog by category, requirements, products, getting-started snippets (headless
+ SwiftUI builder), demo-app guide, and a Screenshots section wired to
docs/images/ (relative paths render on the git host and in clones).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>