Skip to content

Commit

Permalink
slips: also account for negative starting step cv
Browse files Browse the repository at this point in the history
  • Loading branch information
alefnull committed Dec 2, 2023
1 parent ffb4587 commit 6114e42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/slips.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,8 @@ void Slips::process(const ProcessArgs& args) {
// set the starting step
starting_step = (int) ((starting_step_input / 10) * 64);
starting_step %= 64;

if (starting_step < 0) starting_step += 64;
// x = (((x - x_min) % (x_max - x_min)) + (x_max - x_min)) % (x_max - x_min) + x_min;
if (starting_step != last_starting_step) {
current_step = starting_step + steps_gone_through;
}
Expand Down

0 comments on commit 6114e42

Please sign in to comment.