← 返回命令列表

Linux command

pw-midi2record 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Record MIDI 2 input to a UMP file

pw-midi2record [path/to/output.midi2]

Record from a specific source node

pw-midi2record --target [node_id] [path/to/output.midi2]

Force the legacy MIDI 1 byte-stream format

pw-midi2record --force-midi midi [path/to/output.midi2]

Record with verbose output

pw-midi2record -v [path/to/output.midi2]

Pipe MIDI 2 capture to another program

pw-midi2record - | [tool]

说明

pw-midi2record captures MIDI 2 events from the PipeWire graph and writes them to a file. It is an alias of pw-cat(1) invoked with the TYPE_MIDI2 data type, encoding events as Universal MIDI Packets (UMP) as defined by the MIDI 2.0 specification. UMP can carry both legacy MIDI 1 messages and MIDI 2 features (per-note controllers, 32-bit values, 16 groups of 16 channels). A MIDI 2 capable source — controller, software instrument, or upstream PipeWire node — must be connected for events to be recorded. When - is given as the file argument, MIDI data is written to standard output.

参数

-h, --help
Show help and exit.
--version
Show version information.
-v, --verbose
Enable verbose output.
-R, --remote _NAME_
Connect to the named PipeWire daemon.
--target _VALUE_
Source node serial or name. 0 disables linking.
--latency _VALUE_
Set node latency, e.g. 100ms, 2048 samples.
-P, --properties _JSON_
Extra stream properties as a JSON object.
-M, --force-midi _FORMAT_
Force MIDI format, midi (legacy bytes) or ump (Universal MIDI Packets, default).
-C, --monitor
Capture monitor ports of output nodes (when recording).

FAQ

What is the pw-midi2record command used for?

pw-midi2record captures MIDI 2 events from the PipeWire graph and writes them to a file. It is an alias of pw-cat(1) invoked with the TYPE_MIDI2 data type, encoding events as Universal MIDI Packets (UMP) as defined by the MIDI 2.0 specification. UMP can carry both legacy MIDI 1 messages and MIDI 2 features (per-note controllers, 32-bit values, 16 groups of 16 channels). A MIDI 2 capable source — controller, software instrument, or upstream PipeWire node — must be connected for events to be recorded. When - is given as the file argument, MIDI data is written to standard output.

How do I run a basic pw-midi2record example?

Run `pw-midi2record [path/to/output.midi2]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -h, --help do in pw-midi2record?

Show help and exit.