<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Modartt user forum - command line options]]></title>
	<link rel="self" href="https://forum.modartt.com/extern.php?action=feed&amp;tid=2144&amp;type=atom"/>
	<updated>2012-01-09T16:21:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.modartt.com/viewtopic.php?id=2144</id>
		<entry>
			<title type="html"><![CDATA[Re: command line options]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=19586#p19586"/>
			<content type="html"><![CDATA[<p>I thought about that option, but it is a clumsy way of doing things.</p><p>A script part for handling this could be:<br /></p><div class="codebox"><pre><code>DEVICE_JACKD=&#039;deviceType=&quot;JACK&quot; audioOutputDeviceName=&quot;Auto-connect ON&quot; audioDeviceRate=&quot;44100&quot;&#039;
DEVICE_ALSA=&#039;deviceType=\&quot;ALSA\&quot; audioOutputDeviceName=\&quot;HD-Audio Generic (1)\&quot; audioInputDeviceName=\&quot;HD-Audio Generic (1)\&quot; audioDeviceRate=\&quot;44100\&quot; audioDeviceBufferSize=\&quot;1024\&quot;&#039;
MYDEVICE=&quot;$DEVICE_ALSA&quot;

AWK_SET_AUDIO=&quot;sub(/[[:space:]]*DEVICESETUP.*/,\&quot;$MYDEVICE/&gt;\n  \&quot;)&quot;
AWK_CLEAR_CRASH=&quot;sub(/VALUE name=\&quot;crash_detect\&quot; val=.+\/&gt;/,\&quot;VALUE name=\\\&quot;crash_detect\\\&quot; val=\\\&quot;0\\\&quot;/&gt;\&quot;)&quot;
awk &quot;BEGIN {RS = \&quot;&lt;\&quot;; FS=\&quot;\n\&quot;;OFS=FS} {$AWK_SET_AUDIO;  $AWK_CLEAR_CRASH; ORS=RT; print } &quot; ~/.config/Modartt/Pianoteq36.prefs</code></pre></div><p>After every Pianoteq update the script has to be checked. A version change will lead to a different&nbsp; the config name. Maybe device naming has changes or other an other DEVICESETUP part is introduced. There is more stuff which could breaks like the scanning for the xml entries (an improvement would be using a regex excluding escaped (\&lt;) symbols).</p><p>There can be done a lot with scripting but it would be nice if the controlling part is separated from the gui and the burden of keeping it working would be shifted to the developers.</p>]]></content>
			<author>
				<name><![CDATA[MRK]]></name>
				<uri>https://forum.modartt.com/profile.php?id=887</uri>
			</author>
			<updated>2012-01-09T16:21:38Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=19586#p19586</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: command line options]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=19579#p19579"/>
			<content type="html"><![CDATA[<p>No there is no command line switch for that. You may try to edit the Pianoteq36.prefs files with a script , this is an xml file, search for the devicesetup tag.</p>]]></content>
			<author>
				<name><![CDATA[julien]]></name>
				<uri>https://forum.modartt.com/profile.php?id=2</uri>
			</author>
			<updated>2012-01-09T00:13:54Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=19579#p19579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[command line options]]></title>
			<link rel="alternate" href="https://forum.modartt.com/viewtopic.php?pid=19577#p19577"/>
			<content type="html"><![CDATA[<p>Is there a way to tell Pianoteq to use jackd or alsa (and its device) from the command line? The only options I can find is to drop all configuration.<br />When using Pianoteq headless it is kind of needed to have full control by command line or other than &quot;gui&quot; means. Since I think the other means are lacking I would welcome a real Pianoteq daemon which could be controlled by sending commands to a socket (network port or whatever).</p>]]></content>
			<author>
				<name><![CDATA[MRK]]></name>
				<uri>https://forum.modartt.com/profile.php?id=887</uri>
			</author>
			<updated>2012-01-08T20:15:33Z</updated>
			<id>https://forum.modartt.com/viewtopic.php?pid=19577#p19577</id>
		</entry>
</feed>
