Skip to content
lathoub edited this page Feb 13, 2021 · 31 revisions

Read the important migration page first, when you are migrating from v1.* to v2.* or from v2.* to v3.*

Minimum Setup

#include <AppleMIDI.h>
APPLEMIDI_CREATE_DEFAULTSESSION_INSTANCE();

That is it, the rest is like you would make a MIDI application using the FortySevenEffects MIDI library.

APPLEMIDI_CREATE_DEFAULTSESSION_INSTANCE();

resolves to

APPLEMIDI_CREATE_INSTANCE(EthernetUDP, MIDI, "AppleMIDI-Arduino", DEFAULT_CONTROL_PORT);

                           |         |             |                     |
                           |         |             |                     +-> Default port is 5004
                           |         |             +-----------------------> AppleMIDI session name
                           |         +-------------------------------------> Variable name used in the sketch
                           +-----------------------------------------------> UDP class from the Ethernet library