lilypond-user
[Top][All Lists]
Advanced

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

Re: Stanza Numbers


From: Mats Bengtsson
Subject: Re: Stanza Numbers
Date: Thu, 22 May 2003 19:25:17 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030401

Now I see what happens. Even with break-visibility = #all-visible,
Lilypond only considers printing stanza numbers at the bar lines,
not i the middle of a bar. Accidentally, I had used full measure rest
before sending the previous answer, that's why it worked in my example
but not in yours.

As a workaround, you could add an empty bar line at the place you want
the stanza number to fool Lilypond. To make your with_once.ly example
work, do:

melody = \notes \relative c' {
\time 4/4
  \key f \major
  \clef treble
  r4 \bar"" f4 f2 | ...

This applies to the stable series, 1.6.xx, I don't know if this has
been changed in 1.7.xx.

   /Mats

Jan Kohnert wrote:
Since my last message does not seem to be delivered, here it is once more...

It still doesn't work right. I tried your suggestion and this is the result:
http://home.arcor.de/jan.kohnert/pics/with_once.png
After this I figured out wath exactly the once does:
http://home.arcor.de/jan.kohnert/pics/without_once.png
And this one shows how I like to have it, but this one doesn't work if there is a rest before the first note:
http://home.arcor.de/jan.kohnert/pics/using_partial.png
I just don't know what to do, it really appears to be a bug in StanzaNumber.
I put the ly-Files in the same place:
http://home.arcor.de/jan.kohnert/pics/
for you to see my code if you want that.

Best regards Jan Kohnert

------------------------------------------------------------------------------------------
Am Donnerstag, 22. Mai 2003 10:43 schrieben Sie:

You have almost given the solution yourself in an earlier message:

MyLyrics = \lyrics {
  \property LyricsVoice . stz = "1."
  \once \property Score . StanzaNumber \override #'break-visibility =
all-visible
  First words of the lyrics ...
}

If you skip the \once, the stanza number is printed before each
syllable, not just the first one.

I consider it a bug that LyricsVoice . Stanza is not printed if the
lyrics doesn't start at the absolute top of the piece. The hack
solution given above shouldn't be necessary.

    /Mats

Jan Kohnert wrote:

I have some trouble with the stanza numbers:
If the beginning line of the melody has a partial as first bar, there are
displayed stanza numers, but if I don't wan't to use \partial (or just
cannot if I have "before-play" (sorry, I don't know the right word) )
there are no stanza numbers displayed. I send two pieces for you to see
what I mean. What am I doing wrong and how do I get this numbers even
when there is a rest at first?
I even tried \property LyricsVoice.stz = "1." but there are the first
numbers displayed in the second line and I want them to beprinted in the
first. I use Lilypond-1.6.9

Regards Jan Kohnert


------------------------------------------------------------------------

% Generated automatically by: lilypond-book.py
% options are
filename=/var/www/lilypond/src/lilypond-1.6.10/input/template/melody-lyri
cs-chords.ly printfilename \include "paper16.ly"
\paper  {
 linewidth = 433.619940\pt


}
\version "1.5.68"

\header {
 texidoc = "popsong format: chords, melody and lyrics."
}

melody = \notes \relative c' {
\time 4/4
 \key f \major
 \clef treble
 \partial 2.
 f4 f2 | r4 f4 f2 | r4 a4 a2 | r4 g4 a2 | r4 bes4 bes2 | r4 bes4 bes2 |
r4 d4 d2 | r4 c4 d2 | ~ d1 | }

stropha = \lyrics {
   Your cruel de- vice your blood, like ice
   One look, could kill My pain, your thrill...
}
strophb = \lyrics {
   Your cruel de- vice your blood, like ice
   One look, could kill My pain, your thrill...
}

accompaniment = \chords {
}

\score {
 <
   \context ChordNames \accompaniment
   \addlyrics
     \context Staff = one {
       \property Staff.autoBeaming = ##f
       \property Staff.automaticMelismata = ##t
       \melody
     }
     \context Lyrics <
        \context LyricsVoice = "strophe-1" {\property LyricsVoice.stanza
= "1."  \stropha } \context LyricsVoice = "strophe-2" {\property
LyricsVoice.stanza = "2."  \strophb }



 \paper {}
 \midi  { }
}



------------------------------------------------------------------------

% Generated automatically by: lilypond-book.py
% options are
filename=/var/www/lilypond/src/lilypond-1.6.10/input/template/melody-lyri
cs-chords.ly printfilename \include "paper16.ly"
\paper  {
 linewidth = 433.619940\pt


}
\version "1.5.68"

\header {
 texidoc = "popsong format: chords, melody and lyrics."
}

melody = \notes \relative c' {
\time 4/4
 \key f \major
 \clef treble
 r4 f4 f2 | r4 f4 f2 | r4 a4 a2 | r4 g4 a2 | r4 bes4 bes2 | r4 bes4 bes2
| r4 d4 d2 | r4 c4 d2 | ~ d1 | }

stropha = \lyrics {
   Your cruel de- vice your blood, like ice
   One look, could kill My pain, your thrill...
}
strophb = \lyrics {
   Your cruel de- vice your blood, like ice
   One look, could kill My pain, your thrill...
}

accompaniment = \chords {
}

\score {
 <
   \context ChordNames \accompaniment
   \addlyrics
     \context Staff = one {
       \property Staff.autoBeaming = ##f
       \property Staff.automaticMelismata = ##t
       \melody
     }
     \context Lyrics <
        \context LyricsVoice = "strophe-1" {\property LyricsVoice.stanza
= "1."  \stropha } \context LyricsVoice = "strophe-2" {\property
LyricsVoice.stanza = "2."  \strophb }



 \paper {}
 \midi  { }
}



------------------------------------------------------------------------

_______________________________________________
Lilypond-user mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/lilypond-user




_______________________________________________
Lilypond-user mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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