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

Method SyncLoopLengths

Source/LooperRecorder.cpp:471–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void LooperRecorder::SyncLoopLengths()
472{
473 if (mSpeed <= 0) //avoid crashing
474 return;
475
476 for (int i = 0; i < mLoopers.size(); ++i)
477 {
478 if (mLoopers[i])
479 {
480 if (mSpeed != 1)
481 mLoopers[i]->ResampleForSpeed(mLoopers[i]->GetPlaybackSpeed());
482 mLoopers[i]->RecalcLoopLength();
483 }
484 }
485
486 mBaseTempo = TheTransport->GetTempo();
487}
488
489void LooperRecorder::Commit(Looper* looper)
490{

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.80
ResampleForSpeedMethod · 0.80
GetPlaybackSpeedMethod · 0.80
RecalcLoopLengthMethod · 0.80
GetTempoMethod · 0.45

Tested by

no test coverage detected