crosspad_midi
Send MIDI note-on/off events to the PC simulator, controlling notes and velocity for testing music functionality.
Instructions
[PC sim] Send one MIDI event to the running PC simulator (consolidated; replaces 4 v5 tools). Pick a type, then supply ONLY the fields it needs — extras are ignored. Required fields per type:
• note_on → note (velocity optional, default 127)
• note_off → note (velocity optional, default 0)
• cc → cc_num, value ⚠️ NOT YET SUPPORTED BY PC SIM (no midi_cc handler — call fails fast)
• program_change → program ⚠️ NOT YET SUPPORTED BY PC SIM (no midi_program_change handler — call fails fast)
channel (0-15) defaults to 0 for every type. Only note_on/note_off actually reach the sim today.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Required for type=note_on|note_off. MIDI note 0-127 (60 = middle C). | |
| type | Yes | MIDI event type. Required params — note_on: note (velocity?); note_off: note (velocity?); cc: cc_num,value; program_change: program. channel? defaults 0 for all. | |
| value | No | Required for type=cc. Controller value 0-127. | |
| cc_num | No | Required for type=cc. MIDI controller number 0-127. | |
| channel | No | MIDI channel 0-15 | |
| program | No | Required for type=program_change. Program number 0-127. | |
| velocity | No | Optional for type=note_on (default 127) and note_off (default 0). Ignored for cc/program_change. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | ||
| error | No | ||
| channel | No | ||
| details | No | ||
| success | Yes |