Added a lookahead algorithm rather than dumping all notes into webaudio event queue at once. The former method causes distortion when mods are too complex, and makes it almost impossable to pause.