Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I convert mp3 audios to midi for web?

share|improve this question

migrated from stackoverflow.com Mar 6 '11 at 3:09

This question came from our site for professional and enthusiast programmers.

1  
Do you mean to program it, or just to convert it? –  The Communist Duck Mar 5 '11 at 13:56
6  
Not feasible in general: MP3 is a waveform encoding (any sound), whereas MIDI encodes instruments playing notes (limited instrument set, limited note set). Analogy: like converting an image to ASCII art - it can be done with effort (with much better results for manual recoding), but the result will not be very similar to the source. –  Piskvor Mar 5 '11 at 14:04
    
@Piskvor It is feasible, but it's a large piece of audio analysis software. See Intelliscore for a commercial implementation, but I believe it still requires a skilled human operator to set the parameters for conversion. –  Adrian Cox Mar 5 '11 at 14:08
    
@Adrian Cox: "it still requires a skilled human operator" - I was assuming the OP wanted to do this programatically, hence my comment. –  Piskvor Mar 5 '11 at 15:58

4 Answers 4

You can't. At least not in any reasonable quality, with current computing technology.

Think of it like this. An MP3 is a CD, and a MIDI file is sheet music. The conversion from the former to the latter requires, at least at this point, a human being.

share|improve this answer

Well, not directly, and the sound won't be EXACTLY the same- but it will be very close. Secondly any vocals will be converted to an instrument. cool, but not that useful. in addition this solution would need a linux based system, since the tool i recommend is a linux based tool

I'd first use ffmpeg or sox to convert the mp3 to a Wav file, then run waon to convert that to midi. load it up into a midi editor, remove the 'voice' track, and you have a fairly close midi file to the original track.

share|improve this answer

There is not a way to actually convert MP3 files to MIDI files, like Matti Virkkunen mentioned in his answer. However, is is possible to do so to some extent, although most of the information will be lost (for example the output may only "use" 1 MIDI instrument); the way this can be done is pretty much similar to the way a person can listen to a song and write down the notes (where the song will be in the notes, but without all of the instruments etc. that were in the real thing).

WIDI Recognition System may be able to do this, but I am not aware of whether it works or not.

share|improve this answer

This could help you with programming you need Perl and ffmpeg

http://fedoraforum.org/forum/showthread.php?t=135491

For online conversion this link might help you out

http://www.ehow.com/how_5143729_convert-mp-midi-open-source.html

share|improve this answer
    
thanks a lot man –  Anonymous Mar 5 '11 at 14:10
1  
@user646043: Don't thank him until you've actually tried his links out. –  Matti Virkkunen Mar 5 '11 at 14:13
    
comon I helped you and someone else is voting me down for it.Thats not fair S.O. –  Wazzy Mar 5 '11 at 14:34
    
Actually he has tried my link and I am sure I am right –  Wazzy Mar 5 '11 at 14:36
    
@Wazzy: Uh, I have tried both of your links, and tried to do as they say (with Perl, ffmpeg, and Audacity).In the first,that's a recursive file converter using ffmpeg. ffmpeg does not support MIDI at all,so your link is mislabeled. In the second link,the author is wrong: that is a process of creating and exporting a MIDI sample - in other words,an "instrument" that can be downloaded and used ffor playing the notes,not the notes themselves.So:your answer is not useful (IMNSHO even actively harmful,as you're spreading misinformation);kindly stop complaining that it's downvoted as such. –  Piskvor Mar 5 '11 at 20:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.