Loading...
Searching...
No Matches

Detailed Description

Periodic samples, independent of a synthesizer's playback caches. Contiguous frames of equal length (2 to maxFrameSize samples, at most maxFrames frames and maxSamples samples in all), each holding distinct phase samples: the closing endpoint is implicit, the frame wraps. Amplitude is bipolar [-1, 1]. This form allocates and belongs to the UI thread; the execution side reads the port value in place, see prepareWaveform.

Public Member Functions

std::size_t frameCount () const noexcept
 
std::span< const float > frame (std::size_t index) const noexcept
 
bool valid () const noexcept
 
bool operator== (const WavetableData &) const =default
 

Public Attributes

std::size_t frameSize {}
 
std::vector< float > samples
 

Static Public Attributes

static constexpr std::size_t maxFrameSize = 65536
 
static constexpr std::size_t maxFrames = 256
 
static constexpr std::size_t maxSamples = 1048576
 

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