Skip to content

Commit

Permalink
Update step.js
Browse files Browse the repository at this point in the history
fix play position outside of loop bounds
  • Loading branch information
dndrks committed Jun 14, 2023
1 parent fa5937b commit 051741c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions javascript/step.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ for(i1=0; i1<16; i1++) {
function size(sx, sy) {
XSIZE = sx;
YSIZE = sy;
// for (var i = 0; i < 16; i++){
// speeds[i] = YSIZE-1;
// }
}

// key decoding
Expand Down Expand Up @@ -142,16 +139,6 @@ function redraw() {
}
};


// // display toggles
// for(i1=0;i1<96;i1++)
// leds[i1+32] = states[pattern][i1] * 11;

// // display loop
// if(!(loop_start == 0 && loop_end == 15))
// // for(i1=loop_start;i1<=loop_end;i1++)
// leds[i1] = 4;

}


Expand All @@ -166,7 +153,7 @@ function next() {
play_position = loop_start;
}
else {
play_position++;
play_position = (play_position+1)%(XSIZE);
}

}
Expand Down

0 comments on commit 051741c

Please sign in to comment.