Change cur_row to actually mean current row

It used to really mean "next row", and resulted in showing the wrong row
in the pattern view (row -1 instead of the last row).

Fixes #14.
This commit is contained in:
Andy Sloane 2015-11-16 18:59:46 -08:00
commit e347807abf
5 changed files with 12 additions and 12 deletions

View file

@ -26,9 +26,9 @@ exports['test instrument trigger'] = function(assert) {
XMPlayer.nextRow();
ch.pan = 1; // forcibly override panning
ch.off = 100; // and sample offset
assert.equal(XMPlayer.cur_row, 1, 'row 1');
assert.equal(XMPlayer.cur_row, 0, 'row 0');
XMPlayer.nextRow();
assert.equal(XMPlayer.cur_row, 2, 'row 2');
assert.equal(XMPlayer.cur_row, 1, 'row 1');
assert.equal(ch.note, 48, 'note same after inst trigger');
assert.equal(ch.period, 1152, 'period same after inst trigger');
assert.equal(ch.vol, 64, 'vol reset after inst trigger');