[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: Problems with "DC al Fine" template
From: Knute Snortum <ksnortum () gmail ! com>
Date: 2014-05-25 13:08:19
Message-ID: CALmeJxR3S670nNQnHG3WK1a+_DGrx=+i7PrRQ7gzW+dLTgJCTQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Personally, I'd put the DC below the staff in this situation:
\version "2.18.0"
accords = \chordmode {
c1 c2 f g c f g g1 c c2 c |
}
alignRight = \once \override Score.RehearsalMark.self-alignment-X = #RIGHT
dc = \markup { \tiny \italic "D.C. al Fine" }
melody = \relative c' {
c'4 c c b |
c8 b a g f g a f |
b a g f e f g e |
a g f e d e f fis |
g2 g |
c4 c c d |
e8 f e d \alignRight c2 _\dc |
}
basePart = <<
\new ChordNames { \accords }
\new Staff <<
\new Voice = "melody" { \repeat volta 2 { \melody } }
>>
>>
\score {
\basePart
\layout {
}
}
Knute Snortum
(via Gmail)
On Sat, May 24, 2014 at 10:14 AM, Yann <yann.cha@free.fr> wrote:
> 2014-05-24 18:20 GMT+02:00 Yann <yann.cha@free.fr>:
> > Hello !
> >
> > (I don't include my previous post which can be seen here :
> > http://lists.gnu.org/archive/html/lilypond-user/2014-05/msg00359.html
> > )
> >
> > Just to say, I solved my issue #1, with the lines numbers, just by
> > removing the lines
> >
> > \consists "Mark_engraver"
> > \consists "Staff_collecting_engraver"
> >
> > and
> > \remove "Mark_engraver"
> > \remove "Staff_collecting_engraver"
> >
> > I don't remember why I did put these, maybe I adapted a snippet I
> > found somewhere that had them.
> >
> > Yann
>
> Ok, I was too quick to post, now I remember the reason for these
> \consists and \remove statements. I have chords in my template, and I
> wanted the "Fine" and "DC" marks to be printed just above the staff
> (that is, between the chords and the staff). About this, where would
> you put the marks ? Between chords and staff, or above chords ?
>
> But I discovered it can be achieved by keeping the lines related to
> "Mark_engraver". the \remove"Staff_collecting_engraver" seems to be
> the one messing with the measure number position.
>
> so my (reduced) working example is as follows :
> \version "2.18.0"
>
> \paper { #(set-paper-size "a4") }
>
> accords = \chordmode {
> c1 c2 f g c f g g1 c c2 c |
> }
>
> melody = \relative c' {
> c'4 c c b |
> c8 b a g f g a f |
> b a g f e f g e |
> a g f e d e f fis |
> g2 g |
> c4 c c d |
> e8 f e d c2\once \override Score.RehearsalMark.self-alignment-X =
> #RIGHT \mark \markup { \tiny \italic "D.C. al Fine" } |
> }
>
> % Staves
> basePart = <<
> \new ChordNames { \accords }
> \new Staff \with {
> \consists "Mark_engraver"
> } <<
> \new Voice = "melody" { \repeat volta 2 { \melody } }
> >>
> >>
>
> \book {
> \score {
> \basePart
> \layout {
> \context {
> \Score
> \remove "Mark_engraver"
> }
> }
> }
> }
>
>
> Yann
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
[Attachment #5 (text/html)]
<div dir="ltr">Personally, I'd put the DC below the staff in this \
situation:<div><br></div><div><div><font face="courier new, monospace">\version \
"2.18.0"</font></div><div><font face="courier new, monospace"><br> \
</font></div><div><font face="courier new, monospace">accords = \chordmode \
{</font></div><div><font face="courier new, monospace"> c1 c2 f g c f g g1 c c2 c \
|</font></div><div><font face="courier new, monospace">}</font></div> <div><font \
face="courier new, monospace"><br></font></div><div><font face="courier new, \
monospace">alignRight = \once \override Score.RehearsalMark.self-alignment-X = \
#RIGHT</font></div><div><font face="courier new, monospace">dc = \markup { \tiny \
\italic "D.C. al Fine" }</font></div> <div><font face="courier new, \
monospace"><br></font></div><div><font face="courier new, monospace">melody = \
\relative c' {</font></div><div><font face="courier new, monospace"> c'4 c \
c b |</font></div><div><font face="courier new, monospace"> c8 b a g f g a f \
|</font></div> <div><font face="courier new, monospace"> b a g f e f g e \
|</font></div><div><font face="courier new, monospace"> a g f e d e f fis \
|</font></div><div><font face="courier new, monospace"> g2 g \
|</font></div><div><font face="courier new, monospace"> c4 c c d |</font></div> \
<div><font face="courier new, monospace"> e8 f e d \alignRight c2 _\dc \
|</font></div><div><font face="courier new, monospace">}</font></div><div><font \
face="courier new, monospace"><br></font></div><div><font face="courier new, \
monospace">basePart = <<</font></div> <div><font face="courier new, monospace"> \
\new ChordNames { \accords }</font></div><div><font face="courier new, monospace"> \
\new Staff <<</font></div><div><font face="courier new, monospace"> \new \
Voice = "melody" { \repeat volta 2 { \melody } }</font></div> <div><font \
face="courier new, monospace"> >></font></div><div><font face="courier new, \
monospace">>></font></div><div><font face="courier new, \
monospace"><br></font></div><div><font face="courier new, monospace">\score \
{</font></div> <div><font face="courier new, monospace"> \
\basePart</font></div><div><font face="courier new, monospace"> \layout \
{</font></div><div><font face="courier new, monospace"> }</font></div><div><font \
face="courier new, monospace">}</font></div> </div><div><br></div></div><div \
class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div><div>Knute \
Snortum</div><div>(via Gmail)</div></div></div> <br><br><div class="gmail_quote">On \
Sat, May 24, 2014 at 10:14 AM, Yann <span dir="ltr"><<a \
href="mailto:yann.cha@free.fr" target="_blank">yann.cha@free.fr</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"> 2014-05-24 18:20 GMT+02:00 Yann <<a \
href="mailto:yann.cha@free.fr">yann.cha@free.fr</a>>:<br> <div class="">> Hello \
!<br> ><br>
> (I don't include my previous post which can be seen here :<br>
> <a href="http://lists.gnu.org/archive/html/lilypond-user/2014-05/msg00359.html" \
target="_blank">http://lists.gnu.org/archive/html/lilypond-user/2014-05/msg00359.html</a><br>
> )<br>
><br>
> Just to say, I solved my issue #1, with the lines numbers, just by<br>
> removing the lines<br>
><br>
> \consists "Mark_engraver"<br>
> \consists "Staff_collecting_engraver"<br>
><br>
> and<br>
> \remove "Mark_engraver"<br>
> \remove "Staff_collecting_engraver"<br>
><br>
> I don't remember why I did put these, maybe I adapted a snippet I<br>
> found somewhere that had them.<br>
><br>
> Yann<br>
<br>
</div>Ok, I was too quick to post, now I remember the reason for these<br>
\consists and \remove statements. I have chords in my template, and I<br>
wanted the "Fine" and "DC" marks to be printed just above the \
staff<br> (that is, between the chords and the staff). About this, where would<br>
you put the marks ? Between chords and staff, or above chords ?<br>
<br>
But I discovered it can be achieved by keeping the lines related to<br>
"Mark_engraver". the \remove"Staff_collecting_engraver" seems to \
be<br> the one messing with the measure number position.<br>
<br>
so my (reduced) working example is as follows :<br>
\version "2.18.0"<br>
<br>
\paper { #(set-paper-size "a4") }<br>
<br>
accords = \chordmode {<br>
c1 c2 f g c f g g1 c c2 c |<br>
}<br>
<br>
melody = \relative c' {<br>
c'4 c c b |<br>
c8 b a g f g a f |<br>
b a g f e f g e |<br>
a g f e d e f fis |<br>
g2 g |<br>
c4 c c d |<br>
e8 f e d c2\once \override Score.RehearsalMark.self-alignment-X =<br>
#RIGHT \mark \markup { \tiny \italic "D.C. al Fine" } |<br>
}<br>
<br>
% Staves<br>
basePart = <<<br>
\new ChordNames { \accords }<br>
\new Staff \with {<br>
\consists "Mark_engraver"<br>
} <<<br>
\new Voice = "melody" { \repeat volta 2 { \melody } }<br>
>><br>
>><br>
<br>
\book {<br>
\score {<br>
\basePart<br>
\layout {<br>
\context {<br>
\Score<br>
\remove "Mark_engraver"<br>
<div class="HOEnZb"><div class="h5"> }<br>
}<br>
}<br>
}<br>
<br>
<br>
Yann<br>
<br>
_______________________________________________<br>
lilypond-user mailing list<br>
<a href="mailto:lilypond-user@gnu.org">lilypond-user@gnu.org</a><br>
<a href="https://lists.gnu.org/mailman/listinfo/lilypond-user" \
target="_blank">https://lists.gnu.org/mailman/listinfo/lilypond-user</a><br> \
</div></div></blockquote></div><br></div>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic