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

Go to the source code of this file.

Data Structures

struct  embeddedNf_data
 

Macros

#define USE_32DFT
 
#define BASE_FREQ   55.0
 
#define FUZZ_IIR_BITS   1
 
#define MAX_NOTES   12
 
#define FILTER_BLUR_PASSES   2
 
#define SEMI_BITS_PER_BIN   3
 
#define NOTE_RANGE   ((1 << SEMI_BITS_PER_BIN) * FIX_B_PER_O)
 
#define MAX_JUMP_DISTANCE   4
 
#define MAX_COMBINE_DISTANCE   7
 
#define AMP_1_IIR_BITS   4
 
#define AMP_2_IIR_BITS   2
 
#define MIN_AMP_FOR_NOTE   80
 
#define MINIMUM_AMP_FOR_NOTE_TO_DISAPPEAR   64
 
#define PRECOMPUTE_FREQUENCY_TABLE
 

Functions

void UpdateFrequencies (dft32_data *dd)
 TODO.
 
void HandleFrameInfo (embeddedNf_data *ed, dft32_data *dd)
 TODO.
 
void InitColorChord (embeddedNf_data *ed, dft32_data *dd)
 

Data Structure Documentation

◆ embeddedNf_data

struct embeddedNf_data
Data Fields
uint16_t folded_bins[FIX_B_PER_O]
uint16_t fuzzed_bins[FIX_BINS]
uint8_t note_peak_frequencies[MAX_NOTES]
uint16_t note_peak_amps[MAX_NOTES]
uint16_t note_peak_amps2[MAX_NOTES]
uint8_t note_jumped_to[MAX_NOTES]

Macro Definition Documentation

◆ USE_32DFT

#define USE_32DFT

◆ BASE_FREQ

#define BASE_FREQ   55.0

◆ FUZZ_IIR_BITS

#define FUZZ_IIR_BITS   1

◆ MAX_NOTES

#define MAX_NOTES   12

◆ FILTER_BLUR_PASSES

#define FILTER_BLUR_PASSES   2

◆ SEMI_BITS_PER_BIN

#define SEMI_BITS_PER_BIN   3

◆ NOTE_RANGE

#define NOTE_RANGE   ((1 << SEMI_BITS_PER_BIN) * FIX_B_PER_O)

◆ MAX_JUMP_DISTANCE

#define MAX_JUMP_DISTANCE   4

◆ MAX_COMBINE_DISTANCE

#define MAX_COMBINE_DISTANCE   7

◆ AMP_1_IIR_BITS

#define AMP_1_IIR_BITS   4

◆ AMP_2_IIR_BITS

#define AMP_2_IIR_BITS   2

◆ MIN_AMP_FOR_NOTE

#define MIN_AMP_FOR_NOTE   80

◆ MINIMUM_AMP_FOR_NOTE_TO_DISAPPEAR

#define MINIMUM_AMP_FOR_NOTE_TO_DISAPPEAR   64

◆ PRECOMPUTE_FREQUENCY_TABLE

#define PRECOMPUTE_FREQUENCY_TABLE

Function Documentation

◆ UpdateFrequencies()

void UpdateFrequencies ( dft32_data * dd)

TODO.

Parameters
dd

◆ HandleFrameInfo()

void HandleFrameInfo ( embeddedNf_data * ed,
dft32_data * dd )

TODO.

Parameters
ed
dd

◆ InitColorChord()

void InitColorChord ( embeddedNf_data * ed,
dft32_data * dd )