From 0fbadbac92533f97c76e37cf18be30fdfb33a676 Mon Sep 17 00:00:00 2001 From: positionhigh Date: Sat, 18 Sep 2021 18:33:50 +0200 Subject: [PATCH] =?UTF-8?q?Dateien=20hochladen=20nach=20=E2=80=9E=E2=80=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MicroDexed.ino | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/MicroDexed.ino b/MicroDexed.ino index f7cd558..cf28bcb 100644 --- a/MicroDexed.ino +++ b/MicroDexed.ino @@ -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)