Skip to content

Commit

Permalink
#148 tracker vel overwrite bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesholdenmusic committed May 21, 2024
1 parent 850c71f commit f0d910d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion note_blocks/seq.note.tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ function keydown(key){
voice_data_buffer.poke(1, MAX_DATA*v_list[cursorx]+1+UNIVERSAL_COLUMNS*cursory+pattern_offs[cursorx],0);
}else if(key>0){
if(keymap[key]>-1){
var t=voice_data_buffer.peek(1,MAX_DATA*v_list[cursorx]+1+UNIVERSAL_COLUMNS*cursory+pattern_offs[cursorx]);
var t=voice_data_buffer.peek(1,MAX_DATA*v_list[cursorx]+1+UNIVERSAL_COLUMNS*cursory+1+pattern_offs[cursorx]);
if(t<=0) t = currentvel+1;
voice_data_buffer.poke(1, MAX_DATA*v_list[cursorx]+1+UNIVERSAL_COLUMNS*cursory+pattern_offs[cursorx],baseoct*12+keymap[key]);
voice_data_buffer.poke(1, MAX_DATA*v_list[cursorx]+1+UNIVERSAL_COLUMNS*cursory+1+pattern_offs[cursorx],t);
Expand Down

0 comments on commit f0d910d

Please sign in to comment.