Expand description
A score read by optical music recognition corrected by a performance of
it: music21’s alpha.analysis.fixer.
The two are aligned by StreamAligner, its target the performance
(MIDI) and its source the reading (OMR), and each fixer reads the
changes the alignment found: fix_enharmonics respells a note read
with the wrong accidental, delete_measures takes out a measure
holding a note read wrong, and an OrnamentFixer writes the trill or
turn a performance plays where the reading has a single note.
Structs§
- Ornament
Fixer - Writes the ornaments a performance plays on the notes of a reading
that has none: music21’s
OrnamentFixer.
Enums§
- Enharmonic
Fix - What becomes of one note read where the performance plays another
spelling of it: the write music21’s
EnharmonicFixermakes for one change. - Recognizer
- A recognizer an
OrnamentFixertries.
Functions§
- delete_
measures - Takes out of the reading each measure holding a note changed from the
performance’s: music21’s
DeleteFixer, which “does really weird things still”. - enharmonic_
fix - What becomes of one note read, given the note the performance plays and what the alignment made of the pair: nothing where the spelling read stands.
- fix_
enharmonics - Respells each note of the reading the performance plays enharmonically
to it: music21’s
EnharmonicFixer. - interval_
too_ big - Whether two notes are too far apart to be two spellings of one sound:
music21’s
intervalTooBig, which reads the interval class and not the interval itself. - notes_
within_ duration - The notes, rests and chords from one on, as many as fit in a length,
each a copy: music21’s
getNotesWithinDuration, read from the stream directly holding the first.