<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=4670</link>
		<description><![CDATA[The most recent posts in Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices.]]></description>
		<lastBuildDate>Fri, 16 Sep 2016 15:28:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=944644#p944644</link>
			<description><![CDATA[<p>There is no need for JACK if you don&#039;t run other audio programs (e.g. qsynth for other sounds, hydrogen drumkits, etc).&nbsp; In this scenario, direct ALSA hardware is the best solution.</p><p>If you do run other audio programs, I would recommend using the realtime kernel in combination with JACK as I get the occasional dropped/warbled note with the regular kernel.&nbsp; I use a login startup script that looks like so:</p><p>qjackctl<br />sleep 2<br />pianoteq</p>]]></description>
			<author><![CDATA[null@example.com (Mossy)]]></author>
			<pubDate>Fri, 16 Sep 2016 15:28:45 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=944644#p944644</guid>
		</item>
		<item>
			<title><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=944631#p944631</link>
			<description><![CDATA[<div class="quotebox"><cite>herrb wrote:</cite><blockquote><p>@stamkorg: your suggestion works a charm, thanks! I had wanted to keep the setup as simple as possible and choose ALSA hardware in Pianoteq, that way avoiding any layer of indirection (which I understand Jack introduces). I am not sure I understand whether using Jack will double latency or not.</p></blockquote></div><p>To my knowledge, Jack is just a server that helps to connect applications.<br />I am not sure at all that it increases latency, it uses ALSA after all. But I am not a Linux specialist</p>]]></description>
			<author><![CDATA[null@example.com (stamkorg)]]></author>
			<pubDate>Fri, 16 Sep 2016 07:25:21 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=944631#p944631</guid>
		</item>
		<item>
			<title><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=944630#p944630</link>
			<description><![CDATA[<p>Hi all,</p><p>Thanks for your responses.</p><p>I then thought that maybe Pulse Audio was not ready yet and tried to check for that -- so far to no avail. Of course, Pulse Audio is not of much concern to me, other than it showing up in the devices list in Pianoteq.</p><p>@stamkorg: your suggestion works a charm, thanks! I had wanted to keep the setup as simple as possible and choose ALSA hardware in Pianoteq, that way avoiding any layer of indirection (which I understand Jack introduces). I am not sure I understand whether using Jack will double latency or not.</p><p>@Mossy/groovy: I had thought starting Pianoteq from systemd would be more complex than through the login/autostart mechanism.</p><p>I&#039;ll keep trying the direct ALSA route and post here, should I find a solution.</p><p>Again thanks to all for taking the time to respond.</p><p>Cheers,<br />Joerg</p>]]></description>
			<author><![CDATA[null@example.com (herrb)]]></author>
			<pubDate>Fri, 16 Sep 2016 06:55:15 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=944630#p944630</guid>
		</item>
		<item>
			<title><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=944629#p944629</link>
			<description><![CDATA[<p>Depends on what you mean by &quot;startup&quot; script.&nbsp; Inside systemd/rc.local/etc, many services JACK/Pianoteq depends on may not be up yet.</p><p>Instead, I put my JACK+Pianoteq start script into Gnome/Mate&#039;s Startup Applications config so these programs autostart after login and after the graphical shell is completely launched.</p>]]></description>
			<author><![CDATA[null@example.com (Mossy)]]></author>
			<pubDate>Fri, 16 Sep 2016 01:48:41 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=944629#p944629</guid>
		</item>
		<item>
			<title><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=944626#p944626</link>
			<description><![CDATA[<div class="quotebox"><cite>herrb wrote:</cite><blockquote><p>Has anyone experienced this?</p></blockquote></div><p>No, sorry, but maybe my mini-PC is &quot;slow enough&quot; to cause no race-condition (Celeron J1900). On a wireless PC I&#039;m starting the pianoteq binary from KDE-Desktop&#039;s Autostart-folder (without sleep seconds). It is a Debian (Jessie), so no direct comparison.</p><p>I guess your Linux is based on systemd, the &quot;mother of all processes&quot;. Maybe it is the right time to define your own &quot;pianoteq.service&quot;. Those systemd service-files can contain all depends and prerequisites your binary needs to start.</p><p>You can inspect the boot-log of systemd with &quot;journalctl -b&quot;.</p><p>Cheers</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Thu, 15 Sep 2016 16:34:30 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=944626#p944626</guid>
		</item>
		<item>
			<title><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=944625#p944625</link>
			<description><![CDATA[<div class="quotebox"><cite>herrb wrote:</cite><blockquote><p>Hi there,</p><p>My aim is to set up my system such that switching it on is more or less as smooth as switching on a digital upright piano.</p><p>I have this setup:</p><p>- Pianoteq 5 Standard trial (which will purchased eventually)<br />- Laptop quad core 2.2GHz, 8 GB RAM<br />- SSD<br />- Ubuntu Studio 16.04.1 64 Bit</p><p>My system boots up in seconds.<br />I have set auto-login at boot-up.<br />I have created a script that starts Pianoteq 5.<br />I have added this script to the list of startup programs so it is automatically started upon login.</p><p>I noticed that Pianoteq is not able to connect to the ALSA sound this way. It comes up with the message that a sound device needs to be selected. I can then from the Pianoteq preferences select the audio I want and all is well.</p><p>If I put a 5 second sleep in the startup script before invoking Pianoteq then all is fine.</p><p>Has anyone experienced this? I suspect the system is still in the process of setting up the sound system so it is not available when Pianoteq tries to connect to it first time. Is there a way I can detect the sound system status?</p><p>I have tried to check the status of the sound system in the script but could not find anything.</p><p>Running &quot;aplay -l&quot; right at the beginning and then 5 s later shows no difference. I have experimented with modprobe too. No success.</p><p>Instead of waiting the full 5 seconds, I would like to check whether the audio system is ready and then start Pianoteq immediately after that.</p><p>Has anyone done this? Any help would be much appreciated.</p><p>Cheers,<br />Joerg</p></blockquote></div><p>More easy than using a script:<br />You can use Jack</p><p>In the set up options, you can auto start Jack when the computer switches on, and inside Jack, there is an option to start what you want with a command line.</p><p>So, you switch the computer on, it starts Jack and Jack starts Pianoteq.</p><p>SK</p>]]></description>
			<author><![CDATA[null@example.com (stamkorg)]]></author>
			<pubDate>Thu, 15 Sep 2016 07:49:12 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=944625#p944625</guid>
		</item>
		<item>
			<title><![CDATA[Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=944624#p944624</link>
			<description><![CDATA[<p>Hi there,</p><p>My aim is to set up my system such that switching it on is more or less as smooth as switching on a digital upright piano.</p><p>I have this setup:</p><p>- Pianoteq 5 Standard trial (which will purchased eventually)<br />- Laptop quad core 2.2GHz, 8 GB RAM<br />- SSD<br />- Ubuntu Studio 16.04.1 64 Bit</p><p>My system boots up in seconds.<br />I have set auto-login at boot-up.<br />I have created a script that starts Pianoteq 5.<br />I have added this script to the list of startup programs so it is automatically started upon login.</p><p>I noticed that Pianoteq is not able to connect to the ALSA sound this way. It comes up with the message that a sound device needs to be selected. I can then from the Pianoteq preferences select the audio I want and all is well.</p><p>If I put a 5 second sleep in the startup script before invoking Pianoteq then all is fine.</p><p>Has anyone experienced this? I suspect the system is still in the process of setting up the sound system so it is not available when Pianoteq tries to connect to it first time. Is there a way I can detect the sound system status?</p><p>I have tried to check the status of the sound system in the script but could not find anything.</p><p>Running &quot;aplay -l&quot; right at the beginning and then 5 s later shows no difference. I have experimented with modprobe too. No success.</p><p>Instead of waiting the full 5 seconds, I would like to check whether the audio system is ready and then start Pianoteq immediately after that.</p><p>Has anyone done this? Any help would be much appreciated.</p><p>Cheers,<br />Joerg</p>]]></description>
			<author><![CDATA[null@example.com (herrb)]]></author>
			<pubDate>Thu, 15 Sep 2016 07:08:20 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=944624#p944624</guid>
		</item>
	</channel>
</rss>
