place_motif
Insert a saved motif into an existing MIDI item without deleting its notes, adapting it to the song's key, mode, octave, and speed.
Instructions
Puts a saved motif into a MIDI item (existing notes stay): in the song's key and mode, at an octave and speed that fit the moment.
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": {
"name": "<name>",
"item_id": "<item_id>"
},
"name": "place_motif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Move it into this key and mode, e.g. 'D minor', 'D major' (default: as saved) | |
| name | Yes | A motif from list_motifs | |
| start | No | Where it starts, in QN from the item start | |
| octave | No | Octaves up (+) or down (-), e.g. -1 for low brass | |
| item_id | Yes | MIDI item id from create_midi_item/get_track_details, or "selected" | |
| stretch | No | Rhythm: 2 = twice as slow (a grand statement), 0.5 = twice as fast | |
| velocity | No | Play every note at this velocity (default: as saved) | |
| semitones | No | Extra transposition |