fix triggering without note
you can retrigger a note just by using the instrument column.
This commit is contained in:
parent
ee005ef668
commit
c12f2b8068
1 changed files with 4 additions and 2 deletions
6
xm.js
6
xm.js
|
|
@ -320,7 +320,9 @@ function next_row() {
|
||||||
ch.vibratopos = 0;
|
ch.vibratopos = 0;
|
||||||
ch.env_vol = new EnvelopeFollower(inst.env_vol);
|
ch.env_vol = new EnvelopeFollower(inst.env_vol);
|
||||||
ch.env_pan = new EnvelopeFollower(inst.env_pan);
|
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)
|
if (volR == 0 && volL == 0)
|
||||||
return;
|
return;
|
||||||
if (isNaN(volR) || isNaN(volL)) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
var k = ch.off;
|
var k = ch.off;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue