oh! btw, there's an easy way to set the delay variable.
60/(your BPM)*16 or you can use this beat sync extension.
Beat Sync Extension
edit: you have to import on text mode so sorry, if your computer ends up crashing cuz too many words.
i was actually already using the extension lol
oh, wowie!