I'm currently writing a software application which creates notes on a staff, when a piano key is pressed. Unfortunately I have no background in music, and thus am finding it quite hard to get started.
Could someone kindly tell me if the following screenshot represents what it would look like on the staff (approximately) if someone presses all the white keys on a 25-key keyboard (15 white, 10 black) from left to right, and then from right to left?
Am I on the right track, or is this completely wrong? (The notes are just displayed as circles for now - im trying to get the positioning right).
Almost. You need a few extra things. (NB. This is a simplified list just to get you going. Music notation is a complex beast that can take years of study to master)
There's a lot more to drawing music on a stave than meets the eye, I'm afraid, but these should point you in the right direction.