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

Method SetUp

Source/GridController.cpp:212–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void GridControllerMidi::SetUp(GridLayout* layout, int page, MidiController* controller)
213{
214 mRows = layout->mRows;
215 mCols = layout->mCols;
216 for (unsigned int row = 0; row < mRows; ++row)
217 {
218 for (unsigned int col = 0; col < mCols; ++col)
219 {
220 int index = col + row * mCols;
221 mControls[col][row] = layout->mControls[index];
222 }
223 }
224
225 mColors = layout->mColors;
226
227 mMessageType = layout->mType;
228
229 mMidiController = controller;
230 mControllerPage = page;
231
232 OnControllerPageSelected();
233}
234
235void GridControllerMidi::UnhookController()
236{

Callers 1

PostRepatchMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected