Skip to content

Commit

Permalink
Fix velocity updates when executing MML
Browse files Browse the repository at this point in the history
This was a hidden setter call in the original code,
which I initially missed. As a result continuous
volume/velocity changes didn't work as expected.
  • Loading branch information
YuriSizov committed May 27, 2024
1 parent 9dc1e95 commit 08c7492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sequencer/simml_track.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,11 @@ void SiMMLTrack::handle_pitch_bend(int p_next_note, int p_term) {
}

void SiMMLTrack::handle_velocity(int p_value) {
_velocity = p_value << _velocity_shift;
set_velocity(p_value << _velocity_shift);
}

void SiMMLTrack::handle_velocity_shift(int p_value) {
_velocity += p_value << _velocity_shift;
set_velocity(_velocity + p_value << _velocity_shift);
}

// Playback.
Expand Down

0 comments on commit 08c7492

Please sign in to comment.