Hacking together some stuff to make note durations a little less broken. Don't have time to fix properly.
Demo is pretty much identical to the original instrument.py version now.