toneMelody error message,"NOTE_A2 not declared in this scope"

Do you have pitches.h copied into a tab (called pitches.h) with your sketch in the IDE?