Commit Graph

23 Commits

Author SHA1 Message Date
josh 4c09825c2e rename(reverb): Freeze → FreezVerb, and FreezVerb → TunedVerb
Shuffle the two new reverbs' display names:
- the spectral snapshot/hold pedal (was "Freeze") becomes "FreezVerb"
  (FreezePedal → FreezVerbPedal); its Freeze footswitch keeps its label.
- the filter-from-the-current-moment pedal (was "FreezVerb") becomes
  "TunedVerb" (FreezVerbPedal → TunedVerbPedal).

Renames the types, registry keys, category entries, classes, files and tests,
and updates the cross-reference between them. Behaviour unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 20:55:45 -08:00
josh b1e59d2c03 rename(reverb): Freeze Reverb → Freeze
Shorten the pedal's display name to just "Freeze". Renames the type, registry
key, category entry, class (FreezeReverbPedal → FreezePedal) and its files/tests,
and updates the FreezVerb doc cross-reference. Behaviour unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 20:07:11 -08:00
josh 0873bbd82e feat(reverb): add FreezVerb — filter-from-the-current-moment into a stereo room
A spectral reverb ported from the composer's FilterFromCurrentMoment process.
Press Capture and the spectrum playing at that instant is locked in as a fixed
filter; everything you play afterwards is masked through that frozen spectral
shape and poured into a large reverb. The name plays on the FreeVerb tank at
its core.

- A side-chain SpectralChain (analyze-only) of the dry drives a SpectralCrossMap
  (maxMagnitude, mode 1.0) as a `.dual` stage on a main chain over the dry. While
  live the mask tracks the input; the Capture footswitch sets crossMap.freeze, so
  the captured moment becomes a fixed formant filter on the ongoing signal.
- The masked result feeds a GVerb room (fixed 120 m, as in the original), with a
  Time knob (T60, tempo-syncable) and a Damp knob shaping the tail.
- Mono in, stereo out (channelKind .widener): the reverb is summed to mono and
  placed across the field by a Pan knob (Pan2), replacing the original's
  ambisonic encoding. The time-stretched random-pointer source is dropped — the
  filter is captured straight off the live input by the footswitch.
- `captured` is transport state (a Capture button indicator) and is not
  serialized into presets.

Wired at all four points (+ README catalog). 818 tests pass;
lyrebird_external_review clean (no blocking findings).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 20:02:13 -08:00
josh 843ae5b5f6 feat(reverb): add Freeze Reverb — a true spectral snapshot / infinite hold
A new reverb pedal that captures the sound at the instant you press Freeze and
holds it as an endless, smoothly-sustaining pad while you keep playing over it.

- Phase-vocoder SpectralFreeze (inside a SpectralChain) locks the magnitude
  spectrum of the moment and keeps each partial rotating at its own frequency,
  so the held chord is natural and glassy rather than a looped ring or a
  metallic feedback tank.
- The frozen spectrum is wrapped in a FreeVerb tank (summed to mono) for a
  diffuse, blooming space — the "reverb" half — then gated by a Lag ramp so the
  freeze blooms in and releases out over the Rise knob.
- The dry signal always passes through undelayed; the wash is layered on top
  (Mix hidden, base mix fully wet). The SpectralChain's FFT latency sits only on
  the gated wet path, and a frozen spectrum is uncorrelated with the moved-on
  dry, so there is no comb filtering.
- Latching Freeze footswitch (LED). On release the gate fades the held pad out
  and the return-to-live analysis is deferred until the fade completes (guarded
  by a generation token), so the fade is of the snapshot, not a live delayed
  copy that would comb against the dry.
- `frozen` is transport state (an @UIParam button indicator, like the Looper's
  isPlaying) and is not serialized into presets.

Wired at all four points (+ README catalog). 808 tests pass;
lyrebird_external_review clean (no blocking findings).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 18:10:09 -08:00
josh d1f823e54c feat(pedals): add Karplus Resonator, Tape Looper, and DL4 delay
Three new pedals, each wired at all four points (PedalType, PedalRegistry,
PedalCategory, README) and covered by a dedicated test suite.

Karplus Resonator (texture): a bank of four tuned KarplusStrong strings
plucked by an amplitude-envelope → Schmitt-trigger gate off the note onset,
ringing sympathetically in the tail. Tune / Sustain / Tone / Sensitivity
knobs plus a Voicing selector (Drone / Octaves / Shimmer). Bank summed at
1/stringCount so a full-scale pluck stays at or below unity.

Tape Looper (texture): a simple single-track looper (RecordBuffer /
PlayBuffer) with record / overdub / play and the two classic tape tricks —
half-speed (octave down) and reverse — as live playback-rate controls.
Overdub is gated to forward-normal speed both at engage time and in the
graph, so flipping Reverse/Half-Speed mid-overdub can't misalign layers.

DL4 (delay): an umbrella multi-model delay with a Model selector dispatching
to eight per-model builders — Tube, Tape, Analog, Analog Mod, Multi-Head,
Sweep, Lo-Res, Reverse — over shared Time / Repeats / Tone / Mod controls,
Time tempo-syncable. Multi-Head tap sum gain-staged to 1.0.

Passed /lyrebird_external_review (RT-safety + caveman sweep); all blocking
findings fixed. Full suite 791 tests green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 14:47:51 -08:00
josh 75de04160b feat(script-phaser): one-knob four-stage phaser (orange script voicing)
Add ScriptPhaserPedal, modeled on the classic one-knob four-stage orange
phaser. A single Speed knob sweeps a fixed four-stage all-pass cascade
(Phaser.Audio with stages: 4), and a Voicing two-state switch picks
Script (smoother, lower feedback) or Block (more resonant, higher
feedback). The voicing maps to the feedback amount through a live linear
expression — no rebuild, since feedback is a live Phaser parameter — and
a short Lag glides the coefficient so a Script↔Block toggle doesn't step
audibly. Distinct from the general-purpose Phaser (six stages, with rate
and feedback knobs).

Named to avoid the trademark (per the amp convention) and the bare
"Phase <n>" the code-style rule bans. Wire into PedalType, the registry,
and the modulation category; add to the README modulation catalog.
8 tests: voicing and speed each change the output by a magnitude (RMS
difference), determinism (bit-identical, no RNG), a click-free bypass
flip at the 512-sample block, knob/switch exposure, preset round-trip,
registry presence.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 12:34:16 -08:00
josh 74227400ad feat(granular-reverb): pitch-scattered grain-cloud reverb
Add GranularReverbPedal: a diffuse, blooming wash built from an
InputGrain cloud — short grains sprayed from a rolling capture at a
chosen density, each smeared in time and given a random pitch offset
(scatter) around a center pitch — then reverberated through a GVerb tank,
folded stereo→mono. Deliberately unlike Shimmer Reverb: an incoherent
random-scatter grain cloud, not a tuned coherent feedback octave tail.
At pitch 0 / scatter 0 it tracks the input's pitch; raising scatter
smears it into a broadband haze.

The cloud is power-normalized by sqrt(grain overlap = density·grain), so
turning density up thickens the texture at a roughly constant level and
the peak stays bounded below clipping even at max overlap with correlated
grains (no downstream limiter). Scatter is scaled by the center ratio so
the per-grain spread stays proportional and a down-shifted cloud never
reaches a negative (reverse) ratio.

Knobs: Decay/Damp (GVerb tail), Density, Grain (duration), Pitch
(semitones), Scatter (the defining control). Wire into PedalType, the
registry, and the reverb category; add to the README reverb catalog.
10 tests: scatter smears pitch (normalized-autocorrelation tonalness),
density normalization bounds the peak at the worst overlap corner (decay
12 s, near-full-scale input), density changes texture, tail persistence,
determinism, a click-free bypass flip at the 512-sample block, knob
labels, preset round-trip, registry presence.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 11:23:30 -08:00
josh 243be726ea feat(reverse-reverb): backwards-swelling reverb pedal
Add ReverseReverbPedal: the "sucked-in" pre-verb of ambient/shoegaze
records. The dry signal runs through the existing segmented ReverseDelay
generator — notes are captured in fixed segments and played back
reversed, so a decay becomes a swell rising into the note — then feeds a
GVerb room tank, folded stereo→mono, so the backwards swell arrives
wrapped in a diffuse wash. Distinct from the plain Reverse Delay (no
reverb) and a forward Room Reverb (energy follows the note instead of
swelling up to it).

Knobs: Time (reverse segment length / swell pre-delay, tempo-syncable),
Decay/Size/Damp (GVerb tail). GVerb dry/tail/early levels kept modest for
output headroom, and early reflections trimmed since they fire forward,
against the backwards character. Latency is one segment.

Wire into PedalType, the registry, and the reverb category; add to the
README reverb catalog. 9 tests: pre-delay (energy arrives after one
segment), a rising-swell-shape assertion across the reversed segment,
reverb tail persistence, determinism, a click-free bypass flip at the
512-sample block, knob labels, preset round-trip, registry presence.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 10:14:58 -08:00
josh 20b2034fed feat(poly-octave): EHX POG-style polyphonic octave pedal
Add PolyOctavePedal: a fixed-interval polyphonic octave generator. Four
PitchShift voices at exact power-of-two ratios — −2, −1, +1, +2 octaves,
each single-stage within PitchShift's [0.25, 4.0] clamp — stacked under a
dry voice, each with its own level. Because the ratios need no pitch
tracking, chords stack as cleanly as single notes.

A Tone low-pass shapes the shifted voices (dry stays clean). An Attack
knob adds the POG's volume swell via a "slow-gear" gain: the ratio of a
slow envelope follower to a fast one, clamped to [0, 1] and guarded
against divide-by-zero — unity (instant) at Attack 0, blooming in as it
rises, independent of playing level. The five voice levels sum without an
internal limiter (as with BassOctaver); the level knob and board master
set final gain.

Wire into PedalType, the registry, and the pitch category; add to the
README pitch catalog. 12 tests: per-voice pitch (±1/±2 oct + unison) by
autocorrelation, swell neutral-vs-bloom, seeded determinism, a click-free
bypass flip at the real 512-sample block, knob labels, preset round-trip,
registry presence.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-24 09:53:43 -08:00
josh 3edd64e782 feat(whammy): DigiTech Whammy expression-pedal pitch shifter
Add WhammyPedal: a rocking expression pedal (position, heel 0 → toe 1)
that sweeps pitch between two endpoints set by the selected mode, in the
three families the hardware groups — Whammy (wet-only pitch bend),
Harmony (dry note + morphing bent voice), and Detune (dry + near-unison
beating voice).

Each voice is a PitchShift SOLA stage; the three-octave Dive Bomb
cascades two stages (each -18 st) to clear a single stage's ±2-octave
ratio clamp. Harmony/Detune legs are attenuated 0.5 so the summed
dry+shifted output stays within the input peak. A fixed PRNG seed per
stage makes a given setting render identically (reproducible audio and
exact-pitch tests), with a distinct stage-2 seed so the cascade's grain
dispersion decorrelates.

Wire it into PedalType, the registry, and the pitch category; add it to
the README pitch catalog. Tests cover pitch at heel/toe, the Dive Bomb
cascade, harmony dry presence, seeded determinism, preset round-trip,
mode rebuild, registry presence, and a click-free bypass flip at the
real 512-sample block (guarding the audio-rate bypass fix).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-15 12:11:16 -08:00
josh 93ca9076d2 docs: 3.1.0 release notes, README refresh, Help + version bump
- CHANGELOG: add the 3.1.0 entry (starter rigs, Mine/Starters sidebar, Vibe
  and Sustain Fuzz pedals, Mutant Range/Sweep/Attack/Release, input-preserved
  rig switching, shimmer defaults, overwrite guard, router persistence).
- README: correct the pedal count (36 -> 67, incl. 26 amp models), add the
  Amp Model and Cabinet catalog rows and the new pedals, add a Starter Rigs
  feature, and bump the Lyrebird requirement to 1.7.0+.
- Help: add a "Starter Rigs" topic and note that switching rigs keeps the
  current input.
- Bump the iOS app MARKETING_VERSION to 3.1.0 to match macOS.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-13 09:58:34 -07:00
josh 4a5d4009f6 feat(pedals): Cabinet IR pedal (S1) with synthesized cab voices
First amp-modeling increment (ShoeGaze 2.0, plan S1). No Lyrebird change —
reuses ConvolutionReverb + LyrebirdBuffer.

- CabinetPedal: builds one ConvolutionReverb per built-in voice at build() time
  and picks the active one with a `Select` driven by the persisted `cabinet`
  selector — live cab switching that round-trips through the rig save format.
- CabinetVoice + CabinetIRFactory: three built-in voicings synthesized in code
  (impulse through an RBJ biquad cascade — HP, true 4th-order Butterworth LP,
  body + presence peaks), so the bundled cab set is our own MIT content (no
  third-party IR licensing). Filter centre frequencies are Nyquist-clamped.
- Registered in PedalRegistry / PedalType / PedalCategory (.filter) / palette;
  README pedal count + catalog updated.

User-supplied captured .wav cab IRs are a planned follow-up (needs a persisted
file-path field PedalState doesn't yet carry).

Tests: IR is finite, peak-normalized, mono; rolls off lows and highs; voices
differ; selector exposed; selection changes output and round-trips through
PedalState; pedal builds, non-silent, resolves from the registry. Suite 486.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-01 17:13:08 -07:00
josh e051521c04 Release 2.0.0: metronome, rig mute + shortcuts, set-list ordering, per-rig persistence
- 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>
2026-07-05 12:30:45 -07:00
josh 097253b410 Document 1.4.0: MIDI control, rig volume/mute, new reverbs, Help
Update README's feature list and pedal catalog, add the 1.4.0 RELEASES.md
entry, and bump both builder apps to 1.4.0.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-01 19:32:59 -07:00
josh 8c4b2ab1e7 Update README pedal catalog and release notes
- README: refresh the pedal catalog to all 32 pedals across the eight
  current categories (Gain / Dynamics / EQ & Filter / Modulation / Pitch /
  Delay / Reverb / Texture), bump the count, and add a Sharing feature
  bullet for the .shoegaze file type.
- RELEASES.md: add the 1.3.0 sharing entry and backfill the 1.2.0 entry
  (ten new pedals + iCloud rig library + builder UI rework).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-28 17:57:02 -07:00
josh dc42db0c59 Add iCloud-synced rig library
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>
2026-06-27 17:56:10 -07:00
josh 8c701af128 Add stereo Diffuser pedal
A .widener pedal that splits the dry signal into overlapping RBJ band-pass bands
and pans each by frequency (low to left, high to right); the spread knob fans the
spectrum from mono (spread 0) to a wide diffuse image (spread 1), using linear
pan expressed purely as node arithmetic.

Registered, with PedalType.diffuser, enclosure color, palette order, summary,
and tests (non-silent stereo; L == R at spread 0; L != R at full spread).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 19:14:00 -07:00
josh f29ab609bd Add Chorus, Sustainer, Ring Modulator pedals + pedal-info UI
Pedals (each registered, with PedalType static, enclosure color, palette order,
summary, and tests):
- Chorus: true-stereo widener (two anti-phase modulated delay lines), distinct
  from the mono-summed Modulation chorus.
- Sustainer: one-knob compressor (sustain drives threshold/ratio/makeup via
  LinLin) + tone low-pass.
- Ring Modulator: dry × tunable sine carrier.

Pedal-info UI:
- Pedal.summary (open var, overridden by all 21 pedals; mandatory going forward).
- PedalRegistry.summary(for:) for the picker.
- PedalPaletteView rows show the summary as a subtitle.
- PedalView gains an ⓘ button → PedalInfoView sheet showing the description and
  the effect controls (knobs/sliders/switches) with ranges/options — excludes
  the common Mix/Level/bypass.

Tests: per-pedal build/param-change/knob-list; every built-in pedal has a
non-empty summary; info excludes common controls. 183 tests pass.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-26 18:05:30 -07:00
josh 5040ea1518 Rename Mu-Tron pedal to Mutant (de-trademark)
Rename the user-facing 'Mu-Tron' pedal to the non-proprietary 'Mutant':
displayName, registry key, PedalType.mutant, enclosure color, palette order,
and the class (MuTronPedal -> MutantPedal) + test file. The underlying Lyrebird
MuTronIII generator (and its Mode/Sweep types) keep their names — that's the
dependency's DSP type, not user-facing.

Note: displayName doubles as the rig-save key, so rigs saved with 'Mu-Tron'
won't match on load (acceptable pre-1.0; nothing released).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 21:00:02 -07:00
josh 21b9123a87 Replace stringly-typed pedal API with PedalType tokens
appendPedal(type: String, to:) is replaced by appendPedal(_ kind: PedalType, to:),
where PedalType is an extensible RawRepresentable struct with static members for
the built-in pedals:

    try shoeGaze.appendPedal(.overdrive, to: board)

Discoverable/autocompleting call sites, still open for custom pedals
(PedalType("My Pedal")). rawValue == the pedal's displayName, so PedalRegistry
and the rig JSON format are unchanged — saved rigs load exactly as before.

Named PedalType (not PedalKind) to avoid colliding with Lyrebird's score-notation
PedalKind enum, which is visible when both modules are imported. The UI palette
wraps its registry-key strings as PedalType(key); demos/tests use the static
members. PedalRegistry.makePedal(type:) stays string-keyed as the serialization
boundary used by loadRig.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 20:34:45 -07:00
josh 24ce4564e8 Drop screenshot-instructions note from README
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 16:41:19 -07:00
josh 21fda7067d Expand README with project overview, pedal catalog, and screenshots
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>
2026-06-24 14:59:04 -07:00
josh b7973cba9a Initial commit 2026-06-21 18:04:09 +00:00