Home

Awesome

#Arduino MIDI Library v4.2

This library enables MIDI I/O communications on the Arduino serial ports. The purpose of this library is not to make a big synthesizer out of an Arduino board, the application remains yours. However, it will help you interfacing it with other MIDI devices.

Download the latest version here.

Features

Changelog

Warning: this library requires Arduino 1.0 or more recent versions.

What do I need to do?

You are now ready to use the library. Look at the documentation to learn how to use it, or checkout the examples installed with the Library. You can also watch the awesome video tutorials from Notes & Volts.

##Documentation

See the extended documentation here (Mirror).

Using MIDI.begin

In the setup() function of the Arduino, you must call the MIDI.begin() method. If you don't give any argument to this method, the input channel for MIDI in will be set to 1 (channels are going from 1 to 16, plus `MIDI_CHANNEL_OMNI to listen to all channels at the same time).

This method will:

MIDI Thru

The MIDI Thru allows you to redirect your incoming messages to the MIDI output. It replaces the need of a MIDI Thru connector, as it copies every valid incoming message from the input. For good performance, you might want to call read() in a fast loop, for low latency.

Incoming unread bytes/messages are kept in the Arduino serial buffer, in order not to flood it, check regularily with MIDI.read. See the documentation for Thru explanations.

Thru is enabled by default, you can turn it off using appropriate methods.

Hardware

Take a look at the MIDI.org schematic.

Contact

if you have any comment or support request to make, feel free to contact me: francois.best@fortyseveneffects.com

You can also get informations about bug fixes and updates on my twitter account: @fortysevenfx.

License

MIT © 2015 Francois Best