First time here? Check out the FAQ!
x

Write Standard MIDI File from a Tool

0 votes
142 views
hello,

would it be theoretically possible to generate a Standard MIDI File from a tool?

best,

d
asked Jan 16 in Controllers, OSC & MIDI by domenico-cipriani (Adept) (2,830 points)

1 Answer

0 votes
 
Best answer

You could pretty easily write a Tool to output events to a text file (something like CSV or TSV or other format), and then use one of the CSV-to-MIDI converters to create a MIDI file. 

These are some examples found on the web, but I haven't tested them:

https://www.fourmilab.ch/webtools/midicsv/

https://pypi.org/project/py-midicsv/

http://abc.sourceforge.net/abcMIDI/

If the reason you want to generate a MIDI file is to do music notation, you could try LilyPond.

Does anyone know of other text-to-midi file conversion programs?

answered Jan 18 by ssc (Savant) (115,770 points)
selected Jan 21 by domenico-cipriani
if anybody needs it, here a guide to write MIDI information into a CSV file
http://manpages.ubuntu.com/manpages/bionic/man5/midicsv.5.html
...