Control Surface
1.2.0
MIDI Control Surface library for Arduino
|
This example demonstrates how to attach custom callbacks to Note or Control Change MIDI Input Elements.
If a MIDI Note On event for note 0x3C (C4 or middle C) is sent, its velocity value sets the red value of the first LED, note 0x3D controls the green value of the first LED, note 0x3E controls the blue value of the first LED, note 0x3F controls the red value of the second LED, 0x40 controls the green value of the second LED, etc.
Route the MIDI output of a MIDI keyboard to the Arduino's MIDI input. Then play some notes in the two octaves above middle C.
Alternatively, map it in you DAW, for example, in VirtualDJ:
<color notered="0x3C" notegreen="0x3D" noteblue="0x3E" ... />
Written by PieterP, 2020-03-12
https://github.com/tttapa/Control-Surface