MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / SetLightDirect

Method SetLightDirect

Source/GridController.cpp:186–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void GridControllerMidi::SetLightDirect(int x, int y, int color, bool force)
187{
188 if (mLights[x][y] != color || force)
189 {
190 if (mMidiController)
191 {
192 if (mMessageType == kMidiMessage_Note)
193 mMidiController->SendNote(mControllerPage, mControls[x][y], color);
194 else if (mMessageType == kMidiMessage_Control)
195 mMidiController->SendCC(mControllerPage, mControls[x][y], color);
196 }
197 mLights[x][y] = color;
198 }
199}
200
201void GridControllerMidi::ResetLights()
202{

Callers

nothing calls this directly

Calls 2

SendNoteMethod · 0.45
SendCCMethod · 0.45

Tested by

no test coverage detected