← 返回命令列表

Linux command

pw-midi2play 命令

文件

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

常用示例

Play a MIDI 2 (UMP) file

pw-midi2play [path/to/file.midi2]

Play to a specific PipeWire target node

pw-midi2play --target [node_id] [path/to/file.midi2]

Force the legacy MIDI 1 byte-stream format instead of UMP

pw-midi2play --force-midi midi [path/to/file.midi2]

Play with verbose output

pw-midi2play -v [path/to/file.midi2]

Read MIDI 2 data from stdin

cat [file.midi2] | pw-midi2play -

说明

pw-midi2play sends MIDI 2 events into the PipeWire graph for playback. It is an alias of pw-cat(1) invoked with the TYPE_MIDI2 data type, which expects Universal MIDI Packet (UMP) containers as defined by the MIDI 2.0 specification. UMP packets carry both legacy MIDI 1 messages and MIDI 2 features such as 32-bit-per-channel resolution, per-note controllers, and 16 groups of 16 channels. The tool itself does not synthesise audio: events are routed through the PipeWire graph to a MIDI 2 capable synthesiser or hardware device that renders sound. When - is given as the file argument, MIDI data is read from standard input.

参数

-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_
Target 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).

FAQ

What is the pw-midi2play command used for?

pw-midi2play sends MIDI 2 events into the PipeWire graph for playback. It is an alias of pw-cat(1) invoked with the TYPE_MIDI2 data type, which expects Universal MIDI Packet (UMP) containers as defined by the MIDI 2.0 specification. UMP packets carry both legacy MIDI 1 messages and MIDI 2 features such as 32-bit-per-channel resolution, per-note controllers, and 16 groups of 16 channels. The tool itself does not synthesise audio: events are routed through the PipeWire graph to a MIDI 2 capable synthesiser or hardware device that renders sound. When - is given as the file argument, MIDI data is read from standard input.

How do I run a basic pw-midi2play example?

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

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

Show help and exit.