Convert note names into pitches correctly