Live Midi
live_midiPlay a MIDI keyboard, pads, or MPE controller through a live set: route input to a track or instrument, swap sounds, and log notes against the beat.
Instructions
Play a MIDI input (a keyboard, a pad, a loopMIDI port) through the live set: the person plays along from the same speakers. source: the input's name or a unique part of it (midi_sources), or 'screen keys' (the on-screen keys page, live_keys_page); with no source, says what is plugged in and what is patched. What it plays: track='' (that track's sound, its baked effects included) or instrument=... (as live_track takes it: 'preset:', a dict, a code voice). Call again with another track or instrument to swap: the old sound plays until the new notes land. The notes render once on the render workers (C2 to C7, or a kit's pads; a few seconds to a minute); a key then sounds one output buffer after the press (live_status says how long). Played keys skip the track's effects and the safety limiter (a soft clip guards them). volume_db: the keys' level, at most +6 (default: the track's fader, or -6 dB for an instrument). transpose: semitones; channel: 1 to 16 (0 = every channel, the default). Every key is logged with the beat it sounded against to /live/midi/.jsonl (live_played reads it back as notes). remove=True unpatches. Expression: when the sound is a performer voice with lanes (voice_help lists them), pitch bend drives its bend lane (+-2 semitones), the mod wheel (cc:1) its vib lane (0..50 cents) and channel pressure (and poly pressure, per key) its level lane (0..+6 dB), on the notes of that channel. lanes: the map as data, as midi_write takes it, {lane: {'midi': 'bend' | 'pressure' | 'cc:', 'range': [lo, hi]}} or {lane: None} to turn one off; a lane named here is driven even when the sound does not have it (e.g. {'bend': {'midi': 'bend', 'range': 12}} on a synth). Live, a key plays a note rendered ahead, so lanes move it only as pitch and gain: bend, vib and level. mpe: an MPE controller, each note on its own channel with its own bend (+-48) and pressure, and a master channel whose values add to every note of its zone. True: the zones the controller configured, else the lower zone; 'lower': the lower zone (channel 1 the master, 2-16 a note each); 'upper': the upper zone (channel 16 the master, 15 down to 1). The controller's own MPE Configuration Message (RPN 6, sent when it connects) sets the zones and their sizes, both zones of a split keyboard included (a zone you named shrinks to make room, as the MPE spec says), and the news says so; mpe=False plays each channel as its own part and ignores it, and so does a patch on one channel (channel=). A message bound with live_map stays that map's control. Tell the person before their keys first sound. Reach for it when the person wants to play their MIDI keyboard, pads or MPE keyboard through the set, its pitch bend wheel, pressure and mod wheel included.
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": {
"project": "<project>"
},
"name": "live_midi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mpe | No | ||
| lanes | No | ||
| track | No | ||
| remove | No | ||
| source | No | ||
| channel | No | ||
| project | Yes | ||
| transpose | No | ||
| volume_db | No | ||
| instrument | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |