I made this script for that game on the website kongregate.com, I don't know if it'll work anywhere else.

But I'm having a problem with it, sometimes it will hit the button twice on one note, well it kinda happens a lot, any ideas?