37 #pragma mark - Pattern Types
133 LRFPatternMode mode:4;
158 LRFPatternStruct pattern;
164 #pragma mark - Sound Types
189 } __attribute__ ((packed))
LRFNote;
278 LRFDuration duration:3;
286 #define LRFSoundStruct_Blank {LRFNote_NULL,0,0,0,0}
309 LRFSoundStruct sound;
311 } __attribute__ ((packed))
LRFSound;
314 typedef
void (*LRFFunctionPtr)(
void);
318 #pragma mark - Lookup Functions
382 bool lrf_utils_is_holiday_hardware(
void);
Falling tone (sad or upset)
LRFColor
Constants for looking up color values stored in program memory (PROGMEM)
LRFDuration
Constants for fixed note durations based on musical timingWe found that a short list of fixed duratio...
Only use starting color with no change.
LRFIntonation
Constants for speech intonation (or pitch bend)
void lrf_utils_color_lookup(LRFColor color, LRFColorValue *value)
Utility for looking up LRFColorValue data from LRFColor constant.
Dipping tone (tone dips, then returns to normal)
Allows for access of sound data as a structure or raw integer.
Random start and target colours with toggle effect.
Peaking tone (tone rises, then returns to normal)
Fade from start to target then back to start.
Use starting colour, flip start and target on reset pattern.
Random start and target colours with flat effect.
Left=starting, Right=target, fade.
Random start and target colours with fade effect.
Random start and target colours with boomerang effect.
Left=starting, right=target, fade to opposite and back.
Catching undefined notes.
Left=starting, Right=target, fade and flip on reset.
Structure for driving expressive robot sounds.
Fade from start to target, flip on reset.
lowest possible octave (some notes are unplayable)
LRFNote
Constants for notes in the musical scale.
unsigned char blue
Blue value (8-bits)
Data structure for holding RGB color values.
A (55 hertz at octave #1)
LRFPatternMode
Predefined pattern animations.
Left=starting color, Right=target color, flip on reset.
void lrf_utils_color_lookup_random(LRFColorValue *value)
Utility for generating a random LRFColorValue.
unsigned int lrf_utils_note_to_frequency(LRFNote note, LRFOctave octave)
Utility for looking up frequency values from LRFNote and LRFOctave constants.
Fade from start to target.
unsigned char green
Green value (8-bits)
Base * 64 (quad whole note)
Allows for access of pattern data as a structure or raw integer.
Structure for driving LED light patterns.
LRFOctave
Constants for octaves in the musical scale.
Rising tone (happy or excited)
unsigned int lrf_utils_duration_lookup(LRFDuration duration)
Utility for looking up duration values (in milliseconds) from a LRFDuration constant.
unsigned char red
Red value (8-bits)
Base * 32 (double whole note)