GridButton("MOM\nTOGGLE",button_2,false,BUTTON_TYPE_TOGGLE,0,"REC/OVERDUB BUTTONS\n\nMOM->Record while \n Button is held\n\nTOGGLE->Press once to\n start, press \n again to stop"),
GridButton("FULL\nLOOP\nSHOT",button_4,false,BUTTON_TYPE_MULTITOGGLE,1,"RECORDING REGION\n\nFULL---->Whole Buffer\nLOOP----->Loop Bounds\nSHOT->Full Buffer but\n stop at the end"),
GridButton("NORMAL\nPITCHD\nUNPTCH",button_5,false,BUTTON_TYPE_MULTITOGGLE,0,"SPEED OF THE REC HEAD\n\nNORMAL--->Fixed Speed\nPITCHD->Inverse Playh\nUNPITCH----->Playhead\n Speed"),
GridButton("START\nLOOPST\nPLAYHD",button_6,false,BUTTON_TYPE_MULTITOGGLE,0,"START RECORDING AT\n\nSTART--->Start of the\n Buffer\nLOOP---->Start of the\n Loop\nPLAYH--->Position of\n the Playhead"),
GridButton("REC\nMENU",&button_1,true),
GridButton("MOM\nTOGGLE",&button_2,false,BUTTON_TYPE_TOGGLE,0,"REC/OVERDUB BUTTONS\n\nMOM->Record while \n Button is held\n\nTOGGLE->Press once to\n start, press \n again to stop"),
GridButton("FULL\nLOOP\nSHOT",&button_4,false,BUTTON_TYPE_MULTITOGGLE,1,"RECORDING REGION\n\nFULL---->Whole Buffer\nLOOP----->Loop Bounds\nSHOT->Full Buffer but\n stop at the end"),
GridButton("NORMAL\nPITCHD\nUNPTCH",&button_5,false,BUTTON_TYPE_MULTITOGGLE,0,"SPEED OF THE REC HEAD\n\nNORMAL--->Fixed Speed\nPITCHD->Inverse Playh\nUNPITCH----->Playhead\n Speed"),
GridButton("START\nLOOPST\nPLAYHD",&button_6,false,BUTTON_TYPE_MULTITOGGLE,0,"START RECORDING AT\n\nSTART--->Start of the\n Buffer\nLOOP---->Start of the\n Loop\nPLAYH--->Position of\n the Playhead"),
}),
ButtonGrid((int)UI_MODE_PLAY_MENU,{
GridButton("LOOP",button_1,false),
GridButton("PLAY\nMENU",button_2,true),
GridButton("WINDOW",button_3,false),
GridButton("DRUNK",button_4,false),
GridButton("GRAIN",button_5,false),
GridButton("SHOT",button_6,false),
GridButton("LOOP",&button_1,false),
GridButton("PLAY\nMENU",&button_2,true),
GridButton("WINDOW",&button_3,false),
GridButton("DRUNK",&button_4,false),
GridButton("GRAIN",&button_5,false),
GridButton("SHOT",&button_6,false),
}),
ButtonGrid((int)UI_MODE_TRIGGER_MENU,{
GridButton("MIDI\nTRIG.",button_1,false),
GridButton("MIDI\nUNMUTE",button_2,false),
GridButton("TRIG.\nMENU",button_3,true),
GridButton("MANUAL\nTRIG.",button_4,false),
GridButton("MANUAL\nUNMUTE",button_5,false),
GridButton("AUTO",button_6,false),
GridButton("MIDI\nTRIG.",&button_1,false),
GridButton("MIDI\nUNMUTE",&button_2,false),
GridButton("TRIG.\nMENU",&button_3,true),
GridButton("MANUAL\nTRIG.",&button_4,false),
GridButton("MANUAL\nUNMUTE",&button_5,false),
GridButton("AUTO",&button_6,false),
}),
ButtonGrid((int)UI_MODE_FX_MENU,{
GridButton("DELAY",button_1,false),
GridButton("REVERB",button_2,false),
GridButton("-",button_3,false),
GridButton("-",button_4,false),
GridButton("-",button_5,false),
GridButton("FX\nMENU",button_6,true),
GridButton("DELAY",&button_1,false),
GridButton("REVERB",&button_2,false),
GridButton("-",&button_3,false),
GridButton("-",&button_4,false),
GridButton("-",&button_5,false),
GridButton("FX\nMENU",&button_6,true),
}),
}{};
...
...
@@ -234,17 +234,8 @@ class Ui {
// Reset controls
resetControls();
// Stay in this menu as long as the button is pressed, otherwise return