<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Modartt user forum - Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
	<link rel="self" href="https://forum.modartt.com/extern.php?action=feed&amp;tid=4670&amp;type=atom"/>
	<updated>2016-09-16T15:28:45Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.modartt.com/viewtopic.php?id=4670</id>
		<entry>
			<title type="html"><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=944644#p944644"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Mossy]]></name>
				<uri>https://forum.modartt.com/profile.php?id=3856</uri>
			</author>
			<updated>2016-09-16T15:28:45Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=944644#p944644</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=944631#p944631"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[stamkorg]]></name>
				<uri>https://forum.modartt.com/profile.php?id=3941</uri>
			</author>
			<updated>2016-09-16T07:25:21Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=944631#p944631</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=944630#p944630"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[herrb]]></name>
				<uri>https://forum.modartt.com/profile.php?id=5075</uri>
			</author>
			<updated>2016-09-16T06:55:15Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=944630#p944630</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=944629#p944629"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Mossy]]></name>
				<uri>https://forum.modartt.com/profile.php?id=3856</uri>
			</author>
			<updated>2016-09-16T01:48:41Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=944629#p944629</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=944626#p944626"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[groovy]]></name>
				<uri>https://forum.modartt.com/profile.php?id=1021</uri>
			</author>
			<updated>2016-09-15T16:34:30Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=944626#p944626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=944625#p944625"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[stamkorg]]></name>
				<uri>https://forum.modartt.com/profile.php?id=3941</uri>
			</author>
			<updated>2016-09-15T07:49:12Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=944625#p944625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Autostarting Pianoteq at boot time, Ubuntu Studio, sound devices]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=944624#p944624"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[herrb]]></name>
				<uri>https://forum.modartt.com/profile.php?id=5075</uri>
			</author>
			<updated>2016-09-15T07:08:20Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=944624#p944624</id>
		</entry>
</feed>
