Re: Problems with DC al Fine template

2014-06-01 Thread Knute Snortum
In my previous example, just change _\dc to ^\dc and you have it.


Knute Snortum
(via Gmail)


On Sun, Jun 1, 2014 at 5:52 AM, Yann yann@free.fr wrote:

  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 \removeStaff_collecting_engraver seems to be
  the one m
  On Sat, May 24, 2014 at 10:14 AM, Yann yann@free.fr wrote:
 essing 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
 2014-05-25 15:08 GMT+02:00 Knute Snortum ksnor...@gmail.com:
  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)

 Thank you very much for your answer. But, in a case where there are
 lyrics as well below the staves, won't it get confusing if the DC mark
 is also below the staff ?

 Yann

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problems with DC al Fine template

2014-05-25 Thread Knute Snortum
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@free.fr wrote:

 2014-05-24 18:20 GMT+02:00 Yann yann@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 \removeStaff_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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problems with DC al Fine template

2014-05-24 Thread Yann
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

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Problems with DC al Fine template

2014-05-24 Thread Yann
2014-05-24 18:20 GMT+02:00 Yann yann@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 \removeStaff_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


Problems with DC al Fine template

2014-05-16 Thread Yann
Hi all ! :)

I have several problems with a DC al Fine template (I use variants
of it both for lead sheet and SATB, and the problem appears on both).
I tried to reduce my code to a minimal example (had to fill it with
random music), and simplified it (no lyrics, no chords). I noticed it
recently, but it was present I think in 2.16 (so I presume my code is
at fault).

I put the code at end of mail (I hope it will pass correctly through).

The problems are :
1-measure numbers appear at left of staves/systems, ad not above left
as usual (so for choir scores, it collides with the choir bracket) -
this one, I have absolutely no idea where it comes from (but I don't
have this problem with other templates).

2-the other one is with the Fine marking (comes probably from my
definition, but I feel it might need more code to fix it, don't know
exactly how to approach it) :
2.1-if the Fine double bar comes at the end of a line and end of
measure, then it should be ok.
2.2-if it comes in the middle of a line, then Fine does not always
print (in the code example, it is possible to move it easily by
changing the durations in choirDuration and verseDuration
variables e.g. choirDuration = {s1*10} and verseDuration = {s1*6} ).
2.3-if it comes in the end of a line, but not at a measure's end, then
the measure get cut, and of course the measure number is not printed
at the beginning of next line (looks a bit weird, though maybe nicer
for lyrics).

It is a bit fuzzy for me, but I think I would like this behaviour :
2.1 is ok ;
2.2 - always print - it does so if I comment out the \once \override
Score.RehearsalMark.break-visibility = #end-of-line-visible but then
in case 2.1, the mark prints at the beginning of next line ;
2.3 - prevent from cutting on the double bar if not at a measure's end ?

I hope my mail is not too messy. Does anyone has some clues/tracks ?
Thanks in advance ! :)

Yann
-

\version 2.18.0

\paper {
  #(set-paper-size a4)
}

choirDuration = {
  s1*10
  s2
}

verseDuration = {
  s2
  s1*5
}

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 |
  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 |

  e8 f e d c2 |
  r4 e8 f g e f g |
  f e d f e d c e |
  d4 g g a8 g |
  f e d e c4 e8 f |
  g f e d c2 |
}

nVerses = 4

% Applying marks
metaData = {
  \choirDuration \once \override Score.RehearsalMark.break-visibility
= #end-of-line-visible
  \once \override Score.RehearsalMark.self-alignment-X = #RIGHT \mark
\markup { \tiny \italic Fine } \bar ||
  \verseDuration \once \override Score.RehearsalMark.break-visibility
= #end-of-line-visible
  \once \override Score.RehearsalMark.self-alignment-X = #RIGHT \mark
\markup { \tiny \italic D.C. al Fine }
}

melody = {
  \repeat volta \nVerses {
 \metaData \melody 
  }
}

% Staves
basePart = 
  \new Staff \with {
\consists Mark_engraver
\consists Staff_collecting_engraver
  } 
\new Voice = melody { \melody }
  


\book {
  \score {
\basePart
\layout {
  \context {
\Score
\remove Mark_engraver
\remove Staff_collecting_engraver
  }
}
  }
}

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user