Is it possible to export midi to .png files and have the .png files named by start-time

• Dec 28, 2024 - 20:13

I'm using Musecore to export a midi file as sheet music (stored as .png files) for display on a small screen.

I've set the sheet size to A8 landscape with 0.14" margins on all sides.

When I export to .png files, all the .png files are listed sequentially (ex: beethovens_5th.midi gets exported as beethovens_5th_1.png, beethovens_5th_2.png,...)

As an alternative, I want to export the .png files so that they are named by time (ex: beethovens_5th_1.png would instead be displayed as beethovens_5th_0ms, beethovens_5th_2.png would be displayed as beethovens_5th_7430ms.png because it starts 7.43 seconds into the song, beethovens_5th_3.png would be named beethovens_5th_16003ms.png because the 3rd sheet would start 16.003 seconds into the song.)

Does anybody have an idea on how to do this?

Thanks
P.S: If anyone can recommend a better forum to post this in, please let me know

M.C


Comments

When you rename, you may need to set the milliseconds value to the same number of digits for each file, so that they sort in chronological order. You don't really need the "ms" part of the filename especially if you use decimals for the seconds, e.g. beethovens_5th_0016.003.png.

You may be able to automate this using a plugin in MS3:
1) Save each page as a mscz file with sequential number
2) Loop thru each saved page and save as .png noting that the length of music is available as a score property so can be used in the filename generation.

Do you still have an unanswered question? Please log in first to post your question.