🍑 nectarine
Audio synthesis tools for C23
Loading...
Searching...
No Matches
nec_wt Struct Reference

Data Fields

size_t mipmap_count
 How many mip-map levels there are in this wavetable.
size_t variant_count
 How many different wave shape variants exist in this wavetable that can be morphed between.
size_t sample_count
 How many samples each wave shape variant is made of.
float data []
 The actual wavetable data.

Field Documentation

◆ data

float nec_wt::data[]

The actual wavetable data.

A pointer to this member can be cast to the type float (*)[mipmap_count][variant_count][sample_count] to get correct multidimensional indexing.

◆ mipmap_count

size_t nec_wt::mipmap_count

How many mip-map levels there are in this wavetable.

As frequency increases, high-frequency harmonics are filtered out more aggressively.

◆ variant_count

size_t nec_wt::variant_count

How many different wave shape variants exist in this wavetable that can be morphed between.

This is generally what users think a "wavetable" is.


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