From c12f2b806817c38efe8e572990ec32e611718626 Mon Sep 17 00:00:00 2001 From: Andy Sloane Date: Fri, 30 Oct 2015 22:35:48 -0700 Subject: [PATCH] fix triggering without note you can retrigger a note just by using the instrument column. --- xm.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xm.js b/xm.js index 3913b91..af7cea2 100644 --- a/xm.js +++ b/xm.js @@ -320,7 +320,9 @@ function next_row() { ch.vibratopos = 0; ch.env_vol = new EnvelopeFollower(inst.env_vol); ch.env_pan = new EnvelopeFollower(inst.env_pan); - ch.period = PeriodForNote(ch, note); + if (note) { + ch.period = PeriodForNote(ch, note); + } } } } @@ -460,7 +462,7 @@ function MixChannelIntoBuf(ch, start, end, dataL, dataR) { if (volR == 0 && volL == 0) return; if (isNaN(volR) || isNaN(volL)) { - console.log("NaN volume!?", volL, volR, colE, panE, ch.vol); + console.log("NaN volume!?", volL, volR, volE, panE, ch.vol); return; } var k = ch.off;