C/C++ 用于从 USB MIDI 设备读取 MIDI 信号的库
我想编写从 MIDI 设备获取输入的 C/C++ 程序。
MIDI 设备使用 USB 连接器连接到我的 PC。
我正在寻找一个(C/C++ 实现的)库,我可以用它通过 USB 端口从 MIDI 设备读取 MIDI 信号。
我很高兴在获得 MIDI 数据后对其进行操作,我只是不想实现其捕获代码。
我计划在 Windows XP 上使用 Bloodshed Dev-C++ IDE 编写代码。
I want to write C/C++ programs that take input from a MIDI device.
The MIDI device connects to my PC using a USB connector.
I'm looking for a (C/C++ implemented) library that I can use to read the MIDI signals from the MIDI device through the USB port.
I'm happy manipulating the MIDI data once I get it, I just don't want to have to implement the code for its capture.
I'm planning on writing my code using the Bloodshed Dev-C++ IDE on Windows XP.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
PortMidi 是另一个值得一试的开源跨平台 MIDI I/O 库。 另一方面,如果您正在开发 sysex 类型的应用程序,那么直接 Win32 就可以轻松工作。
刚刚遇到另一个包含 MIDI 支持的开源跨平台框架:Juce。
另外,我应该指出,USB 连接的 MIDI 设备没有什么特别之处。 它在 Windows 中仍将显示为 MIDI 设备,您将使用标准 MIDI API (mmsystem) 与其通信。
[2014 年 7 月] 我刚刚发现 RtMidi ,它看起来是一个不错的、紧凑的,开源跨平台C++库。
PortMidi is another open source cross-platform MIDI I/O library worth checking out. On the other hand, if you are working on a sysex type of app, then direct Win32 works easily enough.
Just came across another open source cross-platform framework that includes MIDI support: Juce.
Also, I should note that there isn't anything special about a USB connected MIDI device. It will still be presented as a MIDI device in Windows and you will use standard MIDI APIs (mmsystem) to communicate with it.
[July 2014] I just came across RtMidi that looks to be a nice, compact, open source cross-platform C++ library.
查看开源项目 LMMS。 它是一个 Linux 音乐工作室,能够将 MIDI 键盘与软件乐器结合使用。 如果您深入研究名称中带有“midi”的源文件 ,您可能会找到您正在寻找的东西。
Check out the open source project LMMS. It's a music studio for Linux that includes the ability to use MIDI keyboards with software instruments. If you dig around in source files with 'midi' in the name, you'll probably find what you're looking for.
也许 Jack 源代码也可能有所帮助。 它是 Posix 兼容系统的声音驱动程序,具有多种可能性,并支持 USB 和 Firewire 音频设备。
Maybe the Jack source code may help too. It's a sound driver for Posix compatible systems with a lot of possibilities and supports USB and Firewire audio devices.