add_melody
Adds a melody to a song project from note:beats text notation, creating a Lead track when none is specified and supporting chords, rests, accents, ties, and optional bar, sound, and name settings.
Instructions
A melody in text: "E5:1 D5:0.5 C5:0.5 A4:2 r:1 ..." = note:beats, r = rest, [C4 E4 G4]:2 = chord, ! accent, ? soft, ~ tie to the next equal note. Durations carry over when omitted. track omitted = a new "Lead" track.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"melody": "<melody>"
},
"name": "add_melody"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | ||
| bars | No | ||
| name | No | ||
| sound | No | ||
| track | No | ||
| melody | Yes | ||
| project | No |