Closed sildater closed 10 months ago
The current matchfile_from_alignment from alignment uses the document order of notes in line 361 (exportmatch,py)
matchfile_from_alignment
snote_sort_info[snote.id] = (onset_beats, snote.doc_order)
to later on sort by this value in line 460 ff
sort_stime = np.array(sort_stime) sort_stime_idx = np.lexsort((sort_stime[:, 1], sort_stime[:, 0])) note_lines = np.array(note_lines)[sort_stime_idx]
doc_order is a standard note property but it's only used for musicxml files so far. Scores/parts imported from match/mei/kern/midi do not have this property and the sorting breaks. A doc_order property shouldn't be a hard requirement though.
doc_order
The current
matchfile_from_alignment
from alignment uses the document order of notes in line 361 (exportmatch,py)to later on sort by this value in line 460 ff
doc_order
is a standard note property but it's only used for musicxml files so far. Scores/parts imported from match/mei/kern/midi do not have this property and the sorting breaks. A doc_order property shouldn't be a hard requirement though.