Back to tips

How to Chat with the AI Agent to Generate ABC Scores & Tweak Them into Songs

Say goodbye to black-box random music generation! Learn how to use YuE2’s AI Agent to draft precise ABC musical notation, refine it on an interactive staff with piano preview, and produce full-length master tracks.

Sep 25, 2026YuE2 Sound LabYuE2 Sound Lab

In conventional AI music generators, crafting a song is often like playing a lottery. You type a generic prompt, and the AI outputs a complete audio track. If the melody in the chorus misses the mark or the harmonic progression feels disconnected, your only option is to burn more credits and re-roll from scratch.

YuE2 changes the game entirely. As a premier 3B open-weights foundation model for music generation, YuE2 natively accepts ABC musical notation guidance. Coupled with an embedded AI Music Agent, you can have a natural conversation to draft a tailored musical score, inspect and edit notes directly on an interactive sheet music staff, and render radio-ready tracks on cloud GPUs.

Here is your comprehensive guide to mastering the "Chat ➔ Edit Score ➔ Render Music" professional workflow.


1. Why ABC Notation Unlocks Real Musical Control

ABC notation is a lightweight, human-readable ASCII format for sheet music:

  • Deterministic Melodic Direction: You dictate the exact pitches, rhythm, and cadences of your verses and hooks instead of leaving melodies to chance.
  • Micro-Tuning Freedom: Tweak a single chord, extend a crescendo, or adjust high notes with surgical precision.
  • DAW & Industry Compatibility: ABC scores easily render to standard Western musical notation, export to standard MIDI, and import into DAWs like Logic Pro, Ableton, FL Studio, Cubase, or MuseScore.

2. Chatting with the AI Agent to Generate ABC Scores

Inside the YuE2 Studio, open the AI Assistant panel at the bottom or right sidebar.

The 4 Pillars of an Effective Music Prompt

When asking the Agent to compose, specify:

  1. Key Signature & Meter: e.g., "C Major, 4/4 time" or "A Minor, 6/8 ballad tempo".
  2. Tempo (BPM): e.g., "Gentle 85 BPM" or "Energetic 128 BPM".
  3. Song Section: Mention if this score is for the Verse, Pre-Chorus, or Chorus hook.
  4. Harmonic Progression & Vibe: e.g., "1-6-4-5 progression (C - Am - F - G) with an uplifting ascending vocal melody".

Example Conversation

Your Request: "Write an ABC score snippet for an acoustic indie-pop verse in C Major, 4/4 meter, 90 BPM. Use a breezy C - G - Am - F chord sequence and provide a clean ABC code block."

AI Assistant Response:

X:1
T:Morning Breeze
C:YuE2 AI Assistant
M:4/4
L:1/8
Q:1/4=90
K:C
|: "C" E3 D E2 G2 | "G" D4 z2 D2 | "Am" C3 D E2 C2 | "F" D4 z4 :|
|: "C" c3 B A2 G2 | "G" B4 z2 D2 | "F" A3 G F2 E2 | "C" C4 z4 :|

3. Loading the Score into the Studio Workspace

  1. In the Agent chat message, click "Apply to Score Editor" (or copy the ABC text).
  2. Expand the ABC Score Visualizer in the Studio.
  3. The editor instantly renders your code into clean, publication-grade musical staff notation!

4. How to Tweak & Audition Your Score

Core ABC Syntax Cheat Sheet

  • Pitch:
    • Capital letters C D E F G A B denote the middle octave (C4 to B4).
    • Lowercase letters c d e f g a b represent the higher octave (C5 to B5).
    • Commas C, move an octave down; apostrophes c' move an octave up.
  • Duration: Based on default length L:1/8 (eighth note).
    • C = 1 eighth note.
    • C2 = quarter note (double length).
    • C4 = half note.
    • C/2 = sixteenth note.
  • Rests: Denoted by z (e.g., z2 for a quarter rest).
  • Chords: Wrapped in quotation marks, such as "C", "Am", "G7".

Practical Editing Tips

  • Make Chorus Soar: If a climax note lacks punch, raise a G2 to an octave-higher g2 or e2.
  • Shift Emotions with Minor Harmonies: Swap a standard "C" chord with "Am7" or "Fmaj7" to inject melancholic nostalgia.
  • 🎹 Instant Piano Preview: Click the piano audition button above the sheet music. Our web synthesizer will play your score note-by-note so you can verify harmony before spending generation credits.
  • ⬇ Export MIDI: Need further arranging in your DAW? Click "Export MIDI" to download the .mid file instantly.

5. Rendering with YuE2 3B

Once your score is tuned to perfection:

  1. Enter Lyrics & Section Markers:
    [verse]
    The morning sun breaks through the haze
    Remembering all those summer days
    [chorus]
    Time moves forward like a stream
    Chasing the echo of a dream
    
  2. Add Genre Tags: acoustic folk pop, warm female vocal, fingerstyle guitar, soft piano, nostalgic, 90 bpm
  3. Click "Generate Song": YuE2’s flow-matching diffusion network harmonizes your lyrics and prompt strictly to the ABC melody, delivering an authentic, studio-grade full song.

Try this workflow today in the YuE2 Studio and take total creative control over your AI music production!