noun
melody
MEL-uh-dee/ˈmelədi/
A sequence of musical notes forming a recognizable tune.
The musician plays a smooth melody on the flute.

Etymology
Both elements concern song: together they named singing, chanting, or a tune for lyric poetry. The meaning developed from song and agreeable musical sound into a sequence of notes forming a distinct tune.
In context
the melody is dictating the right hand chords which are just a simple triadic harmonization of the melody
More examples
- I remember the melody, but I have forgotten the words.
- The violins carry the melody while the piano provides accompaniment.
- She writes catchy melodies that people can easily hum.
Forms
melody · melodies
melodic adjective — having a pleasing or recognizable tune