25int advanced_size = 20;
30unsigned long microseconds;
46 const char *pattern_name;
59 { 0,
"None",
true, blank},
60 { 1,
"Pixel Frequency",
true,
pix_freq},
64 { 5,
"Groovy",
true,
groovy},
66 { 7,
"Glitch",
true,
glitch},
67 { 8,
"Bands",
true,
bands},
68 { 9,
"Equalizer",
true,
eq},
73 { 14,
"Vowel Rain Drop",
true, vowels_raindrop},
int F1arr[20]
Used for smoothing (old) formant processing.
Definition globals.h:28
unsigned int sampling_period_us
Audio sampling period.
Definition globals.h:26
int F2arr[20]
Used for smoothing (old) formant processing.
Definition globals.h:29
double vReal[SAMPLES]
Definition globals.h:31
double fbs[5]
Definition globals.h:23
double maxDelt
Definition globals.h:35
int NUM_PATTERNS
The number of patterns that can be shown, externed from globals.h.
Definition globals.h:75
Pattern mainPatterns[]
The current list of patterns, externed from globals.h.
Definition globals.h:58
double delt[SAMPLES]
Definition globals.h:34
double vImag[SAMPLES]
Imaginary component of vReal. Unused.
Definition globals.h:32
double vRealHist[SAMPLES]
Last state of the vReal array.
Definition globals.h:33
int formant_pose
Used for smoothing (old) formant processing.
Definition globals.h:19
int F0arr[20]
Used for smoothing (old) formant processing.
Definition globals.h:27
double formants[3]
Global formant array, used for accessing.
Definition globals.h:20
void pix_freq(Strip_Buffer *buf, int len, Pattern_Data *params)
Based on a sufficient volume, a pixel will float to some position on the light strip and fall down (v...
Definition patterns.cpp:101
void bar_fill(Strip_Buffer *buf, int len, Pattern_Data *params)
Displays a pattern that occupies "lower" pixels at lower values, and "higher" pixels at higher values...
Definition patterns.cpp:792
void tug_of_war(Strip_Buffer *buf, int len, Pattern_Data *params)
Strip is split into two sides, red and blue showing push and pull motion based on either frequency or...
Definition patterns.cpp:657
void bands(Strip_Buffer *buf, int len, Pattern_Data *params)
Basic band config : Uses the band_split_bounce() function to generate a five band split,...
Definition patterns.cpp:411
void confetti(Strip_Buffer *buf, int len, Pattern_Data *params)
Confetti effect using frequency and brightness. Colored speckles that blink and fade smoothly are sca...
Definition patterns.cpp:134
void talking(Strip_Buffer *buf, int len, Pattern_Data *params)
Generates three clusters of lights, one in the middle, and two symmetric ones that travel out from th...
Definition patterns.cpp:285
void hue_trail(Strip_Buffer *buf, int len, Pattern_Data *params)
Outputs a steady moving stream of lights where each pixel correlates to a previous fHue value....
Definition patterns.cpp:152
void groovy(Strip_Buffer *buf, int len, Pattern_Data *params)
A cool fluctuating pattern that changes color in waves of greens, yellows, purples and blue....
Definition patterns.cpp:242
void random_raindrop(Strip_Buffer *buf, int len, Pattern_Data *params)
A random spot is chosen along the length and does a ripple based on frequency.
Definition patterns.cpp:638
void glitch(Strip_Buffer *buf, int len, Pattern_Data *params)
Creates two light clusters that move according to sine wave motion, but their speed is affected by th...
Definition patterns.cpp:341
void Fire2012(Strip_Buffer *buf, int len, Pattern_Data *params)
Fire2012 pattern utilizing heating and cooling.
Definition patterns.cpp:700
void eq(Strip_Buffer *buf, int len, Pattern_Data *params)
Short and sweet function. Each pixel corresponds to a value from vReal, where the volume at each pitc...
Definition patterns.cpp:623
void saturated(Strip_Buffer *buf, int len, Pattern_Data *params)
Fills the light strip with a nice ambient mess of colors that shift slowly over time....
Definition patterns.cpp:197
Holds persistent data for currently-running patterns.
Definition patterns.h:28