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

Method OnGridButton

Source/BufferShuffler.cpp:442–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void BufferShuffler::OnGridButton(int x, int y, float velocity, IGridController* grid)
443{
444 if (velocity > 0)
445 {
446 int index = x + y * mGridControlTarget->GetGridController()->NumCols();
447 if (index >= 0 && index < GetNumSlices())
448 PlayOneShot(index);
449 }
450}
451
452void BufferShuffler::UpdateGridControllerLights(bool force)
453{

Callers

nothing calls this directly

Calls 2

GetGridControllerMethod · 0.80
NumColsMethod · 0.45

Tested by

no test coverage detected