I honestly don't know too much about scripting, but I am an aspiring music major. So I do know that you'll have to have each individual chromatic note saved in a file in your system folder probably and just import them into the resources as like C-C#-D#-E-F-F#-G-G#-A-A#-B... Don't worry about the flats because you can just use the preceding notes sharp obviously. Once that is in your game you can figure out a system that involves the player pressing the correct order of keys and any other combination results in a failed attempt... Like I said, I don't know very much of anything on scripting, but if you need help with sound I'm pretty good with that