FastLED 3.9.15
Loading...
Searching...
No Matches

◆ SelectColor()

const ColorHSV SelectColor ( int midi_note,
float brightness,
int color_selector_val )

Definition at line 166 of file color_mapper.cpp.

166 {
167 const uint8_t fun_note = FundamentalNote(midi_note);
168 const ColorScheme& color_scheme = SelectColorScheme(color_selector_val);
169 ColorHSV color = color_scheme.data[fun_note];
170 color.v_ = brightness;
171 return color;
172}
UISlider brightness("Brightness", 255, 0, 255, 1)
const ColorScheme & SelectColorScheme(int indx)
float v_
Definition color.h:98
ColorHSV data[12]
uint8_t FundamentalNote(int midi_note)
Definition util.cpp:13

References brightness, ColorScheme::data, FundamentalNote(), SelectColorScheme(), and ColorHSV::v_.

Referenced by KeyboardState::HandleNoteOn().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: