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

Method GetValue

Source/ModulationChain.cpp:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34float ModulationChain::GetValue(int samplesIn) const
35{
36 float value = GetIndividualValue(samplesIn);
37 if (mMultiplyIn)
38 value *= mMultiplyIn->GetIndividualValue(samplesIn);
39 if (mSidechain)
40 value += mSidechain->GetIndividualValue(samplesIn);
41 if (mPrev)
42 value += mPrev->GetValue(samplesIn);
43 if (std::isnan(value))
44 return 0;
45 return value;
46}
47
48float ModulationChain::GetIndividualValue(int samplesIn) const
49{

Callers

nothing calls this directly

Calls 1

GetIndividualValueMethod · 0.80

Tested by

no test coverage detected