MCPcopy Create free account
hub / github.com/GuitarML/NeuralPi / set

Method set

Source/Delay.h:46–51  ·  view source on GitHub ↗

Set the specified sample in the delay line */

Source from the content-addressed store, hash-verified

44
45 /** Set the specified sample in the delay line */
46 void set (size_t delayInSamples, Type newValue) noexcept
47 {
48 jassert (delayInSamples >= 0 && delayInSamples < size());
49
50 rawData[(leastRecentIndex + 1 + delayInSamples) % size()] = newValue; // [4]
51 }
52
53 /** Adds a new value to the delay line, overwriting the least recently added sample */
54 void push (Type valueToAdd) noexcept

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected