Open yucongj opened 8 months ago
Here is an alternate encoding of that measure:
Transcoded from Humdrum
When I convert to MIDI, it is playing properly (in Javascript on VHV).
Converting to a timemap (on the command-line):
verovio -t timemap test.mei
First event entry for the measure:
{
"off": [
"note-L16F2S1", <- Grace note (should not be here, should be at qstamp 1.5)
"note-L16F2S2" <- Grace note (should not be here, should be at qstamp 1.5)
],
"on": [
"note-L9F2S1",
"note-L9F2S2",
"note-L16F2S1", <-Grace note (should not be here, should be at qstamp 1.5)
"note-L16F2S2", <- Grace note (should not be here, should be at qstamp 1.5)
"note-L9F1"
],
"qstamp": 0,
"tempo": "30.000000",
"tstamp": 0
},
Checking the MIDI rendering:
verovio -t midi file.mei
I do not see any zero-duration grace notes at the start of the music (which probably would not sound).
The grace note chord is not duplicated in the time map, so they are not being encoded twice.
This is strange since the timemap is calculated before the MIDI file generation, and used to create the MIDI file.
Somehow it might be related to the timemap generating Functor. (I calculated the MIDI and timemap files on the command line). It would be useful to know what toolkit version you are using for verovio, probably the C++ library if you are loading directly into Qt? Or do you prepare the timemap in some other way?
A strange thing I note is that your ppp
is spaced as p pp
. This might indicate an older version of verovio is being used, although I am also getting the timemap problem with the most recent version of verovio.
Also the third grace note (note-L22F2) from the MEI data is not found in the timemap...
Describe the problem In the timemap generated by verovio, some notes (in Measure 12) are put in the wrong place.
To Reproduce Steps to reproduce the behavior:
Expected behavior According to the score, at the very beginning of Measure 12, there should be exactly three off-notes and three on-notes. However, in the timemap, there are six off-notes and six on-notes. By looking at their ids, the three extra off/on notes are the three grace notes in that same measure. Below is the beginning of Measure 12 in the timemap, where "n1kprscb", "nf1c3vp", and "nn01drz" are the extra notes that should not be there.
Input data See "To Reproduce" above.
Verovio information Version of Verovio: 4.1.0-dev
Environment information (as appropriate) OS: MacOS 14.3
Screenshots One of the grace notes is highlighted here:
Additional context NA