I implemented tone.js. It was much faster than my other things—the only problem was needing a buffer between notes. But now I have to work on UI :( and adding more advanced features. (I also began to work on adding bpm and a import score feature but they are not finished yet)