Skip to content

feat: top tones and guitar shift in the guitar dropdown - #24

Merged
mattromano merged 5 commits into
customfrom
feat/inst-menu-top-tones
Nov 12, 2026
Merged

mattromano merged 5 commits into
customfrom
feat/inst-menu-top-tones

Conversation

@mattromano

Copy link
Copy Markdown
Owner

Registers two guitar-dropdown sections through the core's registerMenuSection:

  • Shift my guitar (Live Retune): -/+ semitones, Sound as, Follow song, No shift.
  • Top tones: starred presets first, then most used (counted loads plus song tone locks and Tone Automation targets, bass slot excluded). Loads run under withToneChainLock and refuse mid song-load. Preset list gets star buttons; delete forgets stats.

Needs mattromano/feedBack (core) feat/inst-menu-tuning for the hook; without it the sections stay queued and nothing breaks.

Tests: tests/top-tones.test.js, tests/live-retune-menu.test.js.

🤖 Generated with Claude Code

mattromano and others added 5 commits November 11, 2026 14:33
Star presets in the Audio Engine preset list; the core's instrument menu
then shows starred tones first, filled out with the most-loaded ones (up
to 5), as one-click loads. Uses are counted on manual loads and tone
automation / tone-lock loads, not the startup default. Deleting a preset
drops its star and count. Settings -> Load and the menu share one
loadPresetManually path.

Needs a core with v3Badges.registerMenuSection (feat/inst-menu-tuning);
older cores just don't show the section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Manual preset loads (Settings -> Load, instrument menu) now run under
withToneChainLock and refuse while a song is loading, so they can't
interleave with a song's chain rebuild. Drops the menu's 'last loaded'
highlight, which went stale when anything else swapped the chain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Live Retune adds a "Shift my guitar" section to the core's instrument
menu: a "Sound as" list (+-5 semitones, named from the guitar's current
tuning, e.g. E Standard -> Eb/D Standard), -/+ buttons, No shift and the
Follow song toggle. It drives the same engine live pitch shift as the
player bar; the strings and the tuner are untouched.

Sections now pass an order (shift 10, top tones 20).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use counts start at zero, so Top tones showed nothing for a player with
no stars yet. Rank by counted loads plus the choices already on record:
whole-song tone locks and Tone Automation targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mattromano
mattromano merged commit 201e779 into custom Nov 12, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant