|
|
@ -3533,18 +3533,39 @@ void UI_handle_OP(uint8_t param) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char const * seq_find_shortname(uint8_t seqstep) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
char const * shortname = " "; |
|
|
|
|
|
|
|
bool foundsound = false; |
|
|
|
|
|
|
|
for (uint8_t d = 0; d < NUM_DRUMCONFIG - 1; d++) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (seqdata[active_seq_track][seqstep] == drum_config[d].midinote) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
shortname = drum_config[d].shortname; |
|
|
|
|
|
|
|
foundsound = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (foundsound == false) shortname="-"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return shortname; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void UI_func_sequencer(uint8_t param) |
|
|
|
void UI_func_sequencer(uint8_t param) |
|
|
|
{ |
|
|
|
{ |
|
|
|
bool foundsound = false; |
|
|
|
bool foundsound = false; |
|
|
|
String displayname = String(8); |
|
|
|
char displayname[9]; |
|
|
|
|
|
|
|
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
if (LCDML.FUNC_setup()) // ****** SETUP *********
|
|
|
|
{ |
|
|
|
{ |
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
encoderDir[ENC_R].reset(); |
|
|
|
seq_button_r = false; |
|
|
|
seq_button_r = false; |
|
|
|
// setup function
|
|
|
|
// setup function
|
|
|
|
lcd.setCursor(1, 0); |
|
|
|
lcd.setCursor(1, 0); |
|
|
|
displayname = drum_config[activesample].filename; |
|
|
|
strncpy(displayname, drum_config[activesample].filename + 5, 6); |
|
|
|
lcd.print(displayname.substring(5, 11) ); |
|
|
|
lcd.print(displayname); |
|
|
|
lcd.setCursor(8, 0); |
|
|
|
lcd.setCursor(8, 0); |
|
|
|
lcd.print("["); |
|
|
|
lcd.print("["); |
|
|
|
lcd.setCursor(9, 0); |
|
|
|
lcd.setCursor(9, 0); |
|
|
@ -3647,8 +3668,8 @@ void UI_func_sequencer(uint8_t param) |
|
|
|
lcd.setCursor(0, 0); |
|
|
|
lcd.setCursor(0, 0); |
|
|
|
lcd.print("["); |
|
|
|
lcd.print("["); |
|
|
|
lcd.setCursor(1, 0); |
|
|
|
lcd.setCursor(1, 0); |
|
|
|
displayname = drum_config[activesample].filename; |
|
|
|
strncpy(displayname, drum_config[activesample].filename + 5, 6); |
|
|
|
lcd.print(displayname.substring(5, 11) ); |
|
|
|
lcd.print(displayname); |
|
|
|
lcd.setCursor(7, 0); |
|
|
|
lcd.setCursor(7, 0); |
|
|
|
lcd.print("]"); |
|
|
|
lcd.print("]"); |
|
|
|
} |
|
|
|
} |
|
|
@ -3688,17 +3709,7 @@ void UI_func_sequencer(uint8_t param) |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
for (int i = 0; i < 16; i++) { |
|
|
|
for (int i = 0; i < 16; i++) { |
|
|
|
lcd.setCursor(i, 1); |
|
|
|
lcd.setCursor(i, 1); |
|
|
|
for (uint8_t d = 0; d < NUM_DRUMCONFIG - 1; d++) |
|
|
|
lcd.print(seq_find_shortname(i) ); |
|
|
|
{ |
|
|
|
|
|
|
|
if (seqdata[active_seq_track][i] == drum_config[d].midinote) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
lcd.print(drum_config[d].shortname ); //one letter name of Category
|
|
|
|
|
|
|
|
foundsound = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (foundsound == false)lcd.print("-"); |
|
|
|
|
|
|
|
foundsound = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (seq_menu == 3) { |
|
|
|
if (seq_menu == 3) { |
|
|
@ -3709,45 +3720,16 @@ void UI_func_sequencer(uint8_t param) |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd.setCursor(0, 1); |
|
|
|
lcd.print("x"); |
|
|
|
lcd.print("x"); |
|
|
|
lcd.setCursor(1, 1); |
|
|
|
lcd.setCursor(1, 1); |
|
|
|
for (uint8_t d = 0; d < NUM_DRUMCONFIG - 1; d++) |
|
|
|
lcd.print(seq_find_shortname(1) ); |
|
|
|
{ |
|
|
|
|
|
|
|
if (seqdata[active_seq_track][1] == drum_config[d].midinote) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
lcd.print(drum_config[d].shortname ); //one letter name of Category
|
|
|
|
|
|
|
|
foundsound = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (foundsound == false) lcd.print("-"); |
|
|
|
|
|
|
|
foundsound = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (seq_menu > 3) { |
|
|
|
if (seq_menu > 3) { |
|
|
|
lcd.setCursor(seq_menu - 3, 1); |
|
|
|
lcd.setCursor(seq_menu - 3, 1); |
|
|
|
lcd.print("x"); |
|
|
|
lcd.print("x"); |
|
|
|
lcd.setCursor(seq_menu - 4, 1); |
|
|
|
lcd.setCursor(seq_menu - 4, 1); |
|
|
|
for (uint8_t d = 0; d < NUM_DRUMCONFIG - 1; d++) |
|
|
|
lcd.print(seq_find_shortname(seq_menu - 4) ); |
|
|
|
{ |
|
|
|
|
|
|
|
if (seqdata[active_seq_track][seq_menu - 4] == drum_config[d].midinote) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
lcd.print(drum_config[d].shortname ); //one letter name of Category
|
|
|
|
|
|
|
|
foundsound = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (foundsound == false) lcd.print("-"); |
|
|
|
|
|
|
|
foundsound = false; |
|
|
|
|
|
|
|
lcd.setCursor(seq_menu - 2, 1); |
|
|
|
lcd.setCursor(seq_menu - 2, 1); |
|
|
|
for (uint8_t d = 0; d < NUM_DRUMCONFIG - 1; d++) |
|
|
|
lcd.print(seq_find_shortname(seq_menu - 2) ); |
|
|
|
{ |
|
|
|
|
|
|
|
if (seqdata[active_seq_track][seq_menu - 2] == drum_config[d].midinote) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
lcd.print(drum_config[d].shortname ); //one letter name of Category
|
|
|
|
|
|
|
|
foundsound = true; |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (foundsound == false) lcd.print("-"); |
|
|
|
|
|
|
|
foundsound = false; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|
if (LCDML.FUNC_close()) // ****** STABLE END *********
|
|
|
|