SynthLab SDK
SynthLab::DynamicWavetable 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

 DynamicWavetable (std::shared_ptr< double > _table, uint32_t _tableLength, const char *_waveformName, double _outputComp=1.0, double _tableFs=44100)
 

Public Attributes

std::shared_ptr< double > table = nullptr
 the table (shared)
 
uint32_t tableLength = kDefaultWaveTableLength
 length
 
uint32_t wrapMask = kDefaultWaveTableLength - 1
 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
 

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 main 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 and referenced with naked pointers
  • dynamic tables are encoded with double values that are calculated at load time and referenced with shared pointers so that the dynamically gererated tables are disposed of properly
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: