🎵 MIDI Generator

📝 Format Guide

Note Format: Note[#/b] Octave Duration
  • Note: A-G (add # for sharp, b for flat) or do/re/mi/fa/sol/la/si/ti
  • Octave: 0-8 (required)
  • Duration: 1/4, 1/2, 1/8, etc. (optional, default: 1/4)
Examples (Letter Notation): C4 1/4, D#4 1/2, E4, Gb5
Examples (Solfège): do4, re4 1/8, mi5
Sharps & Flats: C#4 (C sharp)
Db4 (D flat)
F#5, Bb3
Rests/Silences: _ (default duration)
_ 1/8 (specific duration)
1/4 (duration alone)
Set Default Duration: ! SET duration=1/8
Chords (Simultaneous Notes): C4+E4+G4 1/2
C#4+F4+G#4
do4+mi4+sol4 1/4
Comments: C4 // This is middle C

All notation is case-insensitive. Separate notes with commas or newlines.

🤖 Instructions for LLMs

When generating music for this format:

  • Use format: Note[#/b] + Octave + Duration (e.g., C4 1/4, C#4 1/4, or Db5 1/8)
  • Notes: A-G (add # for sharp, b for flat) OR do/re/mi/fa/sol/la/si/ti (solfège)
  • Octave required (0-8, with 4 = middle C)
  • Duration optional (default: 1/4) — use 1/4, 1/2, 1/8, 1/16, etc.
  • Chords: Join notes with + (e.g., C4+E4+G4 1/2)
  • Rests: _ (underscore)
  • Default duration: ! SET duration=1/8
  • Separate notes with commas or newlines
  • Example: C4 1/4, E4 1/4, G4 1/4, C4+E4+G4 1/2