New in version 2.0.
Set accidental_style for sequential semantic contexts in expr:
abjad> score = Score(Staff("c'8 d'8") * 2)
abjad> contexttools.set_accidental_style_on_sequential_contexts_in_expr(score, 'forget')
abjad> f(score)
\new Score <<
\new Staff {
#(set-accidental-style 'forget)
c'8
d'8
}
\new Staff {
#(set-accidental-style 'forget)
c'8
d'8
}
>>
Skip nonsemantic contexts.
Function looks like a hack but isn’t. LilyPond uses the dedicated command shown here to set accidental style. This means that it is not possible to set accidental style on a top-level context like score with a single override.