| 90 | } |
| 91 | |
| 92 | void 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 | |
| 106 | void GridModule::PlayNote(double time, int pitch, int velocity, int voiceIdx, ModulationParameters modulation) |
| 107 | { |
nothing calls this directly
no test coverage detected