C# XNA 生成 MIDI
我希望像 C# XNA 程序中的音符一样播放 MIDI。我实际上不需要构建 MIDI 文件,只需能够开始和停止音符或在给定时间内播放它们。
play("flute", "D4", "start");
play("flute", "D4", "stop");
play("flute", "E4", "5 secs");
I wish to play MIDI like notes from the C# XNA program. I don't actually need to construct a MIDI file, just have the ability to start and stop notes or play them for a given time.
play("flute", "D4", "start");
play("flute", "D4", "stop");
play("flute", "E4", "5 secs");
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议查看 XNA Midi 项目。
它包含两个示例并且易于使用:
与使用 WinAPI 等其他解决方案不同,它也可以在 Xbox 和 WP7 上运行。
I recommend looking at the XNA Midi Project.
It includes two examples and is easy to use:
Unlike other solutions like using WinAPI this will also run on XBox and WP7.