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

Method InitGrid

Source/SamplerGrid.cpp:175–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void SamplerGrid::InitGrid()
176{
177 delete[] mGridSamples;
178 mGridSamples = new GridSample[mRows * mCols];
179 for (int i = 0; i < mRows * mCols; ++i)
180 {
181 mGridSamples[i].mPlayhead = 0;
182 mGridSamples[i].mHasSample = false;
183 mGridSamples[i].mSampleLength = 0;
184 }
185
186 mGrid->SetGrid(mCols, mRows);
187}
188
189void SamplerGrid::GridUpdated(UIGrid* grid, int col, int row, float value, float oldValue)
190{

Callers

nothing calls this directly

Calls 1

SetGridMethod · 0.45

Tested by

no test coverage detected