Swadge 2024 2.0.0
APIs to develop games for the Magfest Swadge
Loading...
Searching...
No Matches
DFT32.h File Reference

Go to the source code of this file.

Data Structures

struct  dft32_data
 

Macros

#define APPROX_NORM   1
 
#define OCTAVES   5
 
#define FIX_B_PER_O   24
 
#define FIX_BINS   (FIX_B_PER_O * OCTAVES)
 
#define BIN_CYCLE   (1 << OCTAVES)
 
#define DFT_IIR   6
 

Functions

int SetupDFTProgressive32 (dft32_data *dd)
 TODO.
 
void UpdateBins32 (dft32_data *dd, const uint16_t *frequencies)
 TODO.
 
void PushSample32 (dft32_data *dd, int16_t dat)
 TODO.
 
void UpdateOutputBins32 (dft32_data *dd)
 TODO.
 

Data Structure Documentation

◆ dft32_data

struct dft32_data
Data Fields
uint16_t embeddedBins32[FIX_BINS]
uint8_t sDoneFirstRun
uint16_t sDatSpace32A[FIX_BINS *2]
int32_t sDatSpace32B[FIX_BINS *2]
int32_t sDatSpace32BOut[FIX_BINS *2]
uint8_t Sdo_this_octave[BIN_CYCLE]
int32_t sAccum_octave_bins[OCTAVES]
uint8_t sWhichOctavePlace
uint16_t embeddedBins[FIX_BINS]

Macro Definition Documentation

◆ APPROX_NORM

#define APPROX_NORM   1

◆ OCTAVES

#define OCTAVES   5

◆ FIX_B_PER_O

#define FIX_B_PER_O   24

◆ FIX_BINS

#define FIX_BINS   (FIX_B_PER_O * OCTAVES)

◆ BIN_CYCLE

#define BIN_CYCLE   (1 << OCTAVES)

◆ DFT_IIR

#define DFT_IIR   6

Function Documentation

◆ SetupDFTProgressive32()

int SetupDFTProgressive32 ( dft32_data * dd)

TODO.

Parameters
dd
Returns
int

◆ UpdateBins32()

void UpdateBins32 ( dft32_data * dd,
const uint16_t * frequencies )

TODO.

Parameters
dd
frequencies

◆ PushSample32()

void PushSample32 ( dft32_data * dd,
int16_t dat )

TODO.

Parameters
dd
dat

◆ UpdateOutputBins32()

void UpdateOutputBins32 ( dft32_data * dd)

TODO.

Parameters
dd