Skip to main content

Module fixer

Module fixer 

Source
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§

OrnamentFixer
Writes the ornaments a performance plays on the notes of a reading that has none: music21’s OrnamentFixer.

Enums§

Recognizer
A recognizer an OrnamentFixer tries.

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”.
fix_enharmonics
Respells each note of the reading the performance plays enharmonically to it: music21’s EnharmonicFixer.
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.