It happens for all bar lines in a cadenza. I write a lot of chant music and this behavior is very annoying, especially in the tenor line. Using #(set-accidental-style 'forget) works for me. I guess it's better to mark all of the accidentals than none of them.
\new Staff = men << \clef bass \key g \major \new Voice = "Tenor" {\voiceOne \cadenzaOn \override Stem #'length = #5 #(set-accidental-style 'forget) a4 b4 c'4 c'4 c'4 b4 c'4 d'4 c'4 b2 \bar "|" s4 b4 c'4 d'4 d'\breve d'4 e'4( f'4 e'4 d'4) c'2 \bar "|" s4 a4 b4 c'4 c'4 b4 c'4 d'4( c'4) b2 \bar "|" s4 b4 c'4 d'4 d'\breve d'4 e'4( f'4 e'4 d'4) c'2 \bar "|" s4 e'4 e'4 e'4 e'4 d'2 c'4 b4 c'1 b1 \bar "|." } \new Voice = "Bass" {\voiceTwo \cadenzaOn \override Stem #'length = #5 d4 d4 d4 d4 d4 g4 g4 g4 g4 g2 \bar "|" s4 g4 g4 g4 g\breve g4 c4( b,4 c4 g4) a2 \bar "|" s4 d4 d4 d4 d4 g4 g4 g2 g2 \bar "|" s4 g4 g4 g4 g\breve g4 c4( b,4 c4 g4) a2 \bar "|" s4 c4 c4 c4 c4 g2 fis4 g4 c2( d2) <g g,>1 \bar "|." } >> One thing I haven't experimented with yet is breaking the cadenza at every bar line. Maybe doing a \cadenzaOff before, and \cadenzaOn after, each bar line might fix the accidentals, spacing around the bar lines, and matching the bar line counts with the lyrics. Unfortunately, I'm a bit lazy. I prefer solutions that require less typing, not more typing. Paul -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Victor Eijkhout Sent: Saturday, July 07, 2007 10:44 PM To: lilypond-user@gnu.org Subject: accidentals in cadenzas I'm writing a cadenza, and it seems that < \bar "" > does not have the effect of accidentals being reset as if there was a real bar line. For instance d16 [e fis g a b cis d e f e d] \bar "" e,16 [fis gis a b cis d e f g f e] In the second phrase, only a sharp will be printed for the gis, not for the fis. Is there any way to get the effect that at the invislble bar line all previous accidentals are forgotten/reset? Victor. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user