noun
main melody; lead
In music, the primary melodic line of a piece, as opposed to accompaniment or harmony.
この曲の主旋律はとても覚えやすい。
The main melody of this piece is very easy to remember.
バイオリンが主旋律を担当する。
The violin carries the main melody.
noun
central theme; main thread
Figurative extension: the core idea or recurring theme in a literary work, critique, or argument.
この小説の主旋律は「喪失と再生」だ。
The central theme of this novel is 'loss and rebirth'.
メロディー is the common loanword for 'melody' and is more casual; 主旋律 is more technical and explicitly marks the melody as the main one.
Compound of 主 (しゅ, 'main') + 旋律 (せんりつ, 'melody'). 旋律 itself is a Sino-Japanese word composed of 旋 ('revolve, turn') and 律 ('rhythm, law').