444 |
# connect to ALSA playback JACK client so we can hear something |
# connect to ALSA playback JACK client so we can hear something |
445 |
# (you can use 'GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO 0 0 JACK_BINDINGS' |
# (you can use 'GET AUDIO_OUTPUT_CHANNEL_PARAMETER INFO 0 0 JACK_BINDINGS' |
446 |
# to get all available JACK clients / ports) |
# to get all available JACK clients / ports) |
447 |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 JACK_BINDINGS='alsa_pcm:playback_1' |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 JACK_BINDINGS='system:playback_1' |
448 |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 JACK_BINDINGS='alsa_pcm:playback_2' |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 JACK_BINDINGS='system:playback_2' |
449 |
|
# Note: above is for JACK2 (a.k.a. jackmp). If you are still using JACK1, |
450 |
|
# you would need to use this instead: |
451 |
|
# SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 JACK_BINDINGS='alsa_pcm:playback_1' |
452 |
|
# SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 JACK_BINDINGS='alsa_pcm:playback_2' |
453 |
|
|
454 |
# load the ALSA MIDI driver |
# load the ALSA MIDI driver |
455 |
CREATE MIDI_INPUT_DEVICE ALSA |
CREATE MIDI_INPUT_DEVICE ALSA |
476 |
It shows how to setup a more realistic sampler session, handle routing of MIDI input channels, |
It shows how to setup a more realistic sampler session, handle routing of MIDI input channels, |
477 |
handle routing of audio channels, it uses JACK again as audio |
handle routing of audio channels, it uses JACK again as audio |
478 |
output driver, but creates the JACK client with four output channels instead, it creates two |
output driver, but creates the JACK client with four output channels instead, it creates two |
479 |
sampler channels, loads two different instrument on those two sampler channels and alters |
sampler channels, loads two different instruments on those two sampler channels and alters |
480 |
the audio channel routing so that the two output channels of sampler channel 1 are routed to |
the audio channel routing so that the two output channels of sampler channel 1 are routed to |
481 |
the first two JACK output channels and the two output channels of sampler channel 2 are routed |
the first two JACK output channels and the two output channels of sampler channel 2 are routed |
482 |
the second pair of the JACK client's output channels. That way you could e.g. record the output |
the second pair of the JACK client's output channels. That way you could e.g. record the output |
524 |
|
|
525 |
# automatic connection between the four 4 ports of LS's Jack client and the |
# automatic connection between the four 4 ports of LS's Jack client and the |
526 |
# ALSA PCM JACK client (assuming your sound card has at least 4 outputs ;-) |
# ALSA PCM JACK client (assuming your sound card has at least 4 outputs ;-) |
527 |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 JACK_BINDINGS='alsa_pcm:playback_1' |
# (assumimg JACK2 a.k.a. jackmp here, if you are still using JACK1 then |
528 |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 JACK_BINDINGS='alsa_pcm:playback_2' |
# you have to replace "system" by "alsa_pcm" here) |
529 |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 2 JACK_BINDINGS='alsa_pcm:playback_3' |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 0 JACK_BINDINGS='system:playback_1' |
530 |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 3 JACK_BINDINGS='alsa_pcm:playback_4' |
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 1 JACK_BINDINGS='system:playback_2' |
531 |
|
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 2 JACK_BINDINGS='system:playback_3' |
532 |
|
SET AUDIO_OUTPUT_CHANNEL_PARAMETER 0 3 JACK_BINDINGS='system:playback_4' |
533 |
|
|
534 |
# not necessary, just to see our setup |
# not necessary, just to see our setup |
535 |
GET CHANNEL INFO 0 |
GET CHANNEL INFO 0 |