Read vibrato waveform type
This commit is contained in:
parent
65a2ea2863
commit
fb103e61bc
3 changed files with 5 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ exports.resetXMData = function() {
|
||||||
vibratopos: 0,
|
vibratopos: 0,
|
||||||
vibratodepth: 1,
|
vibratodepth: 1,
|
||||||
vibratospeed: 1,
|
vibratospeed: 1,
|
||||||
|
vibratotype: 0,
|
||||||
});
|
});
|
||||||
xm.songpats = [0];
|
xm.songpats = [0];
|
||||||
// 1 channel, 2 row blank pattern
|
// 1 channel, 2 row blank pattern
|
||||||
|
|
|
||||||
1
xm.js
1
xm.js
|
|
@ -697,6 +697,7 @@ function load(arrayBuf) {
|
||||||
vibratopos: 0,
|
vibratopos: 0,
|
||||||
vibratodepth: 1,
|
vibratodepth: 1,
|
||||||
vibratospeed: 1,
|
vibratospeed: 1,
|
||||||
|
vibratotype: 0,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log("header len " + hlen);
|
console.log("header len " + hlen);
|
||||||
|
|
|
||||||
|
|
@ -135,6 +135,9 @@ function eff_t0_e(ch, data) { // extended effects!
|
||||||
case 2: // fine porta down
|
case 2: // fine porta down
|
||||||
ch.period += data;
|
ch.period += data;
|
||||||
break;
|
break;
|
||||||
|
case 4: // set vibrato waveform
|
||||||
|
ch.vibratotype = data & 0x07;
|
||||||
|
break;
|
||||||
case 5: // finetune
|
case 5: // finetune
|
||||||
ch.fine = (data<<4) + data - 128;
|
ch.fine = (data<<4) + data - 128;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue