Open source software/library/tool/patch/... for converting audio to MIDI suggestions?

2

Having found 2 open source tools that can convert any audio file to midi, I'm still interested if there are others (for comparison).

I've tried WaoN and Audio_to_midi_melodia.

But not all samples produce desirable output.

WaoN seems to work better overall, and tweaking the parameters (as well as using higher sampling rates as input) aids in getting more accurate results.

Any tips for other OSS tools or libraries that achieve something similar are greatly appreciated.

nick88

Posted 2018-02-08T21:58:26.580

Reputation: 21

MIDI is not a type of audio file. It's not like converting .wav to .mp3 See this on How stuff works Maybe I don't understand what you're asking but it seems like you want to extract drum samples and play them back with a MIDI device.

– Timinycricket – 2018-02-18T23:29:47.133

Thanks, I am aware of this indeed. WaoN is not trivial and understanding more about it is interesting: https://stackoverflow.com/questions/44764521/waon-wav-to-midi-conversion I am not interested in MIDI devices, just having MIDI files that capture the main gist of a song or sample (rhythm/melody wise).

– nick88 – 2018-02-26T10:39:36.083

Audacity is opensource and it does have one such conversion function as far as I remember, Have you ever tried it? If so please let me know your feedback.. – Ruchir Vyas – 2020-02-19T07:35:02.777

Answers

1

I don't know about free and open source but ableton does this with a right click on an audio file > convert to midi

Maybe you could extract this midi out of the trial version or something like that?

Callum Lees

Posted 2018-02-08T21:58:26.580

Reputation: 13

Thanks, I assume that indeed proprietary software has some solutions (like Melodyne https://www.youtube.com/watch?v=c1Zkznqs-f8) but I am actually only interested in open source software, and not because its free so working with trial versions is not that relevant. Thanks regardless!

– nick88 – 2018-02-26T10:35:34.767

1

it seems that rackarrack has an audio to midi converter inside. The plugin is for guitar sounds but you can probably have a look at the code and see how this is made.

There's also aubio with a command line dedicated to audio to midi conversion aubionotes same thing here, you can probably have a look at the source code.

JSmith

Posted 2018-02-08T21:58:26.580

Reputation: 1 095

0

See my answer here: https://stackoverflow.com/questions/5852102/software-to-convert-audio-to-midi/65444119#65444119

which describes using Sonic Analyser or Tony.

CRGreen

Posted 2018-02-08T21:58:26.580

Reputation: 1

0

you may want to see this,which converting piano audio to MIDI https://github.com/bytedance/GiantMIDI-Piano.it may need a little bit modification of the program.

user32619

Posted 2018-02-08T21:58:26.580

Reputation: 1

0

you may want to see this,which converting piano audio to MIDI the site is:https://github.com/bytedance/GiantMIDI-Piano it may need a little bit modification of the program to use.

user32619

Posted 2018-02-08T21:58:26.580

Reputation: 1