Skip to content

Commit

Permalink
fix #117716: stop note on pedal released when sustained during attack
Browse files Browse the repository at this point in the history
  • Loading branch information
hpfmn committed Jul 9, 2016
1 parent cb07375 commit 0a73b2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zerberus/voice.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ class Voice {
int key() const { return _key; }
int velocity() const { return _velocity; }

bool isPlaying() const { return _state == VoiceState::PLAYING; }
bool isPlaying() const { return _state == VoiceState::PLAYING || _state == VoiceState::ATTACK; }
bool isSustained() const { return _state == VoiceState::SUSTAINED; }
bool isOff() const { return _state == VoiceState::OFF; }
bool isStopped() const { return _state == VoiceState::STOP; }
Expand Down

0 comments on commit 0a73b2f

Please sign in to comment.