remi icon indicating copy to clipboard operation
remi copied to clipboard

MIDI files end up their last note pushed up a position

Open gstranger opened this issue 5 years ago • 6 comments

Hello, thank you for publishing this repo. I noticed theres a bug that occurs at the end of a MIDI file when encoding to REMI. The very last note, or multiple notes that occur after a certain position in the last bar will be "pushed up" a position making them off rhythmically. I'm not sure how to fix this. I assume there must be an issue in the item2event function but I'm not very experienced with numpy.

gstranger avatar Apr 27 '21 06:04 gstranger

Archive 2.zip ZIP example MIDI file, and then final result that has occurrence of bug.

gstranger avatar Apr 27 '21 06:04 gstranger

Hello, I have a question for you.I use the program provided by the author, but the item2event does not work. I would like to ask you how to run the code ?I hope you can inform me, I would be grateful.

huangqing6 avatar Apr 27 '21 12:04 huangqing6

When I run the conversion code, the computer comes up with a question(FileNotFoundError: [Errno 2] No such file or directory: '.\pop data').I want to know how to solve.

huangqing6 avatar Apr 27 '21 12:04 huangqing6

the item2event method doesn't take a file, you should call read_items instead.

gstranger avatar Apr 29 '21 06:04 gstranger

Sorry,I do not understand read_items .But midi2remi.ipynb is not run. I want to know how you run.

huangqing6 avatar Apr 29 '21 07:04 huangqing6

I found the issue, it looks like the quantize_items method is pushing the last notes up a couple position. I'll see if I can come up with a fix and submit a PR @remyhuang

gstranger avatar Apr 29 '21 21:04 gstranger