Skip to content
lathoub edited this page Feb 22, 2020 · 31 revisions

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

Using AppleMIDI.begin

In the setup() function of the Arduino, you must call the AppleMIDI.begin("session1"); method. This will create a session name "session1" and ready to be connected to. If you do not call the .begin() method, no session will be created and you will not able to access the session.

Using AppleMIDI.run

Call AppleMIDI.run(); as much as possible in loop() to minimise the latency. The run method will read incoming bytes and parse them against he MIDI protocol.