Skip to content

Commit

Permalink
new jack values must be added after moving window shifts
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 14, 2020
1 parent cd231ea commit 2634fd4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Etterna/Globals/MinaCalc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,15 +524,16 @@ Calc::SequenceJack(const Finger& f, int track, int mode)
// taps in interval
for (auto& ms : itv) {
time += ms;
window_taps[window_size - 1] = ms;
if (dbg) {
std::cout << "time now: " << time / 1000.f << std::endl;
std::cout << "ms now: " << ms << std::endl;
}

// update most recent values
// shift older values back
for (size_t i = 1; i < window_taps.size(); ++i)
window_taps[i - 1] = window_taps[i];
// add new value
window_taps[window_size - 1] = ms;

float comp_time = 0.f;
float hit_window_buffer = 380.f;
Expand Down

0 comments on commit 2634fd4

Please sign in to comment.