我开始了一个小项目,其中包括处理 MIDI 文件。我一直在想,是否有任何 C# 或 VB.Net 代码可以在 MIDI 和 WAV 文件之间转换?
最佳答案
您可以尝试以某种方式与 Timidity 进行交互,这是开源的:
TiMidity++ is a software synthesizer. It can play MIDI files by converting them into PCM waveform data; give it a MIDI data along with digital instrument data files, then it synthesizes them in real-time, and plays. It can not only play sounds, but also can save the generated waveforms into hard disks as various audio file formats.
FluidSynth是最近更新的类似的开源项目:
FluidSynth is a real-time software synthesizer based on the SoundFont 2 specifications.
您可以从 this list 上的网站下载一些免费的 SoundFonts(这些合成器用来“渲染”MIDI 文件的实际 PCM 数据) .
关于c# - 如何在 C# 中将 midi 转换为 wav/mp3?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1185392/