lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Align Lyrics to Hidden Melody


From: Trevor Daniels
Subject: Re: Align Lyrics to Hidden Melody
Date: Thu, 11 Dec 2014 00:10:15 -0000

Hi Mike
 
Welcome! First, you need \hideNotes, not \hide.  Then the structure you have doesn't quite work.  It's usually easier to have all the lyrics contexts running from the start rather than starting them part way along - they'll get their position from the notes.  Here's one way of doing it, but you'll find the stanza number doesn't quite fit.
 
melody = \relative c' {
  \clef treble
  \key c \major
  \time 4/4
  c4 d e f | g f e d |
 
  <<
    \new Voice = "shown" {
      \relative c' {
        c4 d c d | e f g2
      }
    } 
   
    \new Voice = "hidden" {
      \hideNotes {                  % !!
        c'8 c d d c c d d | e f g2
      }
    }
  >>
}
   
text =  \lyricmode {
   Here we have a | li -- tle si -- lly
}
   
wordsOne = \lyricmode {
  \set stanza = #"1. "
  Si -- lly li -- tle | al -- pha -- bet
}
 
wordsTwo = \lyricmode {
  \set stanza = #"2. "
  Si -- ly li -- tle fu -- nny soun -- ding |
  Al -- pha -- bet song.
}
 
\score {
  <<
    \new Voice = "one" { \melody }
    \new Lyrics \lyricsto "one" \text
    \new Lyrics \lyricsto "shown" \wordsOne
    \new Lyrics \lyricsto "hidden" \wordsTwo
  >>
   
  \layout { }
  \midi { }
}
 
 
----- Original Message -----
Sent: Wednesday, December 10, 2014 11:02 PM
Subject: Align Lyrics to Hidden Melody

I thnk I’m close, and posted on Stackoverflow, but can’t seem to get a hidden melody working to show alternate lyrics. The following just shows both voices and neither of the “associated” (or not) stanzas.


melody = \relative c' {
      \clef treble
      \key c \major
      \time 4/4
      c4 d e f | g f e d |
  
      <<
     \new Voice = "shown" {
      \relative c' { 
      c4 d c d | e f g2
         }
        }  
    
      \new Voice = "hidden" {
       \hide { 
      c'8 c d d c c d d | e f g2
         }
        }
      >>
    }
    
    text =  \lyricmode {
       Here we have a | li -- tle si -- lly
  
      <<
        {
          \set stanza = #"1. "
          Si -- lly li -- tle | al -- pha -- bet

        \new Lyrics {
          \set associatedVoice = "hidden"
          \set stanza = #"2. " 
          Si -- ly li -- tle fu -- nny soun -- ding |
          Al -- pha -- bet song.
            }
        }
      >>
      }

    \score {
      <<
        \new Voice = "one" { \melody }
        \new Lyrics \lyricsto "one" \text
      >>
    
      \layout { }
      \midi { }
    }

Some direction would be welcome (needless to say).

(And WOW - what an amazing program.


Mike Kilmer
"the best twinning of Sexual/Ethical musical wisdom in contemporary jammage" - david berman




_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

reply via email to

[Prev in Thread] Current Thread [Next in Thread]