cuthbertLab / music21j

Javascript port of music21 -- Toolkit for Computational Musicology
Other
144 stars 41 forks source link

Unsorted pitch keys in NotRest.vexflowNote() #146

Closed jacobtylerwalls closed 2 years ago

jacobtylerwalls commented 2 years ago

Manifestation of https://github.com/0xfe/vexflow/issues/104:

const c = new music21.chord.Chord("C5 G5");
c.duration.type = "whole";
const s = new music21.stream.Stream();
s.append(c);
s.replaceDOM();
c.notes[1].pitch = new music21.pitch.Pitch('F#4');
s.replaceDOM();
Screen Shot 2021-11-11 at 6 25 22 PM
vexflow-debug.js:1 Warning:  Unsorted keys in note will be sorted. See https://github.com/0xfe/vexflow/issues/104 for details. Error
    at Function.b.StackTrace (http://127.0.0.1:8000/build/music21.debug.js:45756:4968)
    at Function.b.W (http://127.0.0.1:8000/build/music21.debug.js:45756:5126)
    at http://127.0.0.1:8000/build/music21.debug.js:45756:255597
    at Array.forEach (<anonymous>)
    at e.value (http://127.0.0.1:8000/build/music21.debug.js:45756:255564)
    at new e (http://127.0.0.1:8000/build/music21.debug.js:45756:250349)
    at Chord.vexflowNote (http://127.0.0.1:8000/build/music21.debug.js:14834:17)
    at Renderer.vexflowNotes (http://127.0.0.1:8000/build/music21.debug.js:25499:28)
    at Renderer.getVoice (http://127.0.0.1:8000/build/music21.debug.js:25116:24)
    at Renderer.prepareFlat (http://127.0.0.1:8000/build/music21.debug.js:24965:27)