SynthLab SDK
SynthLab::SynthLabTableSet Struct Reference

This structure defines a set of wavetables that are usually found in .h files and compiled into the synth. This structure is used specifically with wavetables that are made with RackAFX-TableMaker utility functions, that can encode tables in hex format for storage without needing fractional decimal representation. More...

#include <synthbase.h>

Public Member Functions

 SynthLabTableSet (const char *_waveformName, double _tableFs, uint32_t *_tableLengths, uint64_t **_ppHexTableSet, double _outputComp)
 

Public Attributes

uint32_t * tableLengths = nullptr
 pointers to lengths of each of the hex encoded tables
 
uint64_t ** ppHexTableSet = nullptr
 pointers to sets of hex encoded tables
 
double tableFs = 44100.0
 
double outputComp = 1.0
 output scaling factor
 
const char * waveformName
 string for the GUI
 

Detailed Description

This structure defines a set of wavetables that are usually found in .h files and compiled into the synth. This structure is used specifically with wavetables that are made with RackAFX-TableMaker utility functions, that can encode tables in hex format for storage without needing fractional decimal representation.

  • the wavetable oscillator cores all use this format for storing their tables on the database
  • this is NOT REQUIRED as the database only deals with the source interface pointers, so your implementation details are not needed
  • this is just for registering the tables at initialization time, and is not used afterward
  • this is for example only - feel free to encode and store tables however you wish
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: