|
|
|
@ -103,6 +103,9 @@ extern char g_voice_name[NUM_DEXED][VOICE_NAME_LEN]; |
|
|
|
|
extern char g_bank_name[NUM_DEXED][BANK_NAME_LEN]; |
|
|
|
|
extern int perform_attack_mod[NUM_DEXED]; |
|
|
|
|
extern int perform_release_mod[NUM_DEXED]; |
|
|
|
|
extern float midi_ticks_factor[10]; |
|
|
|
|
extern uint8_t midi_bpm; |
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
|
GLOBAL |
|
|
|
|
************************************************************************/ |
|
|
|
@ -6037,34 +6040,49 @@ void lcd_display_delay_sync(uint8_t sync) |
|
|
|
|
switch (sync) |
|
|
|
|
{ |
|
|
|
|
case 1: |
|
|
|
|
lcd.show(1, 10, 5, "1/16"); |
|
|
|
|
lcd.show(1, 10, 6, "1/16"); |
|
|
|
|
break; |
|
|
|
|
case 2: |
|
|
|
|
lcd.show(1, 10, 5, "1/16T"); |
|
|
|
|
lcd.show(1, 10, 6, "1/16T"); |
|
|
|
|
break; |
|
|
|
|
case 3: |
|
|
|
|
lcd.show(1, 10, 5, "1/8"); |
|
|
|
|
lcd.show(1, 10, 6, "1/8"); |
|
|
|
|
break; |
|
|
|
|
case 4: |
|
|
|
|
lcd.show(1, 10, 5, "1/8T"); |
|
|
|
|
lcd.show(1, 10, 6, "1/8T"); |
|
|
|
|
break; |
|
|
|
|
case 5: |
|
|
|
|
lcd.show(1, 10, 5, "1/4"); |
|
|
|
|
lcd.show(1, 10, 6, "1/4"); |
|
|
|
|
break; |
|
|
|
|
case 6: |
|
|
|
|
lcd.show(1, 10, 5, "1/4T"); |
|
|
|
|
lcd.show(1, 10, 6, "1/4T"); |
|
|
|
|
break; |
|
|
|
|
case 7: |
|
|
|
|
lcd.show(1, 10, 5, "1/2"); |
|
|
|
|
lcd.show(1, 10, 6, "1/2"); |
|
|
|
|
break; |
|
|
|
|
case 8: |
|
|
|
|
lcd.show(1, 10, 5, "1/2T"); |
|
|
|
|
lcd.show(1, 10, 6, "1/2T"); |
|
|
|
|
break; |
|
|
|
|
case 9: |
|
|
|
|
lcd.show(1, 10, 5, "1/1"); |
|
|
|
|
lcd.show(1, 10, 6, "1/1"); |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
uint16_t midi_sync_delay_time = uint16_t(1000.0 * midi_bpm * midi_ticks_factor[sync] / 60.0 + 0.5); |
|
|
|
|
if (midi_sync_delay_time > DELAY_MAX_TIME) |
|
|
|
|
{ |
|
|
|
|
#ifdef DEBUG |
|
|
|
|
Serial.println(F("Calculated MIDI-Sync delay: ")); |
|
|
|
|
Serial.print(round(1000.0 * midi_bpm * midi_ticks_factor[sync] / 60.0), DEC); |
|
|
|
|
Serial.println(F("ms")); |
|
|
|
|
Serial.println(F("MIDI-Sync delay: midi_sync_delay_time")); |
|
|
|
|
Serial.print(midi_sync_delay_time, DEC); |
|
|
|
|
Serial.println(F("ms")); |
|
|
|
|
#endif |
|
|
|
|
lcd.show(1, 15, 1, "!"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void eeprom_update_var(uint16_t pos, uint8_t val, const char* val_string) |
|
|
|
|
{ |
|
|
|
|
#ifdef DEBUG |
|
|
|
|