Hi Han-Wen!
At first, sorry for answering this late, but I had no internet access
in the meantime.
On Tue, 29 Jun 1999, Han-Wen Nienhuys wrote:
> [EMAIL PROTECTED] writes:
> > Hi Han-Wen!
> > I just wonder whether it is standard notation to place whole rests
> > in a bar not centered, as lily currently does if I specify "r1" in
> > the mudela input. I can't remember having seen this in commercial
> > score editions or elsewhere, but maybe I've just seen too few...
> > It's just that I'd like to have it centered but don't know how to do
> > it. Writing "R1" will not work, though it gets centered, because
> > it's on a staff with two voices and the rest concerns only one of
> > them, but the R1 rest collides with the second voice whereas the
> > r1 does not.
>
> There is no way; the best I can think of is hacking
> Multi_measure_rest_engraver to shift the rests.
>
Okay, that means Multi_measure_rest_engraver gets knowledge of the bar
size of the bar its printed in so that it can be centered but doesn't
do a collision check -- I must ask this because I can't C++ program so
I'm unfortunately not (yet, I hope) able to read and understand the code
myself. If the mmrests are roughly engraved this way, wouldn't it then
in principle be possible to construct a say Whole_rest_engraver that
does a collision check additionally and shifts the centered rest auto-
matically?
> > BTW, is there a way to convince lily to extend the last line of a
> > piece of music to full length even if there are too few notes to
> > print for a full line?
>
> .ly example please? You aren't using Wordwrap, are you?
>
I'm appending an example file called d.ly to demonstrate what I mean.
It should end the last line a few millimeters before the line end.
I tried to help it by adding additional \break's at the end of each
voice (they are now commented). That works but prints the tagline on
the next page.
Now that I sent you this example I might come back to a question I
raised a few days ago:
Then I wondered why a definition
sopran = \context Voice = one
wouldn't work, and you answered this definition had to contain music.
But in my example I use the definitions
Sopran = \contest Voice = eins \stemup
and so forth and it works.
\stemup is defined as
stemup = \property Voice.verticalDirection = \up
where up is equal to one.
So I can't see any music there. Shouldn't this end up in a parse
error, then?
One more question:
In the d.ly example there are two places where I'd like to put notes
in the lyrics to indicate the rhythm. (I know this question was on this
list and I seem to remember that this is currently not supported)
Now that there are grace notes available, would it be possible to have
a staff with invisible staff lines and no key, key signature and time
signature on it, which one could fit in between the lyrics and print
grace notes on to achieve this?
Or is there a way to reference a symbol of lilys music fonts in lyrics
mode like one can reference a math symbol of the tex meta fonts?
Still one more question:
The \property Lyrics.textalignment = \right didn't work for me. Should it?
So long, and thanks for all the hints
David
-------------------------------------------------------------------------------
David Ondreka <[EMAIL PROTECTED]>
\include "deutsch.ly"
\header{
title = "Dein Wort";
poet = "Text: L. Zenetti";
opus = "Musik: S.B. Lind";
arranger = "Satz: R.-A. Schwab";
tagline = "Gesetzt mit LilyPond";
}
layout = \paper{
textheight = 280. \mm;
indent = 0. ;
\translator{
\LyricVoiceContext
textStyle = italic;
}
}
global = \notes {
\key b;
\time 4/4;
}
NotenSopran = \notes \relative c'' {
r8 d d d c c b a | b b r4 r r8 g | b4 b8 g16 b~b4 r8 \bar""; \break
b16 b | es8 d b c~c c r b | c4 c8 as16 b~b4 r8 \bar""; \break
g | g a b a~a2 |\time 2/4; r4 b8 c |
\time 4/4; d4. d8 c d f b,~ | b4 r r \bar""; \break
c8 d |es4 es8 d16 d~d8 b~b b | b g b a~a16 a f8 g b16 b~ |
b1
% \break
}
NotenAlt = \notes \relative c' {
s8 f f f f f f f | d d s4 s s8 g | es4 es8 es16 f~f4 s8 \bar""; \break
f16 f | g8 f g a~a a s f | es4 es8 es16 g~g4 s8 \bar""; \break
es | es es es f~f2 | \time 2/4; s4 f8 f |
\time 4/4; f4. f8 f f f g~ | g4 s s \bar""; \break
g8 g |es4 es8 es16 g~g8 g~g es | es es es f~f16 f f8 f f16 es~ |
es1
% \break
}
NotenTenor = \notes \relative c' {
r8 b b b c c c c | b b r4 r r8 b | g4 g8 b16 b~b4 r8 \bar""; \break
b16 b | g8 b d f~f f r c | c4 c8 c16 es~es4 r8 \bar""; \break
b | b b b c~c2 | \time 2/4; r4 f,8 f |
\time 4/4; b4. b8 a a a d~ | d4 r r \bar""; \break
c8 b |c4 c8 c16 es~es8 es~es g, | g g g a~a16 a a8 b b16 c~ |
c1
% \break
}
NotenBass = \notes \relative c' {
s8 b b b a a f f | g g s4 s s8 g | es4 es8 es16 d~d4 s8 \bar""; \break
d16 d | c8 d g f~f f s f | as4 as8 as16 es~es4 s8 \bar""; \break
es | es d c f~f2 |\time 2/4; s4 f8 f |
\time 4/4; b,4. b8 f' f f g~ | g4 s s \bar""; \break
g8 b |as4 as8 as16 es~es8 es~es es | c c c f~f16 f f8 f f16 as~ |
as1
% \break
}
TextStrophe1 = \lyrics {
_8 Du hast Dein Wort zu uns ge- spro- chen _4 _ _8 ein
Wort,4 das8 uns16 rief4 _8. wie16 ein Weg8 in das Le-4 ben,8 _ es
nahm4 uns8 die16 Angst4 _8. und8 hat uns be- freit.2 _8
_4 Wenn8 Du sprichst,4. keimt8 auf ei- ne Saat,4
_8 _2 wer-8 den Men-4 schen8 ver-16 wan-8. delt4 und8
Wun- der ge- sche-8. hen16 hier8 in der16 Welt.2__ _2 _16
}
TextStrophe2 = \lyrics {
_1 _2.. das8 legt4 ei-8 nen16 Schatz4 _8. in16 den t\"ag-8 li- chen
Ak-4 ker,8 _ und wer4 ihn8 er-16 kennt4 _8. gibt8 al- les da- f\"ur.2
_8 _4 Wenn8 Du sprichst,4. dann8 ste- hen sie auf,4
_8 _2 all8 die Blin-4 den8 und16 Lah-8. men,4 die8 Nie- der- ge-
beug-8. ten16 rich-8 test Du16 auf.2__ _2 _16
}
TextStrophe3 = \lyrics {
_1 _2.. das8 geht4 vor8 uns16 her4 _8. und16 geht \"u-8ber das
Was-4 ser,8 _ und wer4 es8 ver-16 nimmt4 _8. der8 folgt wie im Traum.2
_8 _4 Wenn8 Du sprichst,4. ver-8 mehrt sich das Brot,4 _8 _2
wer-8 den se-4 lig8 die16 Ar-8. men,4 ver-8 lo- re- ne
S\"oh-8. ne16 fin-8 den nach16 Haus.2__ _2 _16
}
TextStrophe4 = \lyrics {
_1 _2.. das8 geht4 in8 den16 Tod4 _8. und16 er- steht8 aus dem
Gra-4 be,8 _ es lebt4 und8 er-16 weckt4 _8. auch8 uns aus dem Tod.2
_8 _4 Wenn8 Du sprichst,4. dann8 se- hen wir schon4 _8 _2
mit8 ver- wun-4 der-8 ten16 Au-8. gen4 die8 kom- men- de
Stadt8. _16 vor8 uns er-16 stehn.2__ _2 _16
}
TextStrophe5 = \lyrics {
_1 _2.. das8 geht4 wie8 ein Lauf-8. feu-8. er8 rund um die Er-4 de,8
_ das wan-4 delt8 den16 Staub4 _8. in8 flam- men- des Licht.2
_8 _4 Wenn8 Du sprichst,4. keimt8 auf ei- ne Saat,4
_8 _2 wer-8 den Men-4 schen8 ver-16 wan-8. delt4 und8
Wun- der ge- sche-8. hen16 hier8 in der16 Welt.2__ _2 _16
}
Sopran = { \context Voice = eins \stemup }
Alt = { \context Voice = zwei \stemdown }
Tenor = { \context Voice = drei \stemup }
Bass = { \context Voice = vier \stemdown }
\score {
\context ChoirStaff <
\context Staff = Frauenstimmen <
\global
{ \Sopran \NotenSopran }
{ \Alt \NotenAlt \bar "|."; }
>
\context Lyrics = text <
{ \context LyricVoice = dummy1 \lyrics
{ _1 _ _ _ _ _ _ _ _ _ _ _ _2 } }
{ \context LyricVoice = str1 \TextStrophe1 }
{ \context LyricVoice = str2 \TextStrophe2 }
{ \context LyricVoice = str3 \TextStrophe3 }
{ \context LyricVoice = str4 \TextStrophe4 }
{ \context LyricVoice = str5 \TextStrophe5 }
{ \context LyricVoice = dummy2 \lyrics
{ _1 _ _ _ _ _ _ _ _ _ _ _ _2 } }
>
\context Staff = Maennerstimmen <
\global
\clef bass;
{ \Tenor \NotenTenor }
{ \Bass \NotenBass \bar "|."; }
>
>
\paper{ \layout }
}