Skip to main content

accidentals_made

Function accidentals_made 

Source
pub fn accidentals_made(stream: &Stream) -> bool
Expand description

Whether some accidental in a stream has had its showing decided: music21’s haveAccidentalsBeenMade.

music21 keeps a flag for this and sets it when makeAccidentals runs; the answer here is read off the pitches instead, which is what its own documentation says the flag means – “if any Accidental has displayStatus other than None, this method returns True, regardless of if makeAccidentals has actually been run”. Nothing is remembered, so nothing can be remembered wrongly.