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

Method SetGridColor

Source/LinnstrumentControl.cpp:139–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139void LinnstrumentControl::SetGridColor(int x, int y, LinnstrumentColor color, bool ignoreRow /*= false*/)
140{
141 if (x < kCols && y < kRows)
142 {
143 if (color != mGridColorState[x + y * kCols])
144 {
145 if (!ignoreRow)
146 mDevice.SendCC(21, y);
147 mDevice.SendCC(20, x + 1);
148 mDevice.SendCC(22, color);
149 mGridColorState[x + y * kCols] = color;
150 }
151 }
152}
153
154LinnstrumentControl::LinnstrumentColor LinnstrumentControl::GetDesiredGridColor(int x, int y)
155{

Callers

nothing calls this directly

Calls 1

SendCCMethod · 0.45

Tested by

no test coverage detected