|
|
|
@ -1676,11 +1676,29 @@ void handleClock(void) |
|
|
|
|
midi_bpm_counter++; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void dac_mute(void) |
|
|
|
|
{ |
|
|
|
|
sgtl5000.lineOutLevel(0.0); |
|
|
|
|
sgtl5000.dacVolume(0.0); |
|
|
|
|
sgtl5000.volume(0.0, 0.0); // Headphone volume
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void dac_unmute(void) |
|
|
|
|
{ |
|
|
|
|
sgtl5000.lineOutLevel(SGTL5000_LINEOUT_LEVEL); |
|
|
|
|
sgtl5000.dacVolume(1.0); |
|
|
|
|
sgtl5000.volume(SGTL5000_HEADPHONE_VOLUME, SGTL5000_HEADPHONE_VOLUME); // Headphone volume
|
|
|
|
|
} |
|
|
|
|
void handleStart(void) |
|
|
|
|
{ |
|
|
|
|
midi_bpm_timer = 0; |
|
|
|
|
midi_bpm_counter = 0; |
|
|
|
|
_midi_bpm = -1; |
|
|
|
|
seq_step = 0; |
|
|
|
|
seq_chain_active_step = 0; |
|
|
|
|
seq_running = true; |
|
|
|
|
timer1.start(); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void handleContinue(void) |
|
|
|
@ -1690,7 +1708,17 @@ void handleContinue(void) |
|
|
|
|
|
|
|
|
|
void handleStop(void) |
|
|
|
|
{ |
|
|
|
|
; |
|
|
|
|
timer1.stop(); |
|
|
|
|
seq_running = false; |
|
|
|
|
seq_recording = false; |
|
|
|
|
seq_note_in = 0; |
|
|
|
|
seq_step = 0; |
|
|
|
|
seq_chain_active_step = 0; |
|
|
|
|
|
|
|
|
|
MicroDexed[0]->panic(); |
|
|
|
|
#if NUM_DEXED > 1 |
|
|
|
|
MicroDexed[1]->panic(); |
|
|
|
|
#endif |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void handleActiveSensing(void) |
|
|
|
|