Fix chord alignment: snap to word boundaries
Improve merge_chord_lyric() to snap chord positions to the start
of the word they fall within, instead of splitting words mid-way.
Fixes artifacts like "Liebespaar \chord{C}e" → "\chord{C}Liebespaare".
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,12 +6,12 @@
|
||||
}
|
||||
|
||||
\begin{verse}
|
||||
Es wo \chord{G}llt ein Mägdlein fr \chord{D}üh aufstehn, \\
|
||||
dreivi \chord{e}ertel S \chord{D}tund´ vor \chord{G}Tag, \\
|
||||
wollt in den Wald spazi \chord{a}eren gehn, h \chord{D7}mm, \\
|
||||
spazi \chord{G}er \chord{D}en \chord{e} gehn, \\
|
||||
wollt Br \chord{G}ombeern brec \chord{D}hen ab \chord{e}, \\
|
||||
wollt Br \chord{G}ombeern bre \chord{D}chen ab \chord{G}.
|
||||
Es \chord{G}wollt ein Mägdlein \chord{D}früh aufstehn, \\
|
||||
\chord{e}dreiviertel \chord{D}Stund´ vor \chord{G}Tag, \\
|
||||
wollt in den Wald \chord{a}spazieren gehn, \chord{D7}hmm, \\
|
||||
\chord{D}spazieren \chord{e}gehn, \\
|
||||
wollt \chord{G}Brombeern \chord{D}brechen \chord{e}ab, \\
|
||||
wollt \chord{G}Brombeern \chord{D}brechen \chord{G}ab.
|
||||
\end{verse}
|
||||
|
||||
\begin{verse}
|
||||
|
||||
Reference in New Issue
Block a user