如何在vb.net中将mp3 / wav文件转换为midi [英] How do I convert an mp3/wav file to midi in vb.net

查看:161
本文介绍了如何在vb.net中将mp3 / wav文件转换为midi的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道如何在Visual Basic .NET中将mp3或wav文件转换为midi。

我看了LAME,我不知道我认为它有这个功能。

我不知道从哪里开始,所以如果你能给我一个起点,那就太好了。

问候,

iProgramIt

Hi all,
I was wondering how to convert mp3 or wav file to midi in Visual Basic .NET.
I had a look at LAME, and I don't think it has that functionality.
I do not know where to start, so if you could give me a starting point and that, that would be great.
Regards,
iProgramIt

推荐答案

请参阅我对该问题的评论。没有转换这样的东西。



我想向你解释至少部分问题。首先,为什么这个问题的表述在一般情况下完全没有意义?这很简单:MIDI采用现代欧洲12色调系统,平等气质: http:// en .wikipedia.org / wiki / Equal_temperament [ ^ ] 。



基本上,MIDI数据是本系统音符上的事件集,以及具有不同 timbres的不同乐器:注意开始(指定相对音量和乐器),音符结束; 打击乐的特殊符号存在,有弯曲的数据。差不多,就是这样。这些事件本身就是音符; MIDI几乎是传统音乐符号的一种形式。

在一般音频记录中,没有这样的东西。没有音符在所有;有一个复杂的动态音频波形。即使您将其分解为某些时间帧并执行傅立叶变换,您也会发现不适合任何音调系统或任何规则的频率。现在,诀窍是:即使这是音乐也是如此。 (!)



即使是我们通常认为是音乐的记录,情况仍然不确定。在许多录制的音乐作品中,会产生很多噪音,声音和乐器的弦乐会弄脏音调;音调本身可能会强烈弯曲。我甚至不想讨论使用其他气质时的情况,例如 microtonal ;这是不同文化音乐的重要组成部分,也是现代微音乐,包括摇滚乐: http://en.wikipedia.org / wiki / Microtonal_music [ ^ ]。



现代经典音乐如何干净利落,使用我上面描述的标准音调系统,使用不同的音调?从理论上讲,它使情况可以解决:有笔记。只有这是一个非常困难的问题。让我这样说吧:到目前为止我发现的所有开源工具都不尽如人意。想暴风雨一个大问题?那么,你需要在波的物理学,功能分析,傅立叶变换和傅立叶分析中学到很多东西,更重要的是,要对所有问题有一个大致的了解。即使这个最低限度也意味着严肃要了解它的全部内容,您可以从

开始 http://en.wikipedia.org/ wiki / Wave [ ^ ],

http://en.wikipedia.org/wiki/Functional_analysis [ ^ ],

http://en.wikipedia.org/wiki/Fourier_transform [ ^ ]。



-SA
Please see my comment to the question. There is no such thing as "convert".

I want to explain to you at least the part of the problem. First of all, why the formulation of this problem makes no sense at all in general case? This is simple: MIDI operates with modern European 12-tone tonal system in equal temperament: http://en.wikipedia.org/wiki/Equal_temperament[^].

Essentially, MIDI data is the set of events over the notes of this system and different instruments with different timbres: note start (relative volume and instrument is specified), note ends; special notation for percussion exists, there is data for bending. Pretty much, that's all. These events are note sounds themselves; the MIDI is pretty much a form of traditional music notation.
In general audio record, there is no such thing. There are no notes at all; there is a complicated dynamic audio wave form. Even if you break it into some time frames and perform Fourier transform, you will find frequencies which don't fit any tonal system or any rules at all. Now, the trick is: this is pretty much so even if this is music. (!)

Even for record we typically perceive as music, the situation remains uncertain. In many recorded music pieces, there is a lot of noise, string timber of voice and instruments smudges the tones; and the tones themselves could be strongly bended. I don't even want to discuss the situation when alternative temperaments are used, such as microtonal; and this is the big part of music of different culture, and also modern microtonal music, including rock: http://en.wikipedia.org/wiki/Microtonal_music[^].

How about modern classic music performed cleanly, with distinct tones using the "standard" tonal system I described above? Theoretically speaking, it make the situation resolvable: there are "notes". Only this is extremely difficult problem. Let me put it this way: all open-source tools I found so far were unsatisfactory. Want to storm a huge problem? Well, you would need to learn a lot in the physics of waves, functional analysis, Fourier transform and Fourier analysis, and, more importantly, get the general understanding of all the problems. Even this minimum means serious education. To see what is it all about, you can start with
http://en.wikipedia.org/wiki/Wave[^],
http://en.wikipedia.org/wiki/Functional_analysis[^],
http://en.wikipedia.org/wiki/Fourier_transform[^].

—SA


没有办法自动将MP3转换为MIDI。嗯,准确无误。



我知道一个兼职工作的人正在做你正在谈论的事情。他和其他人一样,用MIDI功能在各种乐器上播放歌曲,并以MIDI格式录制歌曲 - 所有这些都是手动完成的,因为为了准确起见。
There is no way to automatically do a "conversion" of an MP3 to to MIDI. Well, with any accuracy that is.

I know a guy who's part time job is doing exactly what you're talking about. He, and other s like him, play the songs on various instruments with MIDI capabilities and record the songs in MIDI formats - all done manually because for the sake of accuracy.


这篇关于如何在vb.net中将mp3 / wav文件转换为midi的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆