简体   繁体   English

用于从USB MIDI设备读取MIDI信号的C / C ++库

[英]C/C++ library for reading MIDI signals from a USB MIDI device

I want to write C/C++ programs that take input from a MIDI device. 我想编写从MIDI设备获取输入的C / C ++程序。

The MIDI device connects to my PC using a USB connector. MIDI设备使用USB连接器连接到我的PC。

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. 我正在寻找一个(C / C ++实现的)库,我可以用它通过USB端口从MIDI设备读取MIDI信号。

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. 一旦我得到它,我很高兴操纵MIDI数据,我只是不想为它的捕获实现代码。

I'm planning on writing my code using the Bloodshed Dev-C++ IDE on Windows XP. 我打算在Windows XP上使用Bloodshed Dev-C ++ IDE编写代码。

PortMidi is another open source cross-platform MIDI I/O library worth checking out. PortMidi是另一个值得一试的开源跨平台MIDI I / O库。 On the other hand, if you are working on a sysex type of app, then direct Win32 works easily enough. 另一方面,如果您正在使用sysex类型的应用程序,那么直接使用Win32就足够了。

Just came across another open source cross-platform framework that includes MIDI support: Juce . 刚刚遇到另一个包含MIDI支持的开源跨平台框架: Juce

Also, I should note that there isn't anything special about a USB connected MIDI device. 此外,我应该注意USB连接的MIDI设备没有什么特别之处。 It will still be presented as a MIDI device in Windows and you will use standard MIDI APIs (mmsystem) to communicate with it. 它仍将在Windows中作为MIDI设备呈现,您将使用标准MIDI API(mmsystem)与其进行通信。

[July 2014] I just came across RtMidi that looks to be a nice, compact, open source cross-platform C++ library. [2014年7月]我刚刚遇到RtMidi ,它看起来是一个漂亮,紧凑,开源的跨平台C ++库。

Maybe the Jack source code may help too. 也许Jack源代码也可能有所帮助。 It's a sound driver for Posix compatible systems with a lot of possibilities and supports USB and Firewire audio devices. 它是Posix兼容系统的声音驱动器,具有很多可能性,并支持USB和Firewire音频设备。

Check out the open source project LMMS . 查看开源项目LMMS It's a music studio for Linux that includes the ability to use MIDI keyboards with software instruments. 它是Linux的音乐工作室,包括使用MIDI键盘和软件乐器的能力。 If you dig around in source files with 'midi' in the name, you'll probably find what you're looking for. 如果你在名字中带有'midi'的源文件中挖掘,你可能会找到你想要的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM