Skip to content

feat(live-retune): Follow song shifts an E-standard guitar to the song's tuning - #18

Merged
mattromano merged 1 commit into
customfrom
feat/live-retune-follow-song
Nov 7, 2026
Merged

mattromano merged 1 commit into
customfrom
feat/live-retune-follow-song

Conversation

@mattromano

Copy link
Copy Markdown
Owner

Problem

Live Retune only shifted by the semitones and cents the player set. An E-standard guitar over an Eb-standard song (every string −1) stayed in E, so the user heard their guitar a semitone off the record.

What

A Follow song toggle in the Live Retune control:

  • When every string in the chart is offset by the same whole number of semitones (Eb standard −1, D standard −2, up-tunings too), the guitar is shifted by that amount.
  • It's re-read on every song load and on the existing 2 s engine poll, so it lands even if the song info arrives after song:loaded.
  • Uneven tunings (Drop D) can't be matched by shifting the whole guitar, so they're left alone.
  • Manual semitones and cents stack on top. The readout shows the resulting tuning (e.g. "Eb") and the button shows the followed amount ("Follow song −1 st").
  • Off by default. A player who physically retunes would otherwise be shifted twice.

Testing

  • tests/live-retune-follow-song.test.js (new, runs the real plugin script with a stub bridge and highway):
    • uniform vs Drop D vs standard vs clamped
    • Eb song gives −1
    • off by default gives 0
    • manual + follow stack
    • a new song re-reads the tuning
    • the choice persists
  • npm test: 147 pass, 0 fail.

🤖 Generated with Claude Code

…ong's tuning

Live Retune only shifted by the semitones/cents the player set, so an
E-standard guitar over an Eb-standard song stayed in E. "Follow song" adds
the chart's tuning when every string is offset by the same whole number of
semitones (Eb standard -1, D standard -2, up-tunings too), re-read on every
song load and on the 2 s engine poll. Uneven tunings (Drop D) can't be
matched by a whole-guitar shift and are left alone. Manual semitones/cents
stack on top. Off by default: a player who physically retunes would
otherwise be shifted twice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mattromano
mattromano merged commit 1080f5f into custom Nov 7, 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