|
From: | Walt North |
Subject: | hiding nullvoice |
Date: | Mon, 16 Sep 2024 21:10:58 -0700 |
User-agent: | Mozilla Thunderbird |
I have a case where for vocalist I want to show melody and lyrics while for guitar player just the chords and lyrics. I was thinking I could use nullvoice to align the lyrics for Both. But Nullvoice is insisting on showing an empty staff. I've tried using removeallemptystaves. Is there any way around this. Thanks for any insight you can provide.
Sample code and result image are below.
\version "2.24.2"
\layout {
\context {
\Staff
\RemoveAllEmptyStaves
}
\context {
\NullVoice
\RemoveAllEmptyStaves
}
\context {
\Voice
\RemoveAllEmptyStaves
}
}
ch = \chordmode { c1 c }
notes = \relative c' {
c4 d e f8 f |
c4 d e f |
}
ly = \lyricmode {
First measure will start here
Second measure starts here
}
\markup "For vocalist"
\score {
<<
\new Voice = "one" \notes
\new Lyrics \lyricsto "one" \ly
>>
}
\markup "For guitarist"
\score {
<<
\new ChordNames \ch
\new NullVoice = "one" \notes
\new Lyrics \lyricsto "one" \ly
>>
}
[Prev in Thread] | Current Thread | [Next in Thread] |