Mark,

Thanks. This solves problem 2, but I've adapted it for no 1 (see below). I 
can't see any way of printing the clef change immediately before the closing 
repeat bar (for the repeat) and after it (for the continuation). Does anyone 
here know what the accepted layout would be?

\version "2.19.52"

\language "english"

 
\new Staff {
\override Score.BarNumber.break-visibility = ##(#t #t #t)
\time 4/4
\clef "treble"  c''1
\clef "bass" c
\clef "treble" c''
\set Staff.forceClef = ##t
\once \override Score.BreakAlignment #'break-align-orders = #(make-vector 3 
'(staff-bar clef ))
\repeat volta 2 {\clef "treble" c'' }
\alternative {
   { c'' \clef "bass" c }
   { \set Staff.forceClef = ##t
     \once \override Score.BreakAlignment #'break-align-orders = #(make-vector 
3 '(staff-bar clef ))
     \clef "bass" c }
}
}

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-------------------------
Tuesday, February 20, 2018, 2:36:23 PM, Mark Stephen Mrotek wrote:


Peter,
 
Try this
 
\version "2.19.52"
 
\language "english"
 
\new Staff {
\override Score.BarNumber.break-visibility = ##(#t #t #t)
\time 4/4
\clef "treble"  c''1
\clef "bass" c
\clef "treble" c''
 
\repeat volta 2 { c'' }
\alternative {
   { c'' \clef "bass" c }
   { \set Staff.forceClef = ##t
     \once \override Score.BreakAlignment #'break-align-orders = #(make-vector 
3 '(staff-bar clef ))
     \clef "bass" c }
}
}
 
Mark
 
From: Peter Toye [mailto:lilyp...@ptoye.com] 
Sent: Tuesday, February 20, 2018 2:09 AM
To: Mark Stephen Mrotek <carsonm...@ca.rr.com>; lilypond-user@gnu.org
Subject: Re: Placement of clefs at repeat bars
 
Mark,

This works for my example as given, but not for the following one. Here the 
problem is that two clef changes are needed:

1) for the repeat from bass to treble (bar 6 back to 4), and 
2) one for the continuation, from treble to bass (from 3 on to 7). 

LP sees the bass clef in bar 6 and thinks that it's not needed for bar 7. But 
the performer goes straight from bar 4 to bar 7 and doesn't see the bass clef. 
Also, when repeating after bar 6, the performer doesn't see any clef change, 
and after the clef changes in bars 1-3 won't remember what clef they are meant 
to be in.

I'm a performer and occasional arranger, not a musical typographer, so don't 
know the solution, but it would seem to me that there should be one fundamental 
rule: the flow of the music as performed should have all clef changes marked 
without the performer having to remember anything.

(1) could be solved by a courtesy treble clef (in brackets?) at the beginning 
of bar 4.
(2) needs a bass clef at the beginning or bar 7

How this can be achieved is way outside my competence.

\version "2.19.52"

\language "english"

\new Staff {
 \override Score.BarNumber.break-visibility = ##(#t #t #t)
 \time 4/4
 \clef "treble"  c''1
 \clef "bass" c
 \clef "treble" c''

 \repeat volta 2 { c'' }
 \alternative {
   { c'' \clef "bass" c }
   { \clef "bass" c }
 }
}



Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-------------------------
Monday, February 5, 2018, 2:08:07 PM, Mark Stephen Mrotek wrote:

Peter, 

You are welcome very much!

Mark

From: Peter Toye [mailto:lilyp...@ptoye.com] 
Sent: Monday, February 05, 2018 1:10 AM
To: Mark Stephen Mrotek <carsonm...@ca.rr.com>; lilypond-user@gnu.org
Subject: Re: Placement of clefs at repeat bars

Mark,

I see what you mean! That works fine. Thanks very much.

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-------------------------
Sunday, February 4, 2018, 7:35:21 PM, you wrote:

Peter,

As I said in my suggestion, using the same “\once” command for the treble clef 
achieves want you want.
Try,

\version "2.19.52"

\language "english"

\new Staff         {
\repeat volta 2 {
c'' c''
\once \override Score.BreakAlignment #'break-align-orders = #(make-vector
3 '(staff-bar clef ))
\clef "bass"  c  c
}
\once \override Score.BreakAlignment #'break-align-orders = #(make-vector
3 '(staff-bar clef ))
\clef "treble" c''1

}

Perhaps I am not the only one who must read more carefully.

Mark

From: Peter Toye [mailto:lilyp...@ptoye.com] 
Sent: Sunday, February 04, 2018 10:55 AM
To: Mark Stephen Mrotek <carsonm...@ca.rr.com>; lilypond-user@gnu.org
Subject: Re: Placement of clefs at repeat bars

Mark,

Thanks. You read my email correctly - the bass clef should be after the 
barline, not before. But your idea didn't change this. Should it have done so?

Best regards,

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-------------------------
Sunday, February 4, 2018, 3:45:33 PM, you wrote:

Peter,

I regret that my suggestion did not solve all of your issues. My reading of 
your e-mail lead me to the awkward placement of the bass clef. That is the crux 
of my recommendation.
The same command could be used to “accurately” place the subsequent treble clef.

Mark

Never let the perfect be the enemy of the good.
Don’t look a gift horse in the mouth.

From: Peter Toye [mailto:lilyp...@ptoye.com] 
Sent: Sunday, February 04, 2018 3:45 AM
To: Mark Stephen Mrotek <carsonm...@ca.rr.com>; lilypond-user@gnu.org
Subject: Re: Placement of clefs at repeat bars

Mark,

Your snippet raises two points:

1) There really should be a treble clef before the final repeat, to remind the 
performer to switch back. This is important when there's music before the 
repeated section as the performer may have forgotten which clef the repeat 
started in. In your simplified example there's already a clef sign as the 
beginning of the stave, but in most music that would be just luck. This is a 
similar bug to mine, but different!

2) Your example doesn't have any music after the repeated section, which is 
when the problem occurs. If I add some, I'm afraid your solution doesn't help. 
My example is:

\version "2.19.52"

\language "english"

\new Staff         {
\repeat volta 2 {
c'' c''
\once \override Score.BreakAlignment #'break-align-orders = #(make-vector
3 '(staff-bar clef ))
\clef "bass"  c  c
}
\clef "treble" c''1

}

Best regards

Peter
mailto:lilyp...@ptoye.com
www.ptoye.com

-------------------------
Saturday, February 3, 2018, 7:25:06 PM, you wrote:

> Ptoye,

> Does this work?

> \repeat volta 2 {
>    c'' c'' 
>    \once \override Score.BreakAlignment #'break-align-orders = #(make-vector
> 3 '(staff-bar clef ))
>    \clef "bass" | c  c
>   }

> Mark

> -----Original Message-----
> From: lilypond-user
> [mailto:lilypond-user-bounces+carsonmark=ca.rr....@gnu.org] On Behalf Of
> ptoye
> Sent: Saturday, February 03, 2018 11:08 AM
> To: lilypond-user@gnu.org
> Subject: Re: Placement of clefs at repeat bars

> I've found that this is was reported as an "ugly" in 2011. I think it's a
> bug as the output is definitely incorrect.

> The reverse happens with the snippet below, where the change of clef is
> missing.

> \version "2.19.52"
> \language "english"
> \score {
>  \new Staff {
>   \time 4/4
>   \clef "treble"
>   c''2 c''

>   \repeat volta 2 {
>    c'' c'' | \clef "bass" c  c
>   }
>    c c
>  }

> }





> --
> Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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

Reply via email to