SynthLab SDK
SynthLab::JumpTable< T > Class Template Reference

A customized circular buffer for the wave sequencer object. This is identical to the CircularBuffer object in the FX plugin book. More...

#include <sequencer.h>

Public Member Functions

 JumpTable ()
 empty constructor
 
 ~JumpTable ()
 empty constructor
 
void flushBuffer ()
 flush jump table by resetting all values to 0.0
 
void reset ()
 reset the read-index to head of buffer
 
void createCircularBuffer (unsigned int _bufferLength)
 Create a buffer based on a target maximum in SAMPLES do NOT call from realtime audio thread; do this prior to any processing.
 
void createCircularBufferPowerOfTwo (unsigned int _bufferLengthPowerOfTwo)
 Create a buffer based on a target maximum in SAMPLESwhere the size is pre-calculated as a power of two.
 
void writeBuffer (uint32_t index, T input)
 write a value into the buffer; this overwrites the previous oldest value in the buffer
 
T readBufferCircular ()
 read output of delay line
 
T readBuffer (int index)
 read an arbitrary location that is index samples old
 

Detailed Description

template<typename T>
class SynthLab::JumpTable< T >

A customized circular buffer for the wave sequencer object. This is identical to the CircularBuffer object in the FX plugin book.

Author
Will Pirkle http://www.willpirkle.com
Remarks
This object is included and described in further detail in Designing Software Synthesizer Plugins in C++ 2nd Ed. by Will Pirkle
Version
Revision : 1.0
Date
Date : 2021 / 04 / 26

The documentation for this class was generated from the following file: