SoundFontInfoLib
2.21.6
Library for parsing and rendering SF2 files
|
Namespace for compile-time generated tables. More...
Classes | |
struct | Generator |
Table value generators and initializers. More... | |
struct | PanLookup |
Lookup tables for SF2 pan values, where -500 means only left-channel, and +500 means only right channel. More... | |
struct | SineLookup |
Estimate std::sin() value using a table of pre-calculated sin values and linear interpolation. More... | |
struct | CentsFrequencyLookup |
Convert cent into frequency multiplier using a table lookup. More... | |
struct | CentsPartialLookup |
Convert cents to frequency. More... | |
struct | AttenuationLookup |
Convert centibels into attenuation via table lookup. More... | |
struct | GainLookup |
Convert centibels into gain value (same as 1.0 / attenuation) More... | |
struct | Cubic4thOrder |
Interpolation using a cubic 4th-order polynomial. More... | |
Namespace for compile-time generated tables.
Each table is encapsulated in a struct
that has three components:
TableSize
definition that states how many entries are in the table (all tables hold Float
values).lookup_
class attribute that declares the lookup tablevalue
class method that returns the Float
value to store at a given table indexAll structs also include a class method that performs a lookup for a given value. However, this is not used by the table generating infrastructure.