19#include "AudioPrism.h"
30bool percussionPresent =
false;
31int advanced_size = 20;
32unsigned int sampling_period_us = round(1000000 / SAMPLING_FREQUENCY);
36unsigned long microseconds;
39double vRealHist[SAMPLES];
40float audioPrismInput[SAMPLES];
41extern Spectrogram fftHistory;
56 const char *pattern_name;
69 { 0,
"None",
true, blank},
70 { 1,
"Equalizer",
true,
eq},
71 { 2,
"Bands",
true,
bands},
75 { 6,
"Pixel Frequency",
true,
pix_freq},
79 { 10,
"Groovy",
true,
groovy},
80 { 11,
"Talking",
true,
talking},
81 { 12,
"Glitch",
true,
glitch},
84 { 15,
"Blend In",
true,
blendIn},
87 { 18,
"Note EQ",
true,
noteEQ},
AudioAnalysis audioAnalysis
External reference to the AudioAnalysis instance.
Definition globals.h:45
Handles audio signal processing and feature extraction.
Definition audio_analysis.h:38
int NUM_PATTERNS
The number of patterns that can be shown, externed from globals.h.
Definition globals.h:90
Pattern mainPatterns[]
The current list of patterns, externed from globals.h.
Definition globals.h:68
void splashTheory(Strip_Buffer *buf, int len, Pattern_Data *params)
Maps the LED strip to volume. The starting position is based on the volume of the sampled audio....
Definition patterns.cpp:1066
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:108
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:742
void noteEQ(Strip_Buffer *buf, int len, Pattern_Data *params)
Maps the current note to a section on the led strip.
Definition patterns.cpp:953
void blendIn(Strip_Buffer *buf, int len, Pattern_Data *params)
Maps the LED strip to the different frequencies, and each LED blends between two different colors bas...
Definition patterns.cpp:800
void synesthesiaRolling(Strip_Buffer *buf, int len, Pattern_Data *params)
Maps the current note to a color.
Definition patterns.cpp:904
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:397
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:143
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:297
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:161
void deltaHeat(Strip_Buffer *buf, int len, Pattern_Data *params)
Maps the LED strip to frequencies. Creates a heatmap, where frequencies that have had drastic/continu...
Definition patterns.cpp:1126
void bleedThrough(Strip_Buffer *buf, int len, Pattern_Data *params)
A color blended between a base and transitioning color is sent down the LED strip....
Definition patterns.cpp:850
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:253
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:665
void stringTheory(Strip_Buffer *buf, int len, Pattern_Data *params)
Maps the LED strip to a string on a violin. The color changes based on which string of the violin is ...
Definition patterns.cpp:1032
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:339
void Fire2012(Strip_Buffer *buf, int len, Pattern_Data *params)
Fire2012 pattern utilizing heating and cooling.
Definition patterns.cpp:683
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:567
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:206
Holds persistent data for currently-running patterns.
Definition patterns.h:28