die Melodie
melody
A sequence of notes that forms a recognizable musical unit and is often the catchiest part of a piece of music.
Dieses Lied hat eine sehr schöne und eingängige Melodie.
This song has a very beautiful and catchy melody.

melody
Loading your saved state.
melody
A sequence of notes that forms a recognizable musical unit and is often the catchiest part of a piece of music.
Dieses Lied hat eine sehr schöne und eingängige Melodie.
This song has a very beautiful and catchy melody.

'Melodie' is an international word. It is very similar in many languages (e.g. English 'melody', French 'mélodie') and is therefore easy to recognize and understand.
Sogar ohne den Text zu verstehen, erkannte ich die Melodie sofort.
Even without understanding the lyrics, I recognized the melody immediately.
You can not only hear or play a melody. In everyday language, it is often combined with verbs like 'summen' (to hum), 'pfeifen' (to whistle), or 'erkennen' (to recognize).
Er pfeift immer eine fröhliche Melodie, wenn er gute Laune hat.
He always whistles a cheerful melody when he's in a good mood.
Common adjectives that describe a melody are 'eingängig' (catchy/easy to remember), 'einfach' (simple), 'bekannt' (well-known), 'traurig' (sad), or 'fröhlich' (cheerful).
Das Kinderlied hat eine sehr einfache Melodie.
The children's song has a very simple melody.
topic / theme
'das Thema' and 'die Melodie' can be close in meaning in music. 'die Melodie' is a sequence of notes that you can hear and often sing along to. In music, 'das Thema' is an important melody or musical idea that returns in the piece and can be changed. Learners may confuse the words because a musical theme often sounds like a melody. But 'Melodie' is more general for the sequence of notes; 'Thema' emphasizes the special role of that sequence of notes in the piece of music.

Adam summt die Melodie des Liedes den ganzen Nachmittag.
Adam hums the melody of the song all afternoon.
Im Konzert kehrt das Thema am Ende leise zurück.
In the concert, the theme returns quietly at the end.