From 49005f0ae0ec1c64c5ad2623b549c71874433180 Mon Sep 17 00:00:00 2001 From: Andy Sloane Date: Sat, 31 Oct 2015 10:52:46 -0700 Subject: [PATCH] so many weird uses of effects --- xm.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xm.js b/xm.js index 5ba1c84..d79ac66 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, ch.note); + if (ch.note != undefined) { + ch.period = PeriodForNote(ch, ch.note); + } } } }