Skip to content

Commit

Permalink
fix erroneous argument pass in anch update loop
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 7, 2020
1 parent fafb7e6 commit 2e80d76
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ struct Anchor_Sequencing
_now_ms = ms_from(now, _last);

// break the anchor if the next note is too much slower than the
// lowest one in the sequence
if (_now_ms > _max_ms + anchor_buffer_ms) {
_len = 1;
_max_ms = ms_init;
} else {
// increase anchor length and set new cutoff point
// lowest one in the sequence
if (_now_ms > _max_ms + anchor_buffer_ms) {
_len = 1;
_max_ms = ms_init;
} else {
// increase anchor length and set new cutoff point
++_len;
_max_ms = _now_ms;
}
Expand Down Expand Up @@ -99,7 +99,7 @@ struct AnchorSequencer

// update both
for (auto& c : ct_loop_no_jumps) {
anch.at(c)(ct, row_time);
anch.at(c)(c, row_time);

// set max seen
max_seen.at(c) =
Expand Down

0 comments on commit 2e80d76

Please sign in to comment.