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

Method FillModulationBuffer

Source/UnstablePressure.cpp:163–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void UnstablePressure::FillModulationBuffer(double time, int voiceIdx)
164{
165 for (int i = 0; i < gBufferSize; ++i)
166 gWorkBuffer[i] = ofMap(mPerlin.GetValue(time + i * gInvSampleRateMs, (time + i * gInvSampleRateMs) / 1000, voiceIdx), 0, 1, 0, mPerlin.mPerlinAmount);
167
168 mModulation.GetPressure(voiceIdx)->FillBuffer(gWorkBuffer);
169}
170
171void UnstablePressure::FloatSliderUpdated(FloatSlider* slider, float oldVal, double time)
172{

Callers

nothing calls this directly

Calls 4

ofMapFunction · 0.85
FillBufferMethod · 0.80
GetValueMethod · 0.45
GetPressureMethod · 0.45

Tested by

no test coverage detected