🎵 MIDI Generator

Default: 120 BPM. Range: 1 – 960

📝 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

Sets the default duration for all subsequent notes from this point forward.

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

You will create musical compositions using this text-based notation system. Your task is to generate sequences of notes, chords, and rests. When you compose, follow these rules:

FORMAT RULES:
- **Note Format:** Note[#|b]Octave [Duration]. Examples: C4 1/4, F#5 1/8, Bb3.
- **Notes & Octaves:** Use A-G (or do/re/mi/fa/sol/la/si/ti). Octave 0-8 is REQUIRED (C4 is middle C).
- **Chords:** Combine notes with +. Example: C4+E4+G4 1/2.
- **Rests:** Use _ for a silence of the default duration.
- **Duration:** Specify as 1/4, 1/2, 1/8, etc. If omitted, the default duration is used.
- **Default Duration:** Use ! SET duration=1/N to change the default duration for all subsequent notes from that point forward.
- **Separation:** Use commas or newlines between notes.

PRACTICAL EXAMPLES:
- Basic melody: C4 1/4, D4 1/4, E4 1/2, _ 1/4, G4 1/4
- Chords & durations: C4+E4+G4 1/2, F4+A4+C5 1/2, G4+B4+D5 1/2
- Using SET: ! SET duration=1/8, C4, D4, E4, F4, ! SET duration=1/4, G4, E4