个人工具

UbuntuHelp:HowToQjackCtlConnections

来自Ubuntu中文

Oneleaf讨论 | 贡献2007年5月13日 (日) 11:41的版本 (New page: {{From|https://help.ubuntu.com/community/HowToQjackCtlConnections}} {{Languages|php5}} This is a very basic tutorial that should give you an idea of how to use the Qjack``Ctl Connections w...)

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航, 搜索

This is a very basic tutorial that should give you an idea of how to use the Qjack``Ctl Connections window.

The Connections window in Qjack``Ctl provides a quick and easy way for you to make your audio and MIDI connections between your JACK-enabled applications. It isn't as advanced as the Patchbay, in that it can't save and load your settings to files, but it is easier to get going quickly, and is good if you don't care about saving your configuration to reload at a later time.

For this simple tutorial, we will assume that you have Qjack``Ctl installed and set up JACK per UbuntuHelp:HowToJACKConfiguration. We will show you how to connect the Virtual MIDI Keyboard application to ZynAddSubFX, and get some nice sounds on your speakers. At the end of this tutorial, you will have a basic understanding of MIDI and audio routing with JACK, and you should be able to apply these concepts to meet your needs.

Firstly, install the applications we will be using:

 sudo apt-get install vkeybd zynaddsubfx
</code>

Now go to '''Applications > Sound & Video''' and launch the following applications: JACK Control, VKey``Bd, and ZynAddSubFX. Be sure to load JACK Control first, the launch order of other applications doesn't matter.

You should now have all three applications loaded. Click on the Connect button in the Qjack``Ctl main window.

attachment:TutQjackCtlConnections2.png

This will open up a new window, which is the Connections window, on the Audio tab. In the left pane, you have the Readable Client list (audio outputs), and in the right pane you have the Writable Client list (audio inputs). We want to have the output of ZynAddSubFX connected to the sound card's ALSA input so that we can hear ZynAddSubFX's sounds.

Click on the ZynAddSubFX entry in the left pane, and click on the alsa_pcm entry in the right pane, and then click on the Connect button.

attachment:TutQjackCtlConnections3.png

You will now see a line drawn between the left and right panes. This represents an audio connection, and is like a virtual audio patch cable. Think of it this way: you just plugged your synthesizer into a set of speakers.

Now click on the MIDI tab.

attachment:TutQjackCtlConnections4.png

In the left pane, you have the Readable Client list (MIDI outputs), and in the right pane you have the Writable Client list (MIDI inputs). We want to have the MIDI output of VKey``Bd connected to ZynAddSubFX's MIDI input so that we can play notes on ZynAddSubFX using the VKey``Bd application.

Click on the Virtual Keyboard entry in the left pane, and click on the ZynAddSubFX entry in the right pane, and then click on the Connect button.

attachment:TutQjackCtlConnections5.png

Again, you see the line drawn between the left and right panes. This represents a MIDI connection, and is like a virtual MIDI patch cable. Think of it this way: you just plugged your MIDI keyboard controller into your synthesizer.

Click the close button to hide the Connections window, as we're done making connections.

attachment:TutQjackCtlConnections6.png

Now, switch to the VKey``Bd window, and press some keys on your computer keyboard, or use your mouse to click on the graphical keyboard. Any notes that you press will highlight in blue, as shown in the image below.

attachment:TutQjackCtlConnections7.png

If you look at the ZynAddSubFX window, you should see the volume meters (at the very bottom of the window) showing activity, and you should hear some sounds coming out your speakers.

attachment:TutQjackCtlConnections8.png

Congratulations, you have just made your first JACK audio and MIDI connections! You should have a pretty basic understanding of how connections work.

JACK Connections are very flexible, as you can plug any audio output into any audio input, and any MIDI output into any MIDI input. For example, you could plug the MIDI output of your USB MIDI keyboard into the MIDI input of seq24; the MIDI output of seq24 into the MIDI input of ZynAddSubFX; the audio output of ZynAddSubFX to the input of JACK-Rack; the audio output of JACK-Rack into Ardour, and then record it to disk.

Have fun and make music!

[[category:UbuntuHelp]]