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

Method OnGridButton

Source/GridModule.cpp:92–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void GridModule::OnGridButton(int x, int y, float velocity, IGridController* grid)
93{
94 if (y < GetRows() && x < GetCols())
95 {
96 for (auto listener : mScriptListeners)
97 listener->RunCode(gTime, "on_grid_button(" + ofToString(x) + ", " + ofToString(y) + ", " + ofToString(velocity) + ")");
98
99 if (mGridControllerOwner)
100 mGridControllerOwner->OnGridButton(x, y, velocity, this);
101 }
102
103 UpdateLights();
104}
105
106void GridModule::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation)
107{

Callers

nothing calls this directly

Calls 2

ofToStringFunction · 0.85
RunCodeMethod · 0.80

Tested by

no test coverage detected