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); + } } } }