Rhythm Game Enquiry

I’m looking into creating a Project Diva/Osu! style game but I have no idea how to go about programming the inputs. I want to be able have it where you must press the right buttons in the exact order they appear and determine the accuracy of your input by 3 tiers (bad, good, perfect), as well as held inputs and a freestyle input e.g. spinning the left or right stick on an Xbox One controller, the speed of the spin determines how many points you get out of it.
Sorry if my explanation is terrible, I couldn’t think of a better way to put it :stuck_out_tongue:
Here’s video to help you understand what I’m after: