From dfe929babfdfb8ae0da8764dde68cae5254b9719 Mon Sep 17 00:00:00 2001 From: mborik128 Date: Sat, 1 Apr 2023 02:30:35 +0200 Subject: [PATCH] Fix fatal bug with parsing pattern volume changes --- src/player/Pattern.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player/Pattern.ts b/src/player/Pattern.ts index 80ee1f8..2647a10 100644 --- a/src/player/Pattern.ts +++ b/src/player/Pattern.ts @@ -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; }