You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(chords): keep retuned shapes inside the diagram, carry tuning in links
Addresses review feedback on #23.
Retuning could stretch a shape past the four frets Chord.svelte draws, so
fingers rendered off the end of the neck. Uneven string shifts pull a grip
apart, and a voicing that leaned on an open string high up the neck has to
fret it once the tuning drops - chords-db's open G spans frets 2-7 in Drop
C, and a C sus voicing spans 1-9 in Half Step Down. Those are unplayable as
a single grip rather than merely badly framed, so drop them the way shapes
running off the end of the neck are already dropped.
Standard tuning is unaffected (0 of 2818 positions). Half Step Down loses
8.3%, Drop D 7.9%, Drop C 15.5% - all redundant alternates, leaving no chord
in any tuning without a diagram.
FRET_WINDOW is exported and Chord.svelte takes its frets default from it, so
the window the chart draws cannot drift from the one shapes are fitted into.
Chord links also dropped the selected tuning, so clicking a Drop D chord
landed on the chord page in Standard and drew different shapes than the ones
just played. Thread the tuning name through ScaleChords to Chord and encode
it into the href.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments