Closed li-car-fei closed 9 months ago
Hi sorry for the late reply. Are you using version 1 (midi-score) or version 2 (midi-performance)? For version 1, please refer to this code. It extracts melody MIDI given original MIDI, and you can adjust it to suit your needs. If it's version 2, I have not pushed the code yet, and I'll try to update it this week.
I didn't run your code above, but it looks fine. If you can preprocess your generated midi to the same CP, then it should be alright!
Is the duration value multiplied by 60 and then output? In this case, the maximum duration will reach 3600, is it too long?
I try to write a function for it, but I do not know is it right :
the velocity is set to default 60