From 413bc4b5387c4ef451b70ccabc6f557d7f8d5a5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Hillerstr=C3=B6m?= Date: Sat, 21 Nov 2015 02:30:04 +0100 Subject: [PATCH] Retrigger waveforms 0-3 --- xm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xm.js b/xm.js index 6af8432..9a02f5c 100644 --- a/xm.js +++ b/xm.js @@ -264,6 +264,10 @@ function nextRow() { if (ch.note) { ch.period = periodForNote(ch, ch.note); } + // waveforms 0-3 are retriggered on new notes while 4-7 are continuous + if (ch.vibratotype < 4) { + ch.vibratopos = 0; + } } } }