Read vibrato waveform type

This commit is contained in:
Johan Hillerström 2015-11-21 02:21:16 +01:00
commit fb103e61bc
3 changed files with 5 additions and 0 deletions

View file

@ -25,6 +25,7 @@ exports.resetXMData = function() {
vibratopos: 0,
vibratodepth: 1,
vibratospeed: 1,
vibratotype: 0,
});
xm.songpats = [0];
// 1 channel, 2 row blank pattern

1
xm.js
View file

@ -697,6 +697,7 @@ function load(arrayBuf) {
vibratopos: 0,
vibratodepth: 1,
vibratospeed: 1,
vibratotype: 0,
});
}
console.log("header len " + hlen);

View file

@ -135,6 +135,9 @@ function eff_t0_e(ch, data) { // extended effects!
case 2: // fine porta down
ch.period += data;
break;
case 4: // set vibrato waveform
ch.vibratotype = data & 0x07;
break;
case 5: // finetune
ch.fine = (data<<4) + data - 128;
break;