Abstract

Music composition represents the creative side of humanity, and itself is a complex task that requires, abilities to understand and generate information in two axes: time and frequency. While demonstrating impressive capabilities in STEM subjects, current LLMs easily fail in this task, generating ill-written music even when equipped with modern techniques like In-Context-Learning and Chain-of-Thoughts. To further explore and enhance LLMs’ potential in music composition by leveraging their reasoning ability and the large knowledge base in music history and theory, we propose ComposerX, an agent-based symbolic music generation framework. We find that applying a multi-agent approach significantly improves the music composition quality of GPT4. We show that ComposerX can generate coherent polyphonic musical compositions with intriguing melodies, following user instructions.

ComposerX.drawio.png

Example 1

Vintage French Chanson: Create a nostalgic chanson piece in C major with a slow tempo. The chord progression will be C, Am, Dm, G, played over 16 bars. Utilize accordion, violin, and upright bass. The accordion should lead with its melodious and expressive sound, the violin should add a romantic and wistful quality, and the upright bass should provide a warm, supporting foundation. This composition should evoke the charm and sentimentality of a vintage French chanson.

001Rue_des_Souvenirs.mp3

sample1.png

sample1.jpeg

Example 2

River Journey: Develop a composition that follows the flow of a river, using a motif of fluid, meandering melodies and a progression like C-G-Am-Em. Incorporate sounds that mimic the gurgling water and wildlife along the riverbank, set to a tempo that's both tranquil and lively.

sample2.png

sample2.jpeg

011River_Journey.mp3

Example 3

Romantic Parisian Cafe: Create a romantic French piece in F major, following the chord progression F-Bb-C7-F. Use instruments like the accordion, violin, and gypsy guitar to set a moderate and romantic tempo. The rhythm should be sensual, much like the ambiance of a cafe in Paris, capturing the romantic and charming essence of the city of love.

sample3.jpeg

017Romantic_Parisian_Stroll.mp3

Example 4

Journey Through the Highlands: Compose a piece that reflects the rugged beauty of the Scottish Highlands. Use a bagpipe lead with a chord progression of A-D-E-A. The tempo should be brisk, with a rhythm that feels like a spirited walk through rolling hills and green valleys. Incorporate the sounds of nature to enhance the outdoor ambiance.

025Journey_Through_the_Highlands.mp3

sample3.png

sample4.png

sample4.jpeg

Example 5

Tropical Rainforest Rhapsody: Compose a piece inspired by the lushness of a tropical rainforest, using a motif of intricate, layered rhythms and a progression like Dm-C-Bb-A. Include sounds that mimic raindrops and wildlife, creating a rich tapestry of natural harmony, set to a medium tempo.

033Tropical_Rainforest_Rhapsody.mp3

sample5.png

sample5.jpeg

Example 6