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

Method BakeVolume

Source/Looper.cpp:874–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872}
873
874void Looper::BakeVolume()
875{
876 mUndoBuffer->CopyFrom(mBuffer, mLoopLength);
877 for (int ch = 0; ch < mBuffer->NumActiveChannels(); ++ch)
878 Mult(mBuffer->GetChannel(ch), mVol * mVol, mLoopLength);
879 mVol = 1;
880 mSmoothedVol = 1;
881 mWantBakeVolume = false;
882}
883
884void Looper::UpdateNumBars(int oldNumBars)
885{

Callers

nothing calls this directly

Calls 4

MultFunction · 0.85
NumActiveChannelsMethod · 0.80
GetChannelMethod · 0.80
CopyFromMethod · 0.45

Tested by

no test coverage detected