What is the musical term that refers to a melodic theme

The musical term that refers to a melodic theme is called a motif.

The musical term that refers to a melodic theme is "motif." A motif is a short musical idea or phrase that is repeated and developed throughout a composition. It can be made up of a few notes or a longer series of musical phrases. Motifs are often used to create musical coherence and can be heard in various parts of a piece, sometimes with variations or alterations.