Hello, I’m trying to create a small app which enables a student to test/memorize the key/note positions of each key on a piano.
The idea is to have a random piano key letter/name generated, then displayed, in a text box so the user can push the corresponding key on a virtual piano, which I will have drawn inside the app, using rectangle shapes (or maybe images).
If the student presses the correct rectangle/key/note which corresponds to the randomly generated key name, they will get a point added to their score.
The keys/notes on the piano will be as follows - C C# D D# E F F# G G# A A# B
What I need help with is…
How do I implement the checking of the randomly generated letter (eg C) against the selected key/rectangle.
In other words - how do I check if they have chosen the correct key/note/rectangle.
How can I make this app have no user accounts, (eg have a temporary account). I don’t want people to be put-off from having to register first, but possibly have the option to register if they desire to keep a running record of their progress.
I want the first randomly generated key/note/letter to happen after the press of the start button, but I want the next ones to generate after the user presses a key/rectangle/note.
Do I have to use the database in order to make this possible?
I have tried many times to implement this. I have also done a lot of searching/reading. Once I have worked out how to implement this, I will be attempting to do the same thing for the guitar and also for the music notation staff, so this will not be a one-off project. Privacy is not applicable in this App.
Here is a screenshot of a very rough sketch of the apps main section…