Direct calque of the Greek-derived 'rhapsody':
狂 (wild, unrestrained) +
想 (thought, imagination) +
曲 (musical piece). The character math literally renders 'wild-imagination-piece' - a free-form composition with shifts in mood. Used for Liszt's 《
匈牙利狂想曲》, Gershwin's 《
蓝色狂想曲》 (Rhapsody in Blue), and Queen's 《
波西米亚狂想曲》 (Bohemian Rhapsody).