On Fri 22 Sep 2017 at 16:48:38 (-0400), Pierre-Luc Gauthier wrote:
> 2017-09-21 18:43 GMT-04:00 David Wright <[email protected]>:

> > My observations (again without knowing what the code actually does)
> > suggest that because no X-space is required to set anything¹, the
> > positions of the timing "anchors" produced by NullVoice have a
> > zero-point near to the beginning of the line. If you set (and then
> > hide) something, a rest or a note, then a collision with the clef
> > and signatures has to be avoided, so the zero-point of time gets
> > pushed rightwards to a position after them.
> 
> So if I understood correctly, we could infer that it is aligned with
> the basis of all alignment which is (is it?) the start of the line but
> with *no* offset as LilyPond hasn't added any.

As I said, I'm just making suggestions based on observations. If you
were to remove the clef and any signatures (like those band parts
that aggressively save X-space), then there would be an optional
barline or bracket at the start of the staff, followed by r16 after
a tasteful space. So, as far as NullVoice is concerned, those
decorations don't exist, and it looks as if even the tasteful space
before the r16 disappears as well.

Cheers,
David.
displayedMusic = {R1}
lyricsMusic = {r16 c''}
verse = \lyricmode {Lyrics}

\new Staff <<
  \new Voice { \displayedMusic }
  \new NullVoice = vv { \lyricsMusic }
  \new Voice = vv { \lyricsMusic }
  \new Lyrics \lyricsto vv { \override LyricText.self-alignment-X = #LEFT 
\verse }
>>

\new Staff <<
  \new Voice { \displayedMusic }
  \new NullVoice = vv { \lyricsMusic}
  %%\new Voice = vv { \lyricsMusic }
  \new Lyrics \lyricsto vv { \override LyricText.self-alignment-X = #LEFT 
\verse }
>>

\new Staff <<
  \new Voice { \displayedMusic }
  \new NullVoice = vv { \lyricsMusic }
  \new Voice = vv { \lyricsMusic }
  \new Lyrics \lyricsto vv { \override LyricText.self-alignment-X = #CENTER 
\verse }
>>

\new Staff <<
  \new Voice { \displayedMusic }
  \new NullVoice = vv { \lyricsMusic}
  %%\new Voice = vv { \lyricsMusic }
  \new Lyrics \lyricsto vv { \override LyricText.self-alignment-X = #CENTER 
\verse }
>>

\new Staff <<
  \new Voice { \displayedMusic }
  \new NullVoice = vv { \lyricsMusic }
  \new Voice = vv { \lyricsMusic }
  \new Lyrics \lyricsto vv { \override LyricText.self-alignment-X = #RIGHT 
\verse }
>>

\new Staff <<
  \new Voice { \displayedMusic }
  \new NullVoice = vv { \lyricsMusic}
  %%\new Voice = vv { \lyricsMusic }
  \new Lyrics \lyricsto vv { \override LyricText.self-alignment-X = #RIGHT 
\verse }
>>

Attachment: ali.pdf
Description: Adobe PDF document

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to