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

Method SetNumMeasures

Source/NoteLooper.cpp:376–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374}
375
376void NoteLooper::SetNumMeasures(int numMeasures)
377{
378 mNumMeasures = numMeasures;
379 mCanvas->SetLength(mNumMeasures);
380 mCanvas->SetNumCols(TheTransport->CountInStandardMeasure(kInterval_8n) * mNumMeasures);
381 mCanvas->SetMajorColumnInterval(TheTransport->CountInStandardMeasure(kInterval_8n));
382 mCanvas->mViewStart = 0;
383 mCanvas->mViewEnd = mNumMeasures;
384 mCanvas->mLoopStart = 0;
385 mCanvas->mLoopEnd = mNumMeasures;
386}
387
388void NoteLooper::DropdownUpdated(DropdownList* list, int oldVal, double time)
389{

Callers 1

OnMidiControlMethod · 0.45

Calls 4

SetNumColsMethod · 0.80
SetLengthMethod · 0.45

Tested by

no test coverage detected