Skip to content

Commit

Permalink
LFO one mode would not hold at last value
Browse files Browse the repository at this point in the history
  • Loading branch information
jmamma committed Dec 17, 2019
1 parent 5ee9c14 commit 4e1c909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avr/cores/megacommand/MCL/LFOSeqTrack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void LFOSeqTrack::seq() {
if (sample_count > LFO_LENGTH) {
// Free running LFO should reset, oneshot should hold at last value.
if (mode == LFO_MODE_ONE) {
sample_count = LFO_LENGTH;
sample_count = LFO_LENGTH - 1;
} else {
sample_count = 0;
}
Expand Down

0 comments on commit 4e1c909

Please sign in to comment.