piano will no longer play if volume is at 0 percent

This commit is contained in:
Brandon Switzer
2019-08-01 22:53:32 -04:00
parent a90ca1ad2f
commit 030d653b58
+2 -2
View File
@@ -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;
}
}