On 6/4/07, Mats Bengtsson <[EMAIL PROTECTED]> wrote:
Why not use the method described in the manual , section "Lyrics independent
of notes"? Here's Trevor's example using that technique:
\version "2.10.0"
\new Staff <<
\new Voice {
\time 3/4
c'4 c'2
}
\new Devnull = "ref" {
c'4 c'4 c'4
}
\new Lyrics \lyricsto "ref" {
one two three
}
>>
/Mats
Trevor Bača wrote:
> On 6/4/07, Stan Sanderson <[EMAIL PROTECTED]> wrote:
>>
>> On Jun 3, 2007, at 9:41 PM, Alan Jones wrote:
>>
>> > Hi,
>> > I need a way to specify which beats the words of my
>> > lyrics fall on independent of the voice that they are
>> > associated with. In the attached example I have
>> > three words that I want on the corresponding beats:
>> > one, two, three. However, because the voice has a
>> > half note for the last two beats Lilypond overlaps the
>> > words 'two' and 'three' -- even though I've tried to override
>> > by placing length numbers after every word. I do want
>> > the words to follow the music, for example if some
>> > accidentals move the horizontal placement of the beat, etc.
>> > Thanks for any help!
>> > Alan
>> >
>>
>> I hope I'm not misinterpreting your question, but have you tried an
>> underscore between the words?
>>
>> \version "2.10.17"
>> \score {
>> \new PianoStaff <<
>> \time 3/4
>> <<
>> \new Voice {
>> \key g \major
>> b4 a2
>> }
>> \new Lyrics \lyricmode {
>> one two_three
>> }
>> >>
>> >>
>> }
>>
>>
>> Stan
>
> If what Alan's looking for is something like beat counts running below
> the staff, then the following hack is available to print lyrics
> attaching to an independent (and forcibly invisible) voice:
>
> %%% BEGIN %%%
>
> \version "2.11.22"
>
> \new Staff <<
> \new Voice {
> \time 3/4
> c'4 c'2
> }
> \new Voice = "ref" {
> \override Score.NoteColumn #'ignore-collision = ##t
> \override NoteHead #'transparent = ##t
> \override Stem #'transparent = ##t
> \override NoteHead #'no-ledgers = ##t
> c'4 c'4 c'4
> }
> \new Lyrics \lyricsto "ref" {
> one two three
> }
>>>
>
> %%% END %%%
>
>
> This is less than ideal; all the stuff about overriding the different
> note grobs to transparent should really be something like ...
>
> \new Voice = "ref" {
> s4 s4 s4
> }
>
> ... or possibly ...
>
> \new Voice = "ref" {
> \override Rest #'invisible = ##t
> r4 r4 r4
> }
>
> ... instead. But neither of those cleaner versions work: Lily treats
> skips different than notes and rests when it comes to the attachment
> of spanner start and stop points and also, it would appear, in
> recognizing whether a Voice has actually started or not; in the
> skips-based example, I don't Lily ever instantiates the reference
> voice in the first place, making lyrics attachment impossible.
Oh cool Devnull magic; (if I had turned over to 7.3.7.5 "Lyrics
independent of notes" I could have found it there).
Is it possible to use the Devnull context as a general type of
"reference voice" maker for items other than lyrics? Something like
this to rhythmically position the dynamics against a hidden reference
voice ...
%%% BEGIN %%%
\version "2.11.23"
\new Staff <<
\new Devnull {
c'8 \p
c'8 \f
c'8 \p
c'8 \f
}
\new Voice {
c'4 c'4 c'4
}
%%% END %%%
... but with, of course, the dynamics sticking around while only the
Devnull *notes* disappear?
I guess not since the purpose of Devnull is to junk stuff. But how
cool it would be to have a generic type of context in which you could
stuff all sorts of (possibly floating) decorative stuff -- spanners,
dynamics, arbitrary text scripts -- and have all the reference notes
to which those things attach simply disappear ...
--
Trevor Bača
[EMAIL PROTECTED]
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user