cubase_midi_import
Creates MIDI tracks with notes in a Cubase project by importing supplied note data or an existing .mid file.
Instructions
Add MIDI data to the managed project as new tracks: this is how MIDI tracks with notes are created. Supply either song (tracks with notes in quarter-note beats: pitch 0-127, start, duration, velocity; optional channel 0-15, GM program, controller and pitch-bend events; channel 9 is the GM drum channel) or midiPath (an existing local .mid file). The data is written as a Standard MIDI File and imported once through the MIDI file import of the host, following the Cubase MIDI import preferences of this installation; here every file track becomes one MIDI track routed to a HALion Sonic instance that the import creates, so put a whole arrangement into one call where possible. Tempo and time-signature events of the file are not applied to an existing project: use cubase_tempo_set and cubase_transport_set. The result lists the channels that the import added; read the notes back with cubase_midi_read. Never repeated automatically.
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": {
"session": "<session>",
"confirmImport": "<confirmImport>"
},
"name": "cubase_midi_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| song | No | ||
| session | Yes | ||
| midiPath | No | ||
| confirmImport | Yes |