如何从命令行打印和连接插孔音频和 MIDI 端口(类似于ALSA MIDI 的输入和输出)aconnect -io
?aconnect 20:0 132:1
答案1
杰克_lsp[选项] [过滤字符串]
能够打印所有插孔端口(音频和MIDI)。
从帮助文本:
列出活动的插孔端口,并可选择显示额外信息。 (可选)过滤与任何选项后提供的所有字符串匹配的端口。
Display options:
-s, --server <name> Connect to the jack server named <name>
-A, --aliases List aliases for each port
-c, --connections List connections to/from each port
-l, --latency Display per-port latency in frames at each port
-L, --latency Display total latency in frames at each port
-p, --properties Display port properties. Output may include:
input|output, can-monitor, physical, terminal
-t, --type Display port type
-h, --help Display this help message
--version Output version information and exit
欲了解更多信息,请参阅http://jackaudio.org/
要从命令行连接端口,您可以使用jack_connect
.
您jack_lsp
可以获得这样的输出,显示所有当前的插孔端口:
system:capture_1
system:capture_2
system:playback_1
system:playback_2
system:midi_capture_1
system:midi_playback_1
amsynth:L out
amsynth:R out
amsynth:midi_in
system:midi_playback_2
system:midi_capture_2
例如,您可以通过运行以下命令system:midi_capture_1
进行连接amsynth:midi_in
:jack_connect system:midi_capture_1 amsynth:midi_in
要查看连接了哪些端口,您可以使用jack_lsp -c
并获得与此类似的输出:
system:capture_1
system:capture_2
system:playback_1
amsynth:L out
system:playback_2
amsynth:R out
system:midi_capture_1
amsynth:midi_in
system:midi_playback_1
amsynth:L out
system:playback_1
amsynth:R out
system:playback_2
amsynth:midi_in
system:midi_capture_1
system:midi_playback_2
system:midi_capture_2