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

Method Commit

Source/Looper.cpp:966–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

964}
965
966void Looper::Commit(RollingBuffer* commitBuffer, bool replaceOnCommit, float offsetMs)
967{
968 if (mRecorder)
969 {
970 mRecorder->ResetSpeed();
971 mLastCommit = mRecorder->IncreaseCommitCount();
972 }
973 BakeVolume();
974
975 mLastCommitTime = gTime;
976 mLoopCount = 0;
977
978 mLoopPosOffset = 0;
979 mLoopPosOffsetSlider->DisableLFO();
980 mAllowScratch = false;
981 mScratchSpeed = 1;
982 mFourTet = 0;
983 mPitchShift = 1;
984 if (mGranulator)
985 mGranulator->OnCommit();
986
987 mCommitBuffer = commitBuffer;
988 mReplaceOnCommit = replaceOnCommit;
989 mCommitMsOffset = offsetMs;
990}
991
992void Looper::SetMute(double time, bool mute)
993{

Callers 2

GoMethod · 0.45
ButtonClickedMethod · 0.45

Calls 4

ResetSpeedMethod · 0.80
IncreaseCommitCountMethod · 0.80
DisableLFOMethod · 0.80
OnCommitMethod · 0.80

Tested by

no test coverage detected