MCPcopy Create free account
hub / github.com/FastLED/FastLED / FundamentalNote

Function FundamentalNote

examples/LuminescentGrand/shared/util.cpp:14–16  ·  view source on GitHub ↗

// C - 0, C# - 1, D - 2, D# - 3... B - 11. // http://cote.cc/w/wp-content/uploads/drupal/blog/logic-midi-note-numbers.png */

Source from the content-addressed store, hash-verified

12// http://cote.cc/w/wp-content/uploads/drupal/blog/logic-midi-note-numbers.png
13*/
14uint8_t FundamentalNote(int midi_note) {
15 return midi_note % 12;
16}
17
18float mapf(float x, float in_min, float in_max, float out_min, float out_max) {
19 return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;

Callers 1

SelectColorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected