summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mdaPiano.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp
index 9c5a999..39a1d95 100644
--- a/src/mdaPiano.cpp
+++ b/src/mdaPiano.cpp
@@ -52,8 +52,9 @@ unsigned mdaPiano::find_free_voice(unsigned char key, unsigned char velocity) {
//is this a retriggered note during sustain?
if (sustain) {
for (unsigned i = 0; i < NVOICES; ++i) {
- if ((voices[i]->get_key() == key) && (voices[i]->is_sustained()))
+ if ((voices[i]->get_key() == key) && (voices[i]->is_sustained())) {
return i;
+ }
}
}