----- Original Message -----
> From: "Mark Knoop" <[email protected]>
> To: "Lilypond User List" <[email protected]>
> Sent: Saturday, March 28, 2015 12:14:36 PM
> Subject: Re: cadenza_and_accidentals-take2
> 
> At 10:49 on 28 Mar 2015, [email protected] wrote:
> >----- Original Message -----
> >> From: "Andrew Bernard" <[email protected]>
> >Yes, I have accidentals in the cadenza section.  As I stated, however,
> >in the final measure the cadenza has been ended and a bar line has
> >been crossed so the key signature is in full force again.  All
> >accidentals from the previous measure are now null and void.
> >Obviously, LilyPond is behaving the way it does.  My point and
> >question still stand:
> 
> The reason is because you have forced the barline to appear, but
> LilyPond still thinks it is in the same bar for the purpose of
> accidentals. It's not a "natural" barline so you need to tell
> LilyPond where it is in the bar. Before \bar "|", add the line:
> 
> \set Timing.measurePosition = #(ly:make-moment 4/4)
> 
> and all will be well without forcing any accidentals.
> 


This works exactly as you said.  I experimented a bit.  I'm actually in 2/4 
time.  Using:

\set Timing.measurePosition = #(ly:make-moment 0/4)
\set Timing.measurePosition = #(ly:make-moment 2/4)
\set Timing.measurePosition = #(ly:make-moment 4/4)

All produced the same result except with regard to measure numbers.  By using:

\set Timing.measurePosition = #(ly:make-moment 2/4)

...I was also able to dispense with 'correcting' the measure numbering.

Thanks!

-David

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to