I am just starting to produce music and, for music, I learn better by doing and then learning about what I've done.
Let's say that I have two measures in 4/4 time with each of the following eighth notes.
A4 B4 A4 G4 A4 G4 E4 A4 | A4 B4 A4 G4 E4 F4 G4 A4
How can I determine the key (as shown on web sites as such as beatport) and root note (unless that is what is shown on sites like beatport).
Edited for the full 4 measures:
A4 B4 A4 G4 A4 G4 E4 A4 | A4 B4 A4 G4 E4 F4 G4 A4 | A4 B4 F4 G4 A4 B4 A4 G4 | G4 A4 G4 A4 B4 C5 B4 A4