Compare commits

...

2 Commits

4 changed files with 18 additions and 8 deletions

View File

@ -17,4 +17,8 @@
LAYOUT = \layout { \generalLayout } LAYOUT = \layout { \generalLayout }
HEADER = {} HEADER = {}
MUSIC = {} MUSIC = {}
TEXT = \markuplist {""} TEXT = \markuplist {""}
verseChords = {}
firstVoice = {}
global = {}

View File

@ -145,6 +145,7 @@ lyricsWithChordsLayout = \layout {
\Voice \Voice
\remove Stem_engraver \remove Stem_engraver
\remove Rest_engraver \remove Rest_engraver
\remove Multi_measure_rest_engraver
\remove Phrasing_slur_engraver \remove Phrasing_slur_engraver
\remove Slur_engraver \remove Slur_engraver
\remove Tie_engraver \remove Tie_engraver

View File

@ -10,7 +10,12 @@ verselayout = \layout {
\override ChordName.font-size = \songTextChordFontSize \override ChordName.font-size = \songTextChordFontSize
} }
} }
TEXT = \markuplist { \override #`(verselayout . verselayout) \TEXT } TEXT = \markuplist {
\override #`(verselayout . verselayout)
\override #`(verse-chords . ,#{ \chords { \verseChords } #})
\override #`(verse-reference-voice . ,#{ \global \firstVoice #})
\TEXT
}
% nur Output wenn noStandaloneOutput auf false steht % nur Output wenn noStandaloneOutput auf false steht
output = #(if (not noStandaloneOutput) output = #(if (not noStandaloneOutput)

View File

@ -222,9 +222,9 @@
(interpret-markup-list layout props lines)))) (interpret-markup-list layout props lines))))
#(define-markup-command (chordlyrics layout props lyrics) (ly:music?) #(define-markup-command (chordlyrics layout props lyrics) (ly:music?)
#:properties ((verse-chords #f) #:properties ((verse-chords #{#})
(verse-reference-voice #f) (verse-reference-voice #{#})
(verse-break-voice #f) (verse-break-voice #{#})
(verse-line-height songTextLineHeigth) (verse-line-height songTextLineHeigth)
(intraverse-vspace 0)) (intraverse-vspace 0))
"Vers mit Akkorden" "Vers mit Akkorden"
@ -236,9 +236,9 @@
\score-equal-height #verse-line-height \score-lines { \score-equal-height #verse-line-height \score-lines {
\transposable \transposable
<< <<
\new Devnull { #(if (ly:music? verse-break-voice) verse-break-voice) } \new Devnull { #verse-break-voice }
#(if (ly:music? verse-chords) (music-clone verse-chords) #{ \chords { \verseChords } #}) #(music-clone verse-chords)
\new NullVoice { #(if (ly:music? verse-reference-voice) verse-reference-voice #{ \global \firstVoice #}) } \new NullVoice { #verse-reference-voice }
\addlyrics { #lyrics } \addlyrics { #lyrics }
>> >>
\layout { \layout {