From 030d653b58397c83fc9dd5dd117ec0212d8016d5 Mon Sep 17 00:00:00 2001 From: Brandon Switzer Date: Thu, 1 Aug 2019 22:53:32 -0400 Subject: [PATCH] piano will no longer play if volume is at 0 percent --- ESP32/note.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP32/note.cpp b/ESP32/note.cpp index eb4ffb0..960877a 100644 --- a/ESP32/note.cpp +++ b/ESP32/note.cpp @@ -228,7 +228,7 @@ void Note::calculateVolume(uint8_t& velocity) if(velocity > 127) velocity = 127; else if(velocity < 1) - velocity = 1; + velocity = 0; } } @@ -281,4 +281,4 @@ bool Note::canBeScheduled() return true; } return false; -} \ No newline at end of file +}