<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=4024</link>
		<description><![CDATA[The most recent posts in Linux, pianoteq and 'system' audio (e.g. youtube).]]></description>
		<lastBuildDate>Fri, 18 Sep 2015 20:51:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939646#p939646</link>
			<description><![CDATA[<p>I found a solution on my Debian/Jessie to force pulseaudio to use jackd (if needed).</p><p><span class="bbu">Short answer:</span><br />Click the option &quot;Enable D-Bus interface&quot; in qjackctl. :-)</p><p><span class="bbu">Long, descriptive answer:</span><br />Per default Debian has a pulseaudio config (/etc/pulse/default.pa), that tries to autodetect a running jackd soundserver:</p><div class="codebox"><pre><code> 
### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif</code></pre></div><p>But for this autodetection to work, jackd needs to be connected to the D-Bus.<br /><a href="http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Modules/#index9h2">http://www.freedesktop.org/wiki/Softwar.../#index9h2</a></p><p><strong>Then</strong> in the pulseaudio Volume Control window (pavucontrol) a new &quot;Jack sink&quot; appears, which can be assigned to the &quot;ALSA plug-in [Pianoteq 5].</p><p>The final routing is now:</p><p>Pianoteq --&gt; Audio device type: ALSA --&gt; Pulse Audio Sound Server --&gt; pulseaudio-module-jack --&gt; jackd (RT) --&gt; soundcard.</p><p>cheers</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Fri, 18 Sep 2015 20:51:14 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939646#p939646</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939645#p939645</link>
			<description><![CDATA[<p>You configure it not in jackctl, but in <em>system settings - audio</em> or in <em>pavucontrol</em></p>]]></description>
			<author><![CDATA[null@example.com (Barafu)]]></author>
			<pubDate>Fri, 18 Sep 2015 17:53:21 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939645#p939645</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939642#p939642</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>@mwinthrop: So pulseaudio-module-jack is the required layer between PulseAudio --&gt;|--&gt; Jack?</p></blockquote></div><p>If you want to use Pianoteq and hear sound from Youtube at the same time, then pulseaudio linked to Jack using pulseaudio-module-jack is a way to do this.&nbsp; Not sure if there is another way.&nbsp; If Pianoteq connected to ALSA is all you need, then perhaps all is good as it is.&nbsp; I would again recommend looking at KXStudio.&nbsp; If you were to decide to install it, it could make things easier.&nbsp; It did for me when I was new to Linux.</p>]]></description>
			<author><![CDATA[null@example.com (mwinthrop)]]></author>
			<pubDate>Thu, 17 Sep 2015 23:16:47 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939642#p939642</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939640#p939640</link>
			<description><![CDATA[<p>Oldschool or not - just Pianoteq and pure ALSA are doing exactly, what I need :-)</p><div class="quotebox"><cite>Barafu wrote:</cite><blockquote><p>pulseaudio-module-jack makes Pulseaudio think that JACK is a soundcard, and makes JACK think that Pulseaudio is a single player application. Is it clearer now?</p></blockquote></div><p>Yes, that&#039;s clearer. I just can&#039;t find it represented in my real setup. Just for interest I installed pulseaudio, pulseaudio-module-jack and qjackctl on my workstation.</p><p>It is no problem to get sound from Pianoteq --&gt;&nbsp; Audio device type: ALSA --&gt; Pulse Audio Sound Server --&gt; hardware. (I expected that)</p><p>But I can&#039;t find an option to connect Pulse Audio Sound Server with qjackctl, as you described (neither in pulseaudio/pavucontrol nor in qjackctl). When qjackctl is running (with realtime option of course), the sound-output from Pianoteq via pulseaudio stops working. Maybe the layer &quot;pulseaudio-module-jack&quot; is not working or has to be configured??</p><p>Anyway ... it is not really important for me. I just wondered, if someone really has it working this way.</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Thu, 17 Sep 2015 21:36:48 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939640#p939640</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939639#p939639</link>
			<description><![CDATA[<p>Using pure ALSA these days is still possible, of cause, but unnecessary oldschool. Nothing to gain over JACK setup except for may be the last 0.05ms of latency, but a lot of configs to write and maintain (hello, dmix!) for everything to play properly.&nbsp; <em>pulseaudio-module-jack</em> makes Pulseaudio think that JACK is a soundcard, and makes JACK think that Pulseaudio is a single player application. Is it clearer now?</p>]]></description>
			<author><![CDATA[null@example.com (Barafu)]]></author>
			<pubDate>Thu, 17 Sep 2015 17:20:01 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939639#p939639</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939636#p939636</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>* Additionally pulseaudio-module-jack can be installed: Pianoteq --&gt; Audio device type: JACK --&gt; and then? is audio next routed to Pulse Audio Sound Server?? But I see no other options in qjackctl than without pulseaudio-module-jack? Can someone clarify this?</p></blockquote></div><div class="quotebox"><cite>mwinthrop wrote:</cite><blockquote><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Pianoteq --&gt;|<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |--&gt; Jack --&gt; ALSA --&gt; Soundcard&nbsp; --&gt; Speakers<br />Youtube --&gt; PulseAudio --&gt;|</p></blockquote></div><p>@mwinthrop: So pulseaudio-module-jack is the required layer between PulseAudio --&gt;|--&gt; Jack?</p><div class="quotebox"><cite>delt wrote:</cite><blockquote><p>Most apps --&gt; pulseaudio --&gt; jackd (This is where desktop apps ie. browser, and so on, send audio)<br />Alsa/old apps --&gt; pulseaudio --&gt; jackd (this is where all the other/obsolete apps will &quot;normally&quot; send audio by default.)</p></blockquote></div><p>@delt: That seems to confirm, that &#039;pulseaudio-module-jack&#039; is just the necessary glue between pulseaudio and jackd.</p><p>PS: Youtube of course can talk directly to ALSA and hardware, it is not mandatory to use sound-servers like pulseaudio or others in between.</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Thu, 17 Sep 2015 06:27:22 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939636#p939636</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939633#p939633</link>
			<description><![CDATA[<p>My setup is more like:</p><p>Jack apps (such as pianoteq) --&gt; jackd --&gt; alsa kernel drivers --&gt; hardware (This is where pianoteq/renoise/ardour/etc. &quot;pro aduio&quot; software sends audio)<br />Most apps --&gt; pulseaudio --&gt; jackd (This is where desktop apps ie. browser, and so on, send audio)<br />Alsa/old apps --&gt; pulseaudio --&gt; jackd (this is where all the other/obsolete apps will &quot;normally&quot; send audio by default.)</p><p>Not gonna pollute the forum with any more fancy ascii art here, but you get the general idea <i class="far fa-laugh smiley"></i></p><p>Note that a lot of programs have the option to use one, several, or all of the above options. Also, i could get &quot;slightly&quot; lower latency by sending pianoteq directly to the alsa drivers, but that would completely occupy the sound card solely for pianoteq, and no other apps could play sound.</p><br /><p>On my main computer i use <a href="http://www.deimos.ca/miscjunk/startpulse.sh">this simple script</a> to tell pulseaudio to run its signal through jack - it just needs to be run after jack is ready to process requests. It should be all you need.</p><p>For more advanced users: to get jack running at system boot time, ie. before any login prompt appears, i use <a href="http://www.deimos.ca/miscjunk/startjack.sh">this script</a>, which i wrote for my particular setup, but if you want to use it and need help with it, just pm me and i&#039;ll do my best to help <i class="far fa-smile-beam smiley"></i></p><br /><p>/* EDIT */ Oops, i totally forgot that linux mint, and some &quot;compact&quot; 32bit distributions, for some reason don&#039;t include the two very small and necessary files for this to work: they are called &quot;module-jack-sink.so&quot; and &quot;module-jack-source.so&quot;. I extrated them from ubuntu studio, 32 and 64 bit. (version 14.04) Here are the packages: <a href="http://www.deimos.ca/miscjunk/jackpulse-1.0-32bit.deb">32bit</a>, <a href="http://www.deimos.ca/miscjunk/jackpulse-1.0-64bit.deb">64bit</a> -- or if you prefer plain old tarballs, <a href="http://www.deimos.ca/miscjunk/jackpulse-32bit.tgz">32bit</a> and <a href="http://www.deimos.ca/miscjunk/jackpulse-64bit.tgz">64bit</a>.</p>]]></description>
			<author><![CDATA[null@example.com (delt)]]></author>
			<pubDate>Thu, 17 Sep 2015 01:10:52 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939633#p939633</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939632#p939632</link>
			<description><![CDATA[<p>To add a little more, I briefly ran qjackctl on my system and did not see Pulseaudio at all.&nbsp; I use a program called Catia (part of KXStudio) and can see PulseAudio running there and can reroute it if I want that way.</p>]]></description>
			<author><![CDATA[null@example.com (mwinthrop)]]></author>
			<pubDate>Thu, 17 Sep 2015 00:05:03 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939632#p939632</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939631#p939631</link>
			<description><![CDATA[<p>In Linux, there always seems to be many options of accomplishing what one wants.&nbsp; So another option is to consider using the capabilities and repositories of KXStudio (<a href="http://kxstudio.linuxaudio.org/">http://kxstudio.linuxaudio.org/</a>), which is capable of doing what you are asking.&nbsp; KXStudio is a collection of Linux audio capabilities where a talented software person has set things up to work well with audio.&nbsp; The repositories can be used with Ubuntu or Debian.&nbsp; A tool called Cadence (part of KXStudio) makes it easier to control PulseAudio and Jack together or turn PulseAudio off if you don&#039;t want it running.</p><p>On the question of how things are routing, please see my attempt to diagram it below: </p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Pianoteq --&gt;|<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;|--&gt; Jack --&gt; ALSA --&gt; Soundcard&nbsp; --&gt; Speakers<br />Youtube --&gt; PulseAudio --&gt;| </p><p>where ALSA is the software that drives your soundcard, which outputs to your speakers.&nbsp; Note Pianoteq and PulseAudio are both feeding into Jack (it is hard to draw).&nbsp; Unfortunately, Youtube (I assume through your browser) does not know how to talk to Jack directly, but does recognize PulseAudio.&nbsp; Jack is a program that is very good at combining sounds coming from different programs, but the programs have to be &quot;Jack aware,&quot; which many audio programs are.&nbsp; What I wrote down is consistent with Barafu&#039;s earlier post and is also one of the ways KXStudio can route the sound.</p>]]></description>
			<author><![CDATA[null@example.com (mwinthrop)]]></author>
			<pubDate>Wed, 16 Sep 2015 23:47:37 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939631#p939631</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939630#p939630</link>
			<description><![CDATA[<p>The routings described seem to be a bit unclear to me.</p><p>I&#039;ll try to sort it out:</p><p>* Most simple: Pianoteq --&gt; Audio device type: ALSA --&gt; Direct (audio)hardware. (I use this all day)</p><p>* Alternatively: Pianoteq --&gt; Audio device type: ALSA --&gt; Pulse Audio Sound Server --&gt; hardware. (Personally I have no use for this and have not tested the latency).</p><p>* Additionally qjackctl/jackd can be installed: Pianoteq --&gt; Audio device type: JACK --&gt; hardware. (jack is a low latency audio server and router).</p><p>* Additionally pulseaudio-module-jack can be installed: Pianoteq --&gt; Audio device type: JACK --&gt; <strong>and then? is audio next routed to Pulse Audio Sound Server?? But I see no other options in qjackctl than without pulseaudio-module-jack? Can someone clarify this?</strong></p><p>Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Wed, 16 Sep 2015 17:43:54 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939630#p939630</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939624#p939624</link>
			<description><![CDATA[<p>There are several ways to run jack and pulseaudio at the same time. The simplest is to run pulseaudio as a jack &quot;client&quot;, and tell all apps that use pulseaudio to use the &quot;jack-sink&quot; output device, and the &quot;jack-source&quot; input device if they need to record/capture audio.</p><p>One way to do this is documented in detail <a href="https://en.wikibooks.org/wiki/Digital_Music_Composition/Making_Sound#Making_Sound_On_Linux">on wikbooks</a>. Personally i like to have my audio stuff independent of the graphic stuff (what&#039;s gotten into linux distros lately??) so i run it in a slightly different way, which also allows any user part of the group &quot;audio&quot; to use Pulse (but not jack). Feel free to PM me if you need more help/info.</p><p>(yeah, linux audio these days is a mess <i class="far fa-meh-rolling-eyes smiley"></i> )</p>]]></description>
			<author><![CDATA[null@example.com (delt)]]></author>
			<pubDate>Wed, 16 Sep 2015 01:10:41 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939624#p939624</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939621#p939621</link>
			<description><![CDATA[<p>I&#039;ve never tried to plug JACK into Pulseaudio. I see no reason to build such config. I have tried to use pure Pulseaudio with different synthesiers. I have installed and set up a realtime kernel and stuff. But I could not achieve any acceptable latency over Pulseaudio. Even more, it was so late (a 1/4 of a second) that I&#039;m sure it was not the case with videos/games or I would have noticed. <br />Anyway, I&#039;m satisfied with the setup I described - plug Pulseaudio int JACK.</p>]]></description>
			<author><![CDATA[null@example.com (Barafu)]]></author>
			<pubDate>Tue, 15 Sep 2015 16:49:53 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939621#p939621</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939620#p939620</link>
			<description><![CDATA[<p>Barafu, a question to latency:</p><p>Do you have some positive experience with Pianoteq over &quot;jack over pulseaudio&quot; with &quot;removed Realtime tick&quot;?</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Tue, 15 Sep 2015 16:25:26 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939620#p939620</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939619#p939619</link>
			<description><![CDATA[<div class="quotebox"><cite>Barafu wrote:</cite><blockquote><p>Lets fix the terminology first. ....</p><p>So yes, you can not share one sink between Pulse and JACK. However, you can make JACK to serve as a sink for Pulse. Just as you can not share one sink between Pulse and ALSA, and Pulse serves as a sink for ALSA sources.</p></blockquote></div><p>So I need both pulseaudio and pulseaudio-module-jack, with jack taking the output of browser/youtube and pianoteq, feeding my (only ) sink, my speakers.</p><p>Thanks - I&#039;ll have a go at setting that up.</p>]]></description>
			<author><![CDATA[null@example.com (pe2dave)]]></author>
			<pubDate>Tue, 15 Sep 2015 11:05:46 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939619#p939619</guid>
		</item>
		<item>
			<title><![CDATA[Re: Linux, pianoteq and 'system' audio (e.g. youtube)]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=939618#p939618</link>
			<description><![CDATA[<p>Lets fix the terminology first. Pulseaudio collects data from different <em>sources</em> - browser with youtube, the piano software, system sounds, the malware that insults you verbally - etc. These are sources. After that it <em>mixes</em> the sound - coverts it all to the same sample rate and sample size, then adds up. Then it pours the resulting <em>mix</em> into one or more <em>sinks</em> - the soundcard, the file, the malware that eavesdrops on you, etc. One sink can serve as a source for another. For example, system-wide reverb is a sink. JACK works the same way.&nbsp; But their internals are different. JACK starts clipping if it can&#039;t provide the proper latency, while Pulseaudio does not care. </p><p>So yes, you can not share one sink between Pulse and JACK. However, you can make JACK to serve as a sink for Pulse. Just as you can not share one sink between Pulse and ALSA, and Pulse serves as a sink for ALSA sources.</p>]]></description>
			<author><![CDATA[null@example.com (Barafu)]]></author>
			<pubDate>Tue, 15 Sep 2015 10:46:41 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=939618#p939618</guid>
		</item>
	</channel>
</rss>
