ComposerX -- Demo

Multi-Agent Symbolic Music Composition with LLMs

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.

image demostration

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.

Sheet Music Representation ABC Notation Representation
Download MIDI

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.

Sheet Music Representation ABC Notation Representation
Download MIDI

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.

Sheet Music Representation ABC Notation Representation
Download MIDI

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.

Sheet Music Representation ABC Notation Representation
Download MIDI

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.

Sheet Music Representation ABC Notation Representation
Download MIDI

Example 6

Urban Jazz Nights: Write a jazz piece that captures the essence of a vibrant city at night, using a motif of smooth, flowing lines and a progression like Fm7-Bb7-Ebmaj7-Abmaj7. Use a saxophone to lead the melody, set to a medium swing tempo, reflecting the rhythmic pulse of city nightlife.

Sheet Music Representation ABC Notation Representation
Download MIDI

Example 7

Blues Alley Tale: Write a classic 12-bar blues in the key of E, using the standard I-IV-V progression (E7-A7-B7). Keep the tempo moderate to slow, allowing each chord to carry the emotional weight of the blues narrative. Add a soulful harmonica or guitar melody to enhance the storytelling aspect of the music.

Sheet Music Representation ABC Notation Representation
Download MIDI

Example 8

Renaissance Faire Dance: Take a step back in time to a cheerful and historical Renaissance faire dance in G major. The chord progression should be G-C-D-G, highlighting instruments like the lute, recorder, and viola da gamba. Set a lively tempo and create a dance-like rhythm that captures the spirit of a Renaissance celebration. The emotion should be cheerful and historical.

Sheet Music Representation ABC Notation Representation
Download MIDI

Example 9

Dreamy Indie Road Trip: Compose a dreamy indie pop piece in G major. The tempo should be medium, creating a relaxed and contemplative mood suitable for a road trip. The chord progression will be G, D, Em, C, and should unfold over 24 bars. The ensemble should include four voices, featuring acoustic guitar, synth, bass, and drums. The acoustic guitar should be the primary melodic driver, offering gentle, rhythmic strumming that evokes the feeling of a leisurely journey. The synth should add a layer of dreaminess, with ethereal pads or soft, melodic lines that enhance the song's contemplative nature. The bass should provide a solid, yet unobtrusive foundation, grounding the composition while allowing the other instruments to shine. Drums should maintain a steady, simple beat, echoing the steady pace of a road trip. This composition should encapsulate the essence of a dreamy, introspective journey, perfect for long drives along scenic routes.

Sheet Music Representation ABC Notation Representation
Download MIDI

Example 10

Retro Video Game Adventure: Develop a playful chiptune piece in F major with a fast tempo. The chord progression should be F, G, Am, Bb, spanning 32 bars. Use 8-bit synth and electronic drums. The 8-bit synth should provide nostalgic, catchy melodies reminiscent of classic video games, while the electronic drums should add a rhythmic, upbeat backing. This track should evoke the excitement and adventure of retro video gaming.

Sheet Music Representation ABC Notation Representation
Download MIDI