only reset pan/vol on instrument, not note

This commit is contained in:
Andy Sloane 2015-11-03 07:18:12 -08:00
commit 5967da7353

10
xm.js
View file

@ -270,10 +270,14 @@ function next_row() {
if (inst != undefined) {
var note = r[i][0];
ch.note = note;
triggernote = true;
ch.samp = inst.samples[inst.samplemap[ch.note]];
ch.pan = ch.samp.pan;
ch.vol = ch.samp.vol;
if (triggernote) {
// if we were already triggering the note, reset vol/pan using
// (potentially) new sample
ch.pan = ch.samp.pan;
ch.vol = ch.samp.vol;
}
triggernote = true;
}
}
}