Split viewer code into trackview.js

Also disabled iOS hack, as it seems to be causing issues, and fixed a
minor drag-n-drop bug (wouldn't load if track was already playing past
length of newly loaded track).

To play without a viewer, you still have to stub it out. Not sure the
best way to handle that case yet.
This commit is contained in:
Andy Sloane 2015-11-11 18:00:21 -08:00
commit 8e114a16da
4 changed files with 465 additions and 398 deletions

View file

@ -155,7 +155,7 @@ function eff_t0_e(ch, data) { // extended effects!
case 0x0c: // note cut handled in eff_t1_e
break;
default:
console.log("unimplemented extended effect E", ch.effect.toString(16));
console.log("unimplemented extended effect E", ch.effectdata.toString(16));
break;
}
}
@ -293,4 +293,5 @@ player.effects_t1 = [ // effect functions on tick 1+
eff_unimplemented, // y
eff_unimplemented // z
];
})(window || {});