/media-os:media-midi [action]from media-os
Sends, receives, and routes MIDI 1.0/2.0 messages from the CLI, and parses or authors Standard MIDI Files. Covers sendmidi/receivemidi, ALSA tools, mido/python-rtmidi, UMP packets, MIDI-CI, CC numbers, and sysex framing.
Ships in media-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Context: $ARGUMENTS
Wire-level MIDI 1.0 + 2.0, Standard MIDI Files (SMF), and control-surface plumbing. Not a DAW — for sequencing use a DAW; this skill is the CLI layer under it.
list-ports)send note-on --port "IAC" --channel 1 --note 60 --velocity 100)dump)smf-dump file.mid)smf-write --json events.json --out song.mid).mid files programmatically (Standard MIDI File format 0/1/2).midictl.py list-ports probes the platform and shells out to the appropriate tool:
sendmidi list (if installed) or uses Core MIDI directly via mido/rtmidi if present.amidi -l + aconnect -l (ALSA).sendmidi list.uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py list-ports
Install tools (macOS/Linux/Windows cross-platform): brew install gbevin/tools/sendmidi (also installs receivemidi).
# Note on/off at channel 1 (1-indexed in CLI, 0x90/0x80 on wire)
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py send note-on \
--port "IAC Driver Bus 1" --channel 1 --note 60 --velocity 100
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py send note-off \
--port "IAC Driver Bus 1" --channel 1 --note 60
# Continuous controller
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py send cc \
--port "IAC Driver Bus 1" --channel 1 --cc 74 --value 64
# Program change
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py send program \
--port "IAC Driver Bus 1" --channel 1 --program 42
# System Exclusive
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py send sysex \
--port "IAC Driver Bus 1" --hex 'F0 7E 7F 06 01 F7' # Identity request
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py dump --port "MyController"
# or on Linux specifically via aseqdump
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py monitor --port 24:0
# Parse .mid to human-readable events + JSON
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py smf-dump song.mid --format json
# Author .mid from a JSON event list
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py smf-write \
--json events.json --out song.mid --ppq 480 --format 1
Input JSON schema (each entry = {delta_ticks, type, channel, data1, data2, [meta: name, tempo, time_sig, ...]}).
F0 <manufacturer> ... F7. Never truncate before F7 — dropped F7 hangs the device. Universal Real-Time / Non-Real-Time sysex use mfr IDs 7E/7F.MThd (6 B: format, ntracks, division) + MTrk chunks. Each MTrk event is VLQ delta-time + event stream. Format 0 = one track, Format 1 = multiple tracks sharing tempo map, Format 2 = independent tracks (rare).0x40 = 64, 0x81 0x00 = 128, 0x82 0x80 0x00 = 32768. Get this wrong and your whole SMF is misaligned.--channel values.rtmidi-cli does NOT exist as a packaged binary. Don't reference it. The Python python-rtmidi library is real; sendmidi/receivemidi by gbevin are the real cross-platform CLIs.https://midi.org/join-now. Public overviews live at https://midi.org/specs. Link both; note the gate.client:port (e.g. 128:0), not device paths. Use aconnect -l to enumerate.for n in 60 64 67; do
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py send note-on \
--port "IAC Driver Bus 1" --channel 1 --note $n --velocity 100
done
sleep 1
for n in 60 64 67; do
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py send note-off \
--port "IAC Driver Bus 1" --channel 1 --note $n
done
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py send sysex \
--port "MyController" --hex 'F0 7E 7F 06 01 F7'
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py smf-dump song.mid
cat > events.json <<'JSON'
[
{"delta": 0, "type": "tempo", "bpm": 120},
{"delta": 0, "type": "note-on", "channel": 1, "note": 60, "velocity": 100},
{"delta": 480, "type": "note-off", "channel": 1, "note": 60}
]
JSON
uv run ${CLAUDE_SKILL_DIR}/scripts/midictl.py smf-write --json events.json --out c.mid
references/cc-table.md — complete MIDI 1.0 CC number table (0-127) with official names.references/ump-packets.md — MIDI 2.0 UMP type/status codes.port "X" not foundCause: Port name typo, IAC disabled (macOS), or ALSA sequencer subsystem not loaded.
Solution: Run list-ports to see the canonical names. On macOS enable IAC in Audio MIDI Setup. On Linux ensure snd-seq module is loaded.
Cause: Missed note-off. Happens with aborted scripts.
Solution: Send CC 123 (All Notes Off) to the channel or power-cycle the synth.
sendmidi not foundCause: Not installed.
Solution: brew install gbevin/tools/sendmidi. Helper falls back to ALSA amidi / Python mido/rtmidi if any is available.
Cause: Malformed VLQ or missing F7 terminator in an embedded sysex.
Solution: Inspect the file with od -c or xxd; compare against spec in references/.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub damionrashford/media-os --plugin media-os110 skills in this plugin
/audio-coreaudioManipulate macOS audio at the Core Audio HAL layer: afinfo (audio file metadata), afplay (play), afconvert (convert format/rate/bit-depth/channel layout), say (TTS), SwitchAudioSource (change default input/output/system device — brew install switchaudio-osx), audiodevice CLIs (npm/Go variants), AppleScript via osascript to drive System Preferences Sound. HAL plugins at /Library/Audio/Plug-Ins/HAL/ load virtual drivers (BlackHole 2ch/16ch/64ch, Loopback, Background Music). Aggregate Device (drift-corrected multi-in) and Multi-Output Device via Audio MIDI Setup.app or AudioHardwareCreateAggregateDevice. Use when the user asks to change default macOS audio device, route audio between apps on Mac, install BlackHole, build an Aggregate Device, convert audio files with afconvert, or script Mac audio from the terminal.
/audio-jackRoute professional low-latency audio with JACK Audio Connection Kit (jackaudio.org): jackd server (ALSA/CoreAudio/PortAudio/ASIO backends), jack_control (D-Bus JACK2 config), jack_lsp (list ports/connections), jack_connect/jack_disconnect (manage links), jack_cpu_load, jack_samplerate, jack_bufsize (runtime period size), jack_transport, jack_rec (multi-channel WAV recording), jack_iodelay (round-trip latency), jack_wait, jack_midi_dump. JACK1 C maintenance vs JACK2 C++ multicore. Modern Linux swaps jackd for PipeWire's libjack shim — same client API. JackTrip for uncompressed multichannel UDP over the Internet. Use when the user asks to run a JACK server, connect audio clients, measure roundtrip latency, record from JACK ports, set JACK period size, or bridge JACK over the network with JackTrip.
Other plugins' skills for the same job