MIDI to WAV & WAV to MIDI
Is it possible to do the conversions?
[37 byte] By [
PomeloWu] at [2007-11-18 22:11:43]

# 1 Re: MIDI to WAV & WAV to MIDI
What do u mean by do the conversion? Like using a dedicated software? Try CoolEdit. It can make conversion between a large number of audio formats.
cilu at 2007-11-11 1:04:44 >

# 2 Re: MIDI to WAV & WAV to MIDI
Sorry PomeloWu,
but this it not directly possible. Midi stores just the information which instrument should be played by a synthesizer and the notation of the music. While wav stores the digitized image of a soundwave itself (thereby its name).
The only thing you could do would be play the midi file and record it using the waveinput of your sound card (and thereby digitize it). But that would just store the result of the used synthesizer you used. Another soundcard or external synthesizer might give a completely different soundwave (depends extremely on the synthesizers quality).
By the way you could have found this information. if you would have searched the forum. I thought i saw this answered before.
Hope that helped :)
Horst
Horst at 2007-11-11 1:05:44 >

# 3 Re: MIDI to WAV & WAV to MIDI
But there are lots of softwares that can convert audio files between these two formats. I would like to know how those softwares work.
# 4 Re: MIDI to WAV & WAV to MIDI
Software that converts from WAV to MIDI? I would STRONGLY doubt that. MIDI only specifies (as said above) a string of codes that are fed to a hardware synthesizer. While one can take a MIDI string, play it through a synthesizer and record the resulting sound into a WAV file (every synthesizer giving you a different WAV file for the same MID string) doing the reverse is impossible. Human voice, for example, is yet to be represented by MIDI strings but it is easily captured in wavefiles.
If one could convert WAV to MIDI files I could take any tune on a CD and play it through such a converter and then get a written score on for that tune since MIDI files CAN be converted into written musical scores. All sequencer programs do that. BOY WOULD THAT BE A DREAM!
Wish it were possible...but it's not. (At least not yet.)
Brian
# 5 Re: MIDI to WAV & WAV to MIDI
But there are lots of softwares that can convert audio files between these two formats. I would like to know how those softwares work.
No, there isn't. MIDI is a series of instructions to musical instruments. WAV is a digitized version of an audio signal. WAV to MIDI is impossible. Some programs, such as Cakewalk's Sonar can convert MIDI to WAV, but they would have to do it by actually playing the MIDI file at a higher speed than specified, recording it, then somehow converting the WAV to actual speed. What the mechanics of doing that are, I don't know, but I imagine it isn't easy.
GCDEF at 2007-11-11 1:08:45 >

# 6 Re: MIDI to WAV & WAV to MIDI
So... How do you think about this one?
http://timidity.s11.xrea.com/index.en.html
# 7 Re: MIDI to WAV & WAV to MIDI
So... How do you think about this one?
http://timidity.s11.xrea.com/index.en.html
It does just what I said. Plays the MIDI files throughGravis Ultrasound sound fonts, and records what is played as WAV. There's no other way to do it.
GCDEF at 2007-11-11 1:10:45 >

# 8 Re: MIDI to WAV & WAV to MIDI
I got it. Thanks a lot.
# 9 Re: MIDI to WAV & WAV to MIDI
Thats exactly what Cakewalk does to. I write a score on sheet music which is recorded as a MIDI file. To convert that to a wavefile you have to play it through a synthesizer (my Soundblaster Live card) and record it. Cakewalk makes that effort kind of automatic. Hpwever, it takes as long to generate the file as it does to play the actual music. No conversion here...just brute force. I wish wav files COULD be transformed to MIDI!
Brian
# 10 Re: MIDI to WAV & WAV to MIDI
Thats exactly what Cakewalk does to. I write a score on sheet music which is recorded as a MIDI file. To convert that to a wavefile you have to play it through a synthesizer (my Soundblaster Live card) and record it. Cakewalk makes that effort kind of automatic. Hpwever, it takes as long to generate the file as it does to play the actual music. No conversion here...just brute force. I wish wav files COULD be transformed to MIDI!
Brian
I have a friend with Cakewalk's Sonar. It does it much faster than realtime. I don't know how, but as I speculated earlier, I assume it plays the MIDI file much faster than specified then modifies the WAV file to compensate. I didn't believe it till I saw it.
GCDEF at 2007-11-11 1:13:52 >

# 11 Re: MIDI to WAV & WAV to MIDI
No, there isn't. MIDI is a series of instructions to musical instruments. WAV is a digitized version of an audio signal. WAV to MIDI is impossible..
Quite Wrong... There are various program which can do that, but for the reasons you explain, none of them do that perfectly. Such a program, in fact do what you would do by transcribing the music to a music sheet. Now, it is not easy to identify what is a note and what is a higher harmonic from another note. For this reason, most those programs are unable to separate all notes from a polyphonic track better than your ears would.
Some programs, such as Cakewalk's Sonar can convert MIDI to WAV, but they would have to do it by actually playing the MIDI file at a higher speed than specified, recording it, then somehow converting the WAV to actual speed. What the mechanics of doing that are, I don't know, but I imagine it isn't easy.
They don't really need to change the speed of the music. Since they are not playing it for human ears, they just do it in the computer's memory where real time does not really exist. (Computers processors only know their own clock which can go faster or slower from one CPU to another. For real Time, they need to synchronise on an external clock)
Camion at 2007-11-11 1:14:48 >

# 12 Re: MIDI to WAV & WAV to MIDI
Camion, I assume that you mean a single instrument conversion. What they would do is to Fourier Analyize the signal and try to identify the different tones by their several means, including intensity (to try and separate harmonics of one note from two separate notes. It must also be difficult to distinguish note values.
However, they would be hard pressed to identify a clarinet and an oboe playing the same note. If they had the soundfonts of the synthesizer that created the wavefile that might be more feasible.
A problem with a wavefile to MIDI is that there are multiple solutions. A different set of instruments could produce very similar waveforms.
On the other hand, converting say someone singing or playing (single note) without accompanyment might provide a useful tool to get a rough draft on paper of what was being sung.
Brian