DOKK / manpages / debian 11 / midish / smfrec.1.en
SMFREC(1) General Commands Manual SMFREC(1)

smfrecrecord a standard MIDI file

smfrec [-amxy] [-g measure] [-d devname] [-i devname] midifile

The smfrec utility records a MIDI file. It can add recorded events on top of an existing midi file. To stop performance, send an interrupt signal to smfrec (for instance by pressing control ^C on the terminal). The options are as follows:

Append mode. Play the given midi file and append to it a new track containing recorded events.
Use metronome.
Synchronise to the default midi(4) device instead of using an internal clock source.
Send midi timing information to the default device. Useful if it is a slave MIDI sequencer.
measure
Start playback and recording at the given measure number.
filename
Default midi(4) device from which to record and on which to send midi events. If not specified, the content of the MIDIDEV environment variable will be used instead.
filename
Alternate input midi(4) device. Voice events (notes, controllers, etc) received on the input device will be recorded and sent as-is to the default device. Without this flag, the default device will be used for input.

The smfrec utility is an interface to midish(1). If more specific features are needed, the user may consider using midish(1).

The following will play mysong.mid and append to it recorded events from device /dev/rmidi4; metronome will be used.

$ smfrec -a -m -d /dev/rmidi4 mysong.mid

smfplay(1), midish(1), midi(4)

August 27, 2005 Debian