SynthLab SDK
SynthLab::StaticWavetable Struct Reference

Structure for holding information about a static wavetable, that is read from a static location, either compiled into the synth as a resource, or from a binary data file at startup time. More...

#include <synthbase.h>

Public Member Functions

 StaticWavetable (const uint64_t *_table, uint32_t _tableLength, const char *_waveformName, double _outputComp=1.0, double _tableFs=44100)
 
 StaticWavetable (const double *_table, uint32_t _tableLength, const char *_waveformName, double _outputComp=1.0, double _tableFs=44100)
 

Public Attributes

const uint64_t * uTable
 table of 64-bit HEX values
 
const double * dTable
 table of 64-bit doubles
 
uint32_t tableLength = kDefaultWaveTableLength
 length
 
uint32_t wrapMask = kDefaultWaveTableLength - 1
 wrapping mask = length - 1
 
double outputComp = 1.0
 output scaling factor (NOT volume or attenuation, waveform specific)
 
double tableFs = 44100.0
 
const char * waveformName
 waveform name string
 

Detailed Description

Structure for holding information about a static wavetable, that is read from a static location, either compiled into the synth as a resource, or from a binary data file at startup time.

  • the only real difference between static and dynamic wavetables as far as this structure is concerned is that static tables may be encoded as 64-bit HEX data OR as doubles whereas dynamic tables are encoded with double values that are calculated at load time
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 struct was generated from the following file: