Thank you, Neil. Combining our ideas, I tried

x = { \cadenzaOff \set Staff.localKeySignature = #'() \bar "|" \cadenzaOn }

which had the effect I wanted.

Luckily the piece I was working on had a key signature of nothing. However, on 
trying with a non-null key signature, I find that it makes Lilypond engrave 
accidentals as if the key signature had changed to nothing. I didn't fancy 
having to set a key signature using a LISP construct, but fortunately a 
construct like this has my desired effect:

x = { \cadenzaOff
    \key a \major
    \override Staff.KeySignature #'stencil = ##f
    \bar "|"
    \cadenzaOn
}

                                          
_________________________________________________________________
Add your Gmail and Yahoo! Mail email accounts into Hotmail - it's easy
http://clk.atdmt.com/UKM/go/186394592/direct/01/
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to