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

Method Process

Source/JumpBlender.cpp:54–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54float JumpBlender::Process(float sample, int samplesIn)
55{
56 if (mBlendSample == JUMP_BLEND_SAMPLES)
57 mBlending = false;
58
59 if (!mBlending)
60 return sample;
61
62 float rampVal = mRamp.Value(gTime + samplesIn * gInvSampleRateMs);
63 return sample * (1 - rampVal) + mSamples[mBlendSample++] * rampVal;
64}

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected