MCPcopy Create free account
hub / github.com/LMMS/lmms / interpolate

Method interpolate

src/core/ValueBuffer.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void ValueBuffer::interpolate(float start, float end_)
38{
39 float i = 0;
40 std::generate(begin(), end(), [&]() {
41 return linearInterpolate( start, end_, i++ / length());
42 });
43}

Callers 2

valueBufferMethod · 0.45
updateValueBufferMethod · 0.45

Calls 2

linearInterpolateFunction · 0.85
lengthFunction · 0.50

Tested by

no test coverage detected