<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Pre-selecting audio interface when patch opens.]]></title><description><![CDATA[<p>I'm just working on a patch that needs to start automatically when opened, which is working fine so far. The only thing I have to continually set is in 'Audio Settings' whereby I always have to change the input and output to read:</p>
<p>'USB Audio CODEC (hardware)'.</p>
<p>I assume there is a message that can be sent internally to get this to happen, but I've got no idea what it is. Can anyone help?</p>
<p>Many thanks.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 06:40:47 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/11179.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 22 Dec 2017 01:33:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Pre-selecting audio interface when patch opens. on Fri, 22 Dec 2017 01:33:48 GMT]]></title><description><![CDATA[<p>I'm just working on a patch that needs to start automatically when opened, which is working fine so far. The only thing I have to continually set is in 'Audio Settings' whereby I always have to change the input and output to read:</p>
<p>'USB Audio CODEC (hardware)'.</p>
<p>I assume there is a message that can be sent internally to get this to happen, but I've got no idea what it is. Can anyone help?</p>
<p>Many thanks.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens</guid><dc:creator><![CDATA[toddak]]></dc:creator><pubDate>Fri, 22 Dec 2017 01:33:48 GMT</pubDate></item><item><title><![CDATA[Reply to Pre-selecting audio interface when patch opens. on Fri, 22 Dec 2017 22:34:00 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/toddak">@toddak</a> If you are using Windows you can start your patch, and open Pd.exe or <a href="http://Pd.com" rel="nofollow">Pd.com</a> with flags that set all the audio settings from a &quot;batch file&quot;.  I start all my &quot;show&quot; patches like this, as I am using different sound cards for different patches.<br />
Like......</p>
<pre><code>&quot;C:\Program Files (x86)\pd\bin\pd.com&quot; -path C:\Users\David\Desktop\PDMusic\Minx -path C:\Program_Files_(x86)\pd\extra\readanysf~\ -r 44100 -asio -nomidi -audioindev 20 -audiooutdev 15 -inchannels 32 -outchannels 22 -audiobuf 2 -blocksize 64 -callback -nosleep -open Minx_Run.pd
exit
</code></pre>
<p>If you are using some other OS I imagine there is a similar solution.</p>
<p>If you are using extended then you can bang messages into [mediasettings/audiosettings].<br />
In vanilla I think you will have to use the [audio-dialog( message to Pd......<br />
<a href="/uploads/files/1513981598229-set_audio_parameters.pd">set_audio_parameters.pd</a><br />
Bang the [audio-properties( message at the bottom right, and press OK when the window opens, to get the current settings list.</p>
<p>David.<br />
<img src="/uploads/files/1513981652240-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/2</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 22 Dec 2017 22:34:00 GMT</pubDate></item><item><title><![CDATA[Reply to Pre-selecting audio interface when patch opens. on Wed, 03 Jan 2018 05:06:24 GMT]]></title><description><![CDATA[<p>Hey David thanks for the reply.</p>
<p>I'm running Raspbian as its running on a raspberry pi, and using Vanilla PD. I opened your patch, but the 'mediasettings/audiosettings' doesn't seem to work on Vanilla.</p>
<p>If I bang the settings in the bottom right hand corner, it does open up the same settings as the last time I used the patch. But I'd like a way too make it a definite rather than a potential unknown (this will be operated as part of an installation and I won't be there to start up each day).</p>
<p>I think I can use flags when opening through terminal to get it to boot the way I need to, similar to your suggestion. I was just hoping I could keep everything within PD, as I find that much easier if I need to run patches on different systems <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/3</guid><dc:creator><![CDATA[toddak]]></dc:creator><pubDate>Wed, 03 Jan 2018 05:06:24 GMT</pubDate></item><item><title><![CDATA[Reply to Pre-selecting audio interface when patch opens. on Wed, 03 Jan 2018 05:44:30 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/toddak">@toddak</a> i believe you can also set the audio setting startup flag in Preferences &gt; Startup... menu.<br />
<a href="https://puredata.info/docs/faq/commandline" rel="nofollow">https://puredata.info/docs/faq/commandline</a></p>
<p>The [audio-dialog( message to pd should also work from inside a patch, but is a bit hacky solution.</p>
<p>[; pd audio-dialog 0 0 0 0 1 0 0 0 0 0 0 0 2 0 0 0 44100 25 -1 128(</p>
<p>The values are:</p>
<p>[; pd audio-dialog indev1 indev2 indev3 indev4 inchan1 inchan2 inchan3<br />
inchan4 outdev1 outdev2 outdev3 outdev4 outchan1 outchan2 outchan3<br />
outchan4 samplerate delay callback blocksize(</p>
<p><a href="http://forum.critterandguitari.com/t/audio-settings-set-pure-datas-delay-msec-for-one-single-patch/1337/8" rel="nofollow">http://forum.critterandguitari.com/t/audio-settings-set-pure-datas-delay-msec-for-one-single-patch/1337/8</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/4</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Wed, 03 Jan 2018 05:44:30 GMT</pubDate></item><item><title><![CDATA[Reply to Pre-selecting audio interface when patch opens. on Wed, 03 Jan 2018 08:35:31 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/toddak">@toddak</a> As <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> says (and I didn't make clear in my post........ <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/no_mouth.png" title="no_mouth" alt=":no_mouth:" /> ) once you have the settings as you want them, and have recovered them using the bottom right bang, you can copy that message into your patch........  Then use a loadbang to send that message from the patch when it starts...... to [s pd].  I disconnected that (bottom left) as it is dangerous unless you really want to use it...... but in your case it is exactly what you want to do.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/5</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Wed, 03 Jan 2018 08:35:31 GMT</pubDate></item><item><title><![CDATA[Reply to Pre-selecting audio interface when patch opens. on Thu, 04 Jan 2018 03:47:23 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a> Thanks again for your help, and for explaining your patch further.</p>
<p>I ended up just using flags in the startup for the rpi, which to my amazement worked first go, and seems to be a solid solution for the time being. Good to know there are other options thought!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/6</guid><dc:creator><![CDATA[toddak]]></dc:creator><pubDate>Thu, 04 Jan 2018 03:47:23 GMT</pubDate></item><item><title><![CDATA[Reply to Pre-selecting audio interface when patch opens. on Fri, 28 Mar 2025 16:13:10 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a><br />
hello there<br />
did you ever tried &quot;audioaddoutdev  -- add an audio output device by name&quot; on linux ?<br />
i had exact same problem on my RPI and PD to be able to alway use 'USB Audio CODEC (hardware)' whatever hardware card number it had.<br />
i tried audioaddoutdev 'USB Audio CODEC (hardware)'  ,audioaddoutdev &quot;USB Audio CODEC (hardware)&quot; ,but none seems to work</p>
<p>bests</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/7</guid><dc:creator><![CDATA[kazeko]]></dc:creator><pubDate>Fri, 28 Mar 2025 16:13:10 GMT</pubDate></item><item><title><![CDATA[Reply to Pre-selecting audio interface when patch opens. on Fri, 28 Mar 2025 17:41:16 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/kazeko">@kazeko</a> I did a bit more work on it here....... <a href="https://forum.pdpatchrepo.info/topic/14240/pure-data-and-pi4-with-usb-audio-interface/12" rel="nofollow">https://forum.pdpatchrepo.info/topic/14240/pure-data-and-pi4-with-usb-audio-interface/12</a><br />
As so often, it might be hard to remember how it works, but I think I designed it to select an interface automatically (by name rather than the position in the Pd Media tab list) as a patch was opened.... but it needs the external [audiosettings] from the mediasettings library.<br />
It seems that the librarywas available for the RPI4.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/11179/pre-selecting-audio-interface-when-patch-opens/8</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 28 Mar 2025 17:41:16 GMT</pubDate></item></channel></rss>