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

Method FitNotes

Source/NoteCanvas.cpp:305–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

303}
304
305void NoteCanvas::FitNotes()
306{
307 float latest = 0.0;
308 for (auto* element : mCanvas->GetElements())
309 {
310 if (element->GetEnd() > latest)
311 latest = element->GetEnd();
312 }
313 SetNumMeasures(static_cast<int>(std::ceil(latest)));
314}
315
316void NoteCanvas::CanvasUpdated(Canvas* canvas)
317{

Callers

nothing calls this directly

Calls 1

GetEndMethod · 0.80

Tested by

no test coverage detected