LCOV - code coverage report
Current view: top level - src/MIDI_Constants - MCUNameFromNoteNumber.cpp (source / functions) Hit Total Coverage
Test: 90a1b9beff85a60dc6ebcea034a947a845e56960 Lines: 6 6 100.0 %
Date: 2019-11-30 15:53:32 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : 
       2             : // =============== AUTOMATICALLY GENERATED FILE: DO NOT EDIT! =============== //
       3             : //                                                                            //
       4             : // Edit MCUNameFromNoteNumber.py instead.                                     //
       5             : 
       6             : #include "MCUNameFromNoteNumber.hpp"
       7             : 
       8             : const static char flashstr_0x00[] PROGMEM = "REC_RDY_1";
       9             : const static char flashstr_0x01[] PROGMEM = "REC_RDY_2";
      10             : const static char flashstr_0x02[] PROGMEM = "REC_RDY_3";
      11             : const static char flashstr_0x03[] PROGMEM = "REC_RDY_4";
      12             : const static char flashstr_0x04[] PROGMEM = "REC_RDY_5";
      13             : const static char flashstr_0x05[] PROGMEM = "REC_RDY_6";
      14             : const static char flashstr_0x06[] PROGMEM = "REC_RDY_7";
      15             : const static char flashstr_0x07[] PROGMEM = "REC_RDY_8";
      16             : const static char flashstr_0x08[] PROGMEM = "SOLO_1";
      17             : const static char flashstr_0x09[] PROGMEM = "SOLO_2";
      18             : const static char flashstr_0x0A[] PROGMEM = "SOLO_3";
      19             : const static char flashstr_0x0B[] PROGMEM = "SOLO_4";
      20             : const static char flashstr_0x0C[] PROGMEM = "SOLO_5";
      21             : const static char flashstr_0x0D[] PROGMEM = "SOLO_6";
      22             : const static char flashstr_0x0E[] PROGMEM = "SOLO_7";
      23             : const static char flashstr_0x0F[] PROGMEM = "SOLO_8";
      24             : const static char flashstr_0x10[] PROGMEM = "MUTE_1";
      25             : const static char flashstr_0x11[] PROGMEM = "MUTE_2";
      26             : const static char flashstr_0x12[] PROGMEM = "MUTE_3";
      27             : const static char flashstr_0x13[] PROGMEM = "MUTE_4";
      28             : const static char flashstr_0x14[] PROGMEM = "MUTE_5";
      29             : const static char flashstr_0x15[] PROGMEM = "MUTE_6";
      30             : const static char flashstr_0x16[] PROGMEM = "MUTE_7";
      31             : const static char flashstr_0x17[] PROGMEM = "MUTE_8";
      32             : const static char flashstr_0x18[] PROGMEM = "SELECT_1";
      33             : const static char flashstr_0x19[] PROGMEM = "SELECT_2";
      34             : const static char flashstr_0x1A[] PROGMEM = "SELECT_3";
      35             : const static char flashstr_0x1B[] PROGMEM = "SELECT_4";
      36             : const static char flashstr_0x1C[] PROGMEM = "SELECT_5";
      37             : const static char flashstr_0x1D[] PROGMEM = "SELECT_6";
      38             : const static char flashstr_0x1E[] PROGMEM = "SELECT_7";
      39             : const static char flashstr_0x1F[] PROGMEM = "SELECT_8";
      40             : const static char flashstr_0x20[] PROGMEM = "V_POT_SELECT_1";
      41             : const static char flashstr_0x21[] PROGMEM = "V_POT_SELECT_2";
      42             : const static char flashstr_0x22[] PROGMEM = "V_POT_SELECT_3";
      43             : const static char flashstr_0x23[] PROGMEM = "V_POT_SELECT_4";
      44             : const static char flashstr_0x24[] PROGMEM = "V_POT_SELECT_5";
      45             : const static char flashstr_0x25[] PROGMEM = "V_POT_SELECT_6";
      46             : const static char flashstr_0x26[] PROGMEM = "V_POT_SELECT_7";
      47             : const static char flashstr_0x27[] PROGMEM = "V_POT_SELECT_8";
      48             : const static char flashstr_0x28[] PROGMEM = "ASSIGN_TRACK";
      49             : const static char flashstr_0x29[] PROGMEM = "ASSIGN_SEND";
      50             : const static char flashstr_0x2A[] PROGMEM = "ASSIGN_PAN";
      51             : const static char flashstr_0x2B[] PROGMEM = "ASSIGN_PLUGIN";
      52             : const static char flashstr_0x2C[] PROGMEM = "ASSIGN_EQ";
      53             : const static char flashstr_0x2D[] PROGMEM = "ASSIGN_INSTR";
      54             : const static char flashstr_0x2E[] PROGMEM = "BANK_LEFT";
      55             : const static char flashstr_0x2F[] PROGMEM = "BANK_RIGHT";
      56             : const static char flashstr_0x30[] PROGMEM = "CHANNEL_LEFT";
      57             : const static char flashstr_0x31[] PROGMEM = "CHANNEL_RIGHT";
      58             : const static char flashstr_0x32[] PROGMEM = "FLIP";
      59             : const static char flashstr_0x33[] PROGMEM = "GLOBAL_VIEW";
      60             : const static char flashstr_0x34[] PROGMEM = "NAME_VALUE";
      61             : const static char flashstr_0x35[] PROGMEM = "SMPTE_BEATS";
      62             : const static char flashstr_0x36[] PROGMEM = "F1";
      63             : const static char flashstr_0x37[] PROGMEM = "F2";
      64             : const static char flashstr_0x38[] PROGMEM = "F3";
      65             : const static char flashstr_0x39[] PROGMEM = "F4";
      66             : const static char flashstr_0x3A[] PROGMEM = "F5";
      67             : const static char flashstr_0x3B[] PROGMEM = "F6";
      68             : const static char flashstr_0x3C[] PROGMEM = "F7";
      69             : const static char flashstr_0x3D[] PROGMEM = "F8";
      70             : const static char flashstr_0x3E[] PROGMEM = "VIEW_MIDI";
      71             : const static char flashstr_0x3F[] PROGMEM = "VIEW_INPUTS";
      72             : const static char flashstr_0x40[] PROGMEM = "VIEW_AUDIO";
      73             : const static char flashstr_0x41[] PROGMEM = "VIEW_INSTR";
      74             : const static char flashstr_0x42[] PROGMEM = "VIEW_AUX";
      75             : const static char flashstr_0x43[] PROGMEM = "VIEW_BUSSES";
      76             : const static char flashstr_0x44[] PROGMEM = "VIEW_OUTPUTS";
      77             : const static char flashstr_0x45[] PROGMEM = "VIEW_USER";
      78             : const static char flashstr_0x46[] PROGMEM = "SHIFT";
      79             : const static char flashstr_0x47[] PROGMEM = "OPTION";
      80             : const static char flashstr_0x48[] PROGMEM = "CONTROL";
      81             : const static char flashstr_0x49[] PROGMEM = "CMD_ALT";
      82             : const static char flashstr_0x4A[] PROGMEM = "AUTOMATION_READ_OFF";
      83             : const static char flashstr_0x4B[] PROGMEM = "AUTOMATION_WRITE";
      84             : const static char flashstr_0x4C[] PROGMEM = "AUTOMATION_TRIM";
      85             : const static char flashstr_0x4D[] PROGMEM = "AUTOMATION_TOUCH";
      86             : const static char flashstr_0x4E[] PROGMEM = "AUTOMATION_LATCH";
      87             : const static char flashstr_0x4F[] PROGMEM = "GROUP";
      88             : const static char flashstr_0x50[] PROGMEM = "SAVE";
      89             : const static char flashstr_0x51[] PROGMEM = "UNDO";
      90             : const static char flashstr_0x52[] PROGMEM = "CANCEL";
      91             : const static char flashstr_0x53[] PROGMEM = "ENTER";
      92             : const static char flashstr_0x54[] PROGMEM = "MARKER";
      93             : const static char flashstr_0x55[] PROGMEM = "NUDGE";
      94             : const static char flashstr_0x56[] PROGMEM = "CYCLE";
      95             : const static char flashstr_0x57[] PROGMEM = "DROP";
      96             : const static char flashstr_0x58[] PROGMEM = "REPLACE";
      97             : const static char flashstr_0x59[] PROGMEM = "CLICK";
      98             : const static char flashstr_0x5A[] PROGMEM = "SOLO";
      99             : const static char flashstr_0x5B[] PROGMEM = "REWIND";
     100             : const static char flashstr_0x5C[] PROGMEM = "FAST_FWD";
     101             : const static char flashstr_0x5D[] PROGMEM = "STOP";
     102             : const static char flashstr_0x5E[] PROGMEM = "PLAY";
     103             : const static char flashstr_0x5F[] PROGMEM = "RECORD";
     104             : const static char flashstr_0x60[] PROGMEM = "UP";
     105             : const static char flashstr_0x61[] PROGMEM = "DOWN";
     106             : const static char flashstr_0x62[] PROGMEM = "LEFT";
     107             : const static char flashstr_0x63[] PROGMEM = "RIGHT";
     108             : const static char flashstr_0x64[] PROGMEM = "ZOOM";
     109             : const static char flashstr_0x65[] PROGMEM = "SCRUB";
     110             : const static char flashstr_0x66[] PROGMEM = "USER_SWITCH_A";
     111             : const static char flashstr_0x67[] PROGMEM = "USER_SWITCH_B";
     112             : const static char flashstr_0x68[] PROGMEM = "FADER_TOUCH";
     113             : const static char flashstr_0x69[] PROGMEM = "0x69";
     114             : const static char flashstr_0x6A[] PROGMEM = "0x6A";
     115             : const static char flashstr_0x6B[] PROGMEM = "0x6B";
     116             : const static char flashstr_0x6C[] PROGMEM = "0x6C";
     117             : const static char flashstr_0x6D[] PROGMEM = "0x6D";
     118             : const static char flashstr_0x6E[] PROGMEM = "0x6E";
     119             : const static char flashstr_0x6F[] PROGMEM = "0x6F";
     120             : const static char flashstr_0x70[] PROGMEM = "FADER_TOUCH_MASTER";
     121             : const static char flashstr_0x71[] PROGMEM = "SMPTE";
     122             : const static char flashstr_0x72[] PROGMEM = "BEATS";
     123             : const static char flashstr_0x73[] PROGMEM = "RUDE_SOLO";
     124             : const static char flashstr_0x74[] PROGMEM = "0x74";
     125             : const static char flashstr_0x75[] PROGMEM = "0x75";
     126             : const static char flashstr_0x76[] PROGMEM = "RELAY";
     127             : 
     128             : const static __FlashStringHelper *const MCU_Note_Name_LUT[] PROGMEM = {
     129             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x00), 
     130             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x01), 
     131             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x02), 
     132             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x03), 
     133             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x04), 
     134             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x05), 
     135             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x06), 
     136             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x07), 
     137             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x08), 
     138             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x09), 
     139             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x0A), 
     140             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x0B), 
     141             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x0C), 
     142             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x0D), 
     143             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x0E), 
     144             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x0F), 
     145             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x10), 
     146             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x11), 
     147             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x12), 
     148             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x13), 
     149             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x14), 
     150             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x15), 
     151             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x16), 
     152             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x17), 
     153             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x18), 
     154             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x19), 
     155             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x1A), 
     156             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x1B), 
     157             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x1C), 
     158             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x1D), 
     159             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x1E), 
     160             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x1F), 
     161             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x20), 
     162             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x21), 
     163             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x22), 
     164             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x23), 
     165             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x24), 
     166             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x25), 
     167             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x26), 
     168             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x27), 
     169             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x28), 
     170             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x29), 
     171             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x2A), 
     172             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x2B), 
     173             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x2C), 
     174             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x2D), 
     175             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x2E), 
     176             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x2F), 
     177             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x30), 
     178             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x31), 
     179             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x32), 
     180             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x33), 
     181             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x34), 
     182             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x35), 
     183             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x36), 
     184             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x37), 
     185             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x38), 
     186             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x39), 
     187             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x3A), 
     188             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x3B), 
     189             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x3C), 
     190             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x3D), 
     191             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x3E), 
     192             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x3F), 
     193             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x40), 
     194             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x41), 
     195             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x42), 
     196             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x43), 
     197             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x44), 
     198             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x45), 
     199             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x46), 
     200             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x47), 
     201             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x48), 
     202             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x49), 
     203             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x4A), 
     204             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x4B), 
     205             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x4C), 
     206             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x4D), 
     207             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x4E), 
     208             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x4F), 
     209             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x50), 
     210             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x51), 
     211             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x52), 
     212             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x53), 
     213             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x54), 
     214             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x55), 
     215             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x56), 
     216             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x57), 
     217             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x58), 
     218             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x59), 
     219             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x5A), 
     220             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x5B), 
     221             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x5C), 
     222             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x5D), 
     223             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x5E), 
     224             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x5F), 
     225             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x60), 
     226             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x61), 
     227             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x62), 
     228             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x63), 
     229             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x64), 
     230             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x65), 
     231             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x66), 
     232             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x67), 
     233             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x68), 
     234             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x69), 
     235             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x6A), 
     236             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x6B), 
     237             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x6C), 
     238             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x6D), 
     239             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x6E), 
     240             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x6F), 
     241             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x70), 
     242             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x71), 
     243             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x72), 
     244             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x73), 
     245             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x74), 
     246             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x75), 
     247             :     reinterpret_cast<const __FlashStringHelper *>(flashstr_0x76), 
     248             : };
     249             : 
     250             : BEGIN_CS_NAMESPACE
     251             : namespace MCU {
     252             : 
     253           3 : const __FlashStringHelper *getMCUNameFromNoteNumber(uint8_t note) {
     254             :     const static char invalid[] PROGMEM = "<out-of-bounds>";
     255           3 :     if (note >= 0x77)
     256           1 :         return reinterpret_cast<const __FlashStringHelper *>(invalid);
     257           2 :     const void *flashptr = pgm_read_ptr_near(MCU_Note_Name_LUT + note);
     258           2 :     return reinterpret_cast<const __FlashStringHelper *>(flashptr);
     259           3 : }
     260             : 
     261             : } // namespace MCU 
     262             : END_CS_NAMESPACE

Generated by: LCOV version 1.14-5-g4ff2ed6