Fixed program to now handle notes with accidentals