RingBuffer Op
Array of fixed size, index is automatically incremented and restarts after reaching the end
Summary (oneliner)
<p>See also <a href="https://en.wikipedia.org/wiki/Circular_buffer">wikipedia.org/wiki/Circular_buffer</a>.</p>
- Ops.Array.RingBuffer
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch ringbuffer
INPUT PORTS
<p>The value to add</p>
<p>Writes the value to the array</p>
<i>integer</i>
)<p>The length of the array</p>
<p>Resets the index, so the next time <code>Write</code> is triggered it will write to the beginning of the buffer</p>
OUTPUT PORTS
<p>The output array</p>
<p>The index of the last element which has been written to the buffer</p>