Linux
從命令行列印並連接 Jack Audio 和 MIDI 埠
如何從命令行列印和連接 jack-audio 和 midi 埠,類似於ALSA MIDI
aconnect -io
的aconnect 20:0 132:1
輸入和輸出?
jack_lsp
$$ options $$ $$ filter string $$ 能夠列印所有插孔埠(音頻和 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