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

Method UpdateNumColumns

Source/EventCanvas.cpp:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194void EventCanvas::UpdateNumColumns()
195{
196 if (TheTransport->GetDuration(mInterval) < TheTransport->GetDuration(kInterval_1n))
197 {
198 mCanvas->RescaleNumCols(TheTransport->CountInStandardMeasure(mInterval) * mNumMeasures);
199 mCanvas->SetMajorColumnInterval(TheTransport->CountInStandardMeasure(mInterval) / 4);
200 }
201 else
202 {
203 mCanvas->RescaleNumCols(TheTransport->GetDuration(kInterval_1n) / TheTransport->GetDuration(mInterval) * mNumMeasures);
204 mCanvas->SetMajorColumnInterval(-1);
205 }
206}
207
208IUIControl* EventCanvas::GetUIControlForRow(int row)
209{

Callers

nothing calls this directly

Calls 4

GetDurationMethod · 0.80
RescaleNumColsMethod · 0.80

Tested by

no test coverage detected