An electronic musical apparatus comprising: first retrieval means for retrieving tonality information; second retrieval means for retrieving degree information; reception means for receiving input note information; extraction means for extracting tone pitch information from the input note information received by the reception means; first determination means for determining a scale on the basis of the tonality information retrieved by the first retrieval means; first judgment means for judging whether the note indicated by the tone pitch information extracted from the input note information is one of the scale notes or not; second determination means for determining the note indicated by the tone pitch information extracted from the input note information as a reference scale note, when it is judged by the first judgment means that the note indicated by the tone pitch information extracted from the input note information is one of the scale notes; third determination means for determining one of the scale notes which is a higher or lower scale note closest to the note indicated by the tone pitch information extracted from the input note information as the reference scale note, when it is judged by the first judgment means that the note indicated by the tone pitch information extracted form the input note information is not any scale notes of the scale notes; fourth determination means for determining a harmony note which is one of the scale notes and a certain interval away from the reference scale note determined by the second determination means or the third determination means, the certain interval being indicated by the degree information retrieved by the second retrieval means; and generation means for generating the harmony note in accordance with the tone pitch of the harmony note determined by the fourth determination means. first retrieval means for retrieving tonality information; second retrieval means for retrieving degree information; reception means for receiving input note information; extraction means for extracting tone pitch information from the input note information received by the reception means; first determination means for determining a scale on the basis of the tonality information retrieved by the first retrieval means; first judgment means for judging whether the note indicated by the tone pitch information extracted from the input note information is one of the scale notes or not; second determination means for determining the note indicated by the tone pitch information extracted from the input note information as a reference scale note, when it is judged by the first judgment means that the note indicated by the tone pitch information extracted from the input note information is one of the scale notes; third determination means for determining one of the scale notes which is a higher or lower scale note closest to the note indicated by the tone pitch information extracted from the input note information as the reference scale note, when it is judged by the first judgment means that the note indicated by the tone pitch information extracted form the input note information is not any scale notes of the scale notes; fourth determination means for determining a harmony note which is one of the scale notes and a certain interval away from the reference scale note determined by the second determination means or the third determination means, the certain interval being indicated by the degree information retrieved by the second retrieval means; and generation means for generating the harmony note in accordance with the tone pitch of the harmony note determined by the fourth determination means.