# Capturing MIDI from ScummVM
## Setup (Linux)
Load the MIDI through kernel module (if `Midi Through` is not already listed):
$ sudo modprobe snd-seq-dummy
Check available MIDI ports:
$ arecordmidi -l
Look for a `Midi Through` port (e.g., `14:0`).
## Recording
Start recording in one terminal:
$ arecordmidi -p 14:0 output.mid
Launch ScummVM pointed at the through port in another:
$ scummvm --midi-driver=alsa --output-port=14:0
Play through the desired scene, then stop both processes.
## Rendering
$ cargo run -p moont-render -- -c CM32L_CONTROL.ROM -p CM32L_PCM.ROM output.mid output.wav