mirror of
https://github.com/bbswitzer/PianoProject
synced 2026-10-21 16:03:05 -04:00
piano will no longer play if volume is at 0 percent
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user