开源软件名称(OpenSource Name):FortySevenEffects/arduino_midi_library开源软件地址(OpenSource Url):https://github.com/FortySevenEffects/arduino_midi_library开源编程语言(OpenSource Language):C++ 85.2%开源软件介绍(OpenSource Introduction):Arduino MIDI LibraryThis library adds MIDI I/O communications to an Arduino board. Features
Getting Started#include <MIDI.h>
// Create and bind the MIDI interface to the default hardware Serial port
MIDI_CREATE_DEFAULT_INSTANCE();
void setup()
{
MIDI.begin(MIDI_CHANNEL_OMNI); // Listen to all incoming messages
}
void loop()
{
// Send note 42 with velocity 127 on channel 1
MIDI.sendNoteOn(42, 127, 1);
// Read incoming messages
MIDI.read();
}
DocumentationUSB Migration (4.x to 5.x)All USB related code has been moved into a separate repository Arduino-USB-MIDI, USB MIDI Device support with Migration has been made as easy as possible: only the declaration of the MIDI object has been modified, the rest of your code remains identical.
#include <MIDI.h>
#include <midi_UsbTransport.h>
static const unsigned sUsbTransportBufferSize = 16;
typedef midi::UsbTransport<sUsbTransportBufferSize> UsbTransport;
UsbTransport sUsbTransport;
MIDI_CREATE_INSTANCE(UsbTransport, sUsbTransport, MIDI);
// ... now becomes in #include <USB-MIDI.h>
USBMIDI_CREATE_DEFAULT_INSTANCE();
// ... Start with the NoteOnOffEverySec example that is based on the original MidiUSB sketch. Note the only difference is in the declaration. The USB-MIDI Arduino library depends on this library and the MIDIUSB library. USB-MIDI uses the latest Arduino IDE Other Transport mechanismsVersion 5 of this library, allows for other Transport layers than the original MIDI 1.0 Electrical Specification (hardware serial). All these Transport layers use this library for all the underlying MIDI work, making it easy to switch transport protocols or making transport protocol bridges. Differences between Serial & other transports
Contact & ContributionTo report a bug, contribute, discuss on usage, or request support, please discuss it here. You can also contact me on Twitter: @fortysevenfx. ContributorsSpecial thanks to all who have contributed to this open-source project !
You want to help ? Check out the contribution guidelines. LicenseMIT © 2009 - present Francois Best |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论