Text Melody to MIDI
text_to_midiConvert note names (C4 E4 G4), chord symbols (Cmaj7, Am7), Jianpu (1 2 3 5), durations (:2, /8, h, q), and ties (-) into a standard MIDI file (base64), plus optional ABC and MusicXML 4.0 notation.
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": "text_to_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Tempo in beats per minute (20 to 400). | |
| name | No | Score and MIDI track title. | TuneWing Melody |
| melody | Yes | Note, chord, rest (R), or Jianpu sequence, e.g. 'C4 E4 G4 C5 | F4 A4 C5 F5 | G4h C4h'. | |
| include_abc | No | Include generated ABC notation in the response. | |
| include_musicxml | No | Include generated MusicXML 4.0 XML in the response. |