pitchtools.change_default_accidental_spelling

abjad.tools.pitchtools.change_default_accidental_spelling(spelling='mixed')

New in version 1.1.1.

Change default accidental spelling.

abjad> [Note(13, (1, 4)), Note(15, (1, 4))]
[Note(cs'', 5), Note(ef'', 5)]
abjad> pitchtools.change_default_accidental_spelling('sharps')
abjad> [Note(13, (1, 4)), Note(15, (1, 4))]
[Note(cs'', 5), Note(ds'', 5)]
abjad> pitchtools.change_default_accidental_spelling('flats')
abjad> [Note(13, (1, 4)), Note(15, (1, 4))]
[Note(df'', 5), Note(ef'', 5)]

Call with spelling = 'mixed' or with empty argument list to revert back to default mixed spelling.

abjad> pitchtools.change_default_accidental_spelling('mixed')
abjad> [Note(13, (1, 4)), Note(15, (1, 4))]
[Note(cs'', 5), Note(ef'', 5)]

Previous topic

pitchtools.are_in_octave_order

Next topic

pitchtools.chromaticize

This Page