FastLED 3.9.15
Loading...
Searching...
No Matches

◆ setup()

void setup ( )

Definition at line 121 of file LuminescentGrand.ino.

121 {
122 FL_DBG("setup");
123 // Serial port for logging.
124 Serial.begin(57600);
125 //start serial with midi baudrate 31250
126 // Initiate MIDI communications, listen to all channels
127 MY_MIDI.begin(MIDI_CHANNEL_OMNI);
128
129 // Connect the HandleNoteOn function to the library, so it is called upon reception of a NoteOn.
130 MY_MIDI.setHandleNoteOn(HandleNoteOn);
131 MY_MIDI.setHandleNoteOff(HandleNoteOff);
132 MY_MIDI.setHandleAfterTouchPoly(HandleAfterTouchPoly);
133 MY_MIDI.setHandleAfterTouchChannel(HandleAfterTouchChannel);
134 MY_MIDI.setHandleControlChange(HandleControlChange);
135
136 ui_init();
137}
void HandleAfterTouchPoly(byte channel, byte note, byte pressure)
void HandleAfterTouchChannel(byte channel, byte pressure)
void HandleNoteOff(byte channel, byte midi_note, byte velocity)
void HandleNoteOn(byte channel, byte midi_note, byte velocity)
void HandleControlChange(byte channel, byte d1, byte d2)
#define FL_DBG
Definition log.h:388
#define MIDI_CHANNEL_OMNI
Definition midi_Defs.h:43
#define Serial
Definition serial.h:304
void ui_init()
Definition ui_state.cpp:54

References FL_DBG, HandleAfterTouchChannel(), HandleAfterTouchPoly(), HandleControlChange(), HandleNoteOff(), HandleNoteOn(), MIDI_CHANNEL_OMNI, Serial, and ui_init().

+ Here is the call graph for this function: