Skip to content

Commit

Permalink
Fix fatal bug with parsing pattern volume changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mborik committed Apr 1, 2023
1 parent f5abe6a commit dfe929b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/player/Pattern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export default class Pattern {
}

o.smp = parseInt(s[2], 32) || 0;
o.volume.byte = parseInt(s.slice(4, 2), 16) || 0;
o.volume.byte = parseInt(s.slice(4, 6), 16) || 0;
o.cmd = parseInt(s[6], 16) || 0;
o.cmd_data = parseInt(s.slice(7), 16) || 0;
}
Expand Down

0 comments on commit dfe929b

Please sign in to comment.