lilypond-user
[Top][All Lists]
Advanced

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

Re: frets and lyrics


From: David Kastrup
Subject: Re: frets and lyrics
Date: Tue, 27 May 2014 15:55:15 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

paul bedaride <address@hidden> writes:

> I would be something like this (but this doesn't work)
>
> \version "2.16.2"
> \include "predefined-ukulele-fretboards.ly"
>
> theChords = \chordmode {
> g g g g g
> }
>
> verseI = \lyricmode {
>   \set stanza = #"1."
>   This is the first verse
> }
>
> \score {
> <<
>     \context ChordNames { \theChords }
>     \context FretBoards = "testVoice" {
>       \set Staff.    stringTunings = #ukulele-tuning
>       \theChords
>     }
>     \new Lyrics = "lyricsI" {
>       \lyricsto "testVoice" \verseI
>     }
>>>
> \layout { }
> }

Well, try the following instead:

\version "2.16.2"
\include "predefined-ukulele-fretboards.ly"

theChords = \chordmode {
  g g g g g
}

verseI = \lyricmode {
  \set stanza = #"1."
  This is the first verse
}

\score {
<<
    \context ChordNames { \theChords }
    \context FretBoards = "testVoice" {
      \set Staff.stringTunings = #ukulele-tuning
      \theChords
    }
    \new Lyrics = "lyricsI" \with { associatedVoice = "testVoice" }
    \verseI
>>
\layout { }
}
Now it is a valid question why \lyricsto ... _requires_ an actual Voice
context to work with while associatedVoice (which even has Voice rather
than Context in its name) doesn't.

Yes, this makes precious little sense.  But it does work.  I think it
might be worth making \lyricsto work equally well (I don't see the
reason to specifically look for a "Voice" context when the context is
explicitly named anyway).  But in the meantime, go for it.

-- 
David Kastrup

reply via email to

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