to play c=1 d=2 e=3 and so on this was a school project so sorry if its not in my normal style
credits to musicroomtec for the tutorial