On Wed, 2 Sep 2015, D. Michael McIntyre wrote:

> I came up with the Focusrite Scarlett 2i2 after spending a few hours 
> researching my options.  It was reported working as far back as 2012, 
> and nothing since then gave me pause.  I like their attitude toward 
> Linux, which seems to be, in a nutshell, "We don't support Linux, but if 
> anybody is writing a driver for Linux, here are some technical details 
> for you."
> 
> http://us.focusrite.com/usb-audio-interfaces/scarlett-2i2
> 
> I haven't done any real work with the interface yet, but my first 
> impressions are really positive.  I plugged it in, and it worked.

It's absolutely reliable. I use it via jackd all the time, even when
listening to music or watching videos. I configured pulseaudio to use
jacks, so everything works. The 2i2 runs for hours and hours without
making trouble (like my old M-Audio Fast Track Pro which started
cyloning).

But the 2i2 doesn't have a mixer. No problem, I hear you say, we have
jack_mixer. Yes, we have, but how do we tell all the jack-clients to
connect to the mixer's input instead of system:playback?

Don't cry in despair, there is a solution: jack.plumbing
If jack.plumbing is active and its ruleset is carefully crafted, then
the magic can happen and jack.plumbing disconnects jack-clients from
system:playback and connects them to jack_mixer.

Take this ~/.jack_mixer

-- snip --
<?xml version="1.0" ?>
<jack_mixer geometry="200x290">
        <input_channel balance="0.000000" balance_midi_cc="12" name="ALSA" 
type="stereo" volume="0.000000" volume_midi_cc="11"/>
        <input_channel balance="0.000000" balance_midi_cc="14" name="JACK" 
type="stereo" volume="0.000000" volume_midi_cc="13"/>
        <input_channel balance="0.000000" balance_midi_cc="16" name="PULSE" 
type="stereo" volume="0.000000" volume_midi_cc="15"/>
        <main_mix_channel balance="0.000000" balance_midi_cc="8" 
volume="0.000000" volume_midi_cc="7"/>
</jack_mixer>
-- snap --

And then take this ~/.jack.plumbing

-- snip --
(connect    "alsa-jack\..*jackP\..*:out_000" "jack_mixer:ALSA L")
(connect    "alsa-jack\..*jackP\..*:out_001" "jack_mixer:ALSA R")
(disconnect "alsa-jack\..*jackP\..*:out_.*" "system:playback_.*")

(connect    "Clementine:out_jackaudiosink-.*_1" "jack_mixer:JACK L")
(connect    "Clementine:out_jackaudiosink-.*_2" "jack_mixer:JACK R")
(disconnect "Clementine:out_jackaudiosink-.*" "system:playback_.*")

(connect    "Qtractor:Master/out_1" "jack_mixer:JACK L")
(connect    "Qtractor:Master/out_2" "jack_mixer:JACK R")
(disconnect "Qtractor:Master/out_.*" "system:playback_.*")

(connect    "rosegarden:master out L" "jack_mixer:JACK L")
(connect    "rosegarden:master out R" "jack_mixer:JACK R")
(disconnect "rosegarden:master out .*" "system:playback_.*")

(connect    "MPlayer.*:out_0" "jack_mixer:ALSA L")
(connect    "MPlayer.*:out_1" "jack_mixer:ALSA R")
(disconnect "MPlayer.*:out_.*" "system:playback_.*")

(connect    "PortAudio:out_.*[02468]" "jack_mixer:JACK L")
(connect    "PortAudio:out_.*[13579]" "jack_mixer:JACK R")
(disconnect "PortAudio:out_.*" "system:playback_.*")

(connect    "PulseAudio.*:front-left"  "jack_mixer:PULSE L")
(connect    "PulseAudio.*:front-right" "jack_mixer:PULSE R")
(disconnect "PulseAudio.*:front-.*" "system:playback_.*")

(connect "jack_mixer:MAIN L" "system:playback_1")
(connect "jack_mixer:MAIN R" "system:playback_2")
-- snap --

Start jack_mixer, start jack.plumbing and let the magic work :)

The next time uncle Holger will tell you how you can move and resize
windows automagically (even to workspaces) with gdevilspie and devilspie
:)

Regards
Holger

------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
Rosegarden-user mailing list
Rosegarden-user@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user

Reply via email to