如何使用 .NET Compact Framework 2.0 播放 midi 文件?

发布于 2024-07-25 17:34:19 字数 422 浏览 3 评论 0原文

我已经尝试过 这个 但它不起作用(即使我指定 .wav 文件作为输入)。 还尝试了这个但是还是没有声音。 尽量避免使用 .wav,因为如果与 midi 相比,它们太大了。

我正在用 VS 2008 模拟器尝试这个。 这是问题所在吗? 我应该在真实硬件上进行测试吗?

在 .NET 紧凑框架 2.0 上播放 MIDI 的最佳方式是什么?

I have tried this but it does not work (even if I specify .wav file as an input). Also tried this but still no sound. Trying to avoid .wav because they are BIG if you compare with midi.

I'm trying this with VS 2008 emulator. Is that the problem? Should I test on the real hardware?

What is the best way to play midi on the .NET compact framework 2.0 ??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

静若繁花 2024-08-01 17:34:20

嗨,我只是添加一些信息。 看来你对Midi格式有误解。 与 Wave 文件不同,Midi 文件不保留实际的“声音”。 它只是保留与实际声音映射的值。 我们只是使用合成器来重新生成声音。 例如,我们可能会用不同的合成器听到不同的同一首 MIDI 歌曲。

根据声音的合成,我猜它比普通的 Wave 文件消耗更多的 CPU。 请也看看这个问题,因为您正在尝试使用资源较少的移动设备。

Hi I am just adding some information. It seems you have a misunderstanding about Midi format. Not like the Wave files the Midi file does not keep the actual "Sound". It just keeps a value mapped with the actual sound. We just use a synthesizer to regenerate the sound. As and example we may hear the same midi song differently with different synthesizers.

According to this synthesis of sound I guess it consumes the CPU more than a normal Wave file. Please have a look on this matter as well because you are trying to use the mobile devices with less resources.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文