|
FastLED 3.10.6
|
HydroPack: stage-level musical bass animates an LED < | > layout.
Definition in file hydropack.ino.
#include <Arduino.h>#include <FastLED.h>#include "fl/math/math.h"#include "fl/stl/static_assert.h"#include "fl/ui/ui.h"
Include dependency graph for hydropack.ino:Go to the source code of this file.
Macros | |
| #define | I2S_CLK 4 |
| #define | I2S_SD 8 |
| #define | I2S_WS 7 |
| #define | PIN_PREVIEW 3 |
Functions | |
| void | advanceDoubleEnvelope (float &trigger, float &stage, float &level, float attackSeconds, float decaySeconds, float deltaSeconds) |
| float | advanceLinearFade (float value, float target, float durationSeconds, float deltaSeconds) |
| float | applyAttackDecay (float value, float target, float attackSeconds, float decaySeconds, float deltaSeconds) |
| fl::UIDescription | description ("The INMP441 sound-pressure gate warms up for two seconds of confident " "beats before arming music mode. Conversation and one-off noise stay " "dark; musical bass " "fires the center, with stronger hits launching to both triangles.") |
| void | fireAnalyzer (float bass, float threshold, float minIntensity, float &trigger) |
| FL_STATIC_ASSERT (sizeof(kHydroPackLedLayout)/sizeof(kHydroPackLedLayout[0])==kPreviewLedCount, "HydroPack screenmap must contain every preview LED") | |
| float | getVibeBeatConfidence (const fl::audio::detector::VibeLevels &levels) |
| bool | isMusicModeActive () |
| bool | isMusicPresent () |
| void | loop () |
| fl::ScreenMap | makePreviewMap () |
| void | renderPreview () |
| void | setup () |
| uint8_t | toByte (float value) |
| void | updateSoundLevel () |