Hi,
On Fri, Aug 30, 2024 at 9:10 PM Saul Tobin <saul.james.to...@gmail.com> wrote: > Just responding to one piece of this: the NullVoice context was created > specifically for the use case of rhythmically aligning lyrics to invisible > notes. Devnull, as you discovered, just sends musical events into a black > hole. It might be worth another attempt with your existing approach, but > using NullVoice. Despite the name, NullVoice is aliased to both Staff and > to Voice, so you can use NullVoice within a score block without having to > put it inside a Staff. > > Saul > > On Fri, Aug 30, 2024 at 1:01 PM Christ van Willegen <cvwille...@gmail.com> > wrote: > >> Hi, >> >> I've been promoted from singing the Tenor voice to playing Percussion in >> our choir. >> >> To help me, and perhaps other people, playing the percussion rhythms, I >> tried creating Lilypond files with just the lyrics, aligned to the beats of >> the melody, and the percussion staff in it. I thought I had a working file >> for one song, but it totally failed on another one... >> >> I tried adapting the Leadsheet example, and found that using \new Devnull >> instead of \new Staff will get rid of the melody Staff, but then the lyrics >> don't align with the rhythms any more... at least, not in my second try >> with this setup! >> >> Before I dive into creating an MWE, is there anyone on the list who has a >> working template for: >> >> - Lyrics (either in full measure bits, or each set to their own note) >> - Melody (I have a lot of lyrics and melodies already set in Lilypond, so >> being able to re-use this would be great!) >> - PercussionStaff >> >> Christ van Willegen >> >> I tried using a NullVoice, but I haven't been able to find the correct incantation yet :-( Attached is a M(N)WE, I hope someone can nudge me in the right direction... Christ van Willegen
\version "2.22.1" \header { title = "Doesn't work" instrument = "Frog / Cajonga's" } \paper { left-margin = 20 } global = { \key c \major \time 4/4 } melody = \relative c'' { \global \repeat unfold 6 { a1 | } } verse = \lyricmode { "Measure one and" "" "Measure two and" "A measure with more notes" "" "And the final one!" } % tomml toml tomfh drum = \drummode { \global R1 | r4 hh4 hh4 r4 | R1 | R1 | r2 r16 toml16 toml toml r4 | R1 | \bar "|." } drumsPart = \new DrumStaff \with { \consists "Instrument_name_engraver" instrumentName = \markup \center-column { "Frog" "Cajs" } } \drum \score { << \new NullVoice = "aligner" \melody \new Lyrics \lyricsto "aligner" \verse \drumsPart >> } \layout { }