<div dir="ltr"><div>The following will do it:</div><div><br></div>On Fri, Feb 3, 2012 at 7:58 AM, Max <span dir="ltr">&lt;<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div id=":jw" style="overflow:hidden">if you want to simply reconfigure the <span class="">audio</span>/midi <span class="">settings</span> programmatically it might be revealing to listen to the internal pd <span class="">messages</span><br>
<br>[receive pd]<br>|<br>[print]<br><br>and then change the <span class="">audio</span>/midi <span class="">settings</span>.<br><br>you can use those <span class="">messages</span> which will be printed in the console to change your <span class="">settings</span> when sending <span class="">messages</span> to a [send pd] that&#39;s the principle applied by the mediasettings library hans mentioned.</div>
<div><br></div></blockquote><div><br></div><div>I just tried quickly and the exact the exact message required was:</div><div><br></div><div>[midi-dialog 2056 0 0 0 1.92017e+09 0 0 0 2 2(</div><div>|</div><div>[send pd]</div>
<div><br></div><div>where the last two numbers set the number of input and output ports respectively.  Other settings probably differ...</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 26, 2013 at 8:26 AM, Iain Mott <span dir="ltr">&lt;<a href="mailto:mott@reverberant.com" target="_blank">mott@reverberant.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello again,<br>
<br>
Is there a way to specify the number of ALSA MIDI Out ports (in Linux)<br>
via the command line or using a command from within Pd?<br>
<br>
I can specify this running &quot;pd-extended -alsamidi&quot; and selecting via the<br>
GUI: Media--&gt;Midi Settings... - but need to specify the number<br>
automatically.<br>
<br>
Thanks,<br>
<br>
Iain<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>networking practice for sound environments :: <a href="http://nowhere.iamnobody.net">http://nowhere.iamnobody.net</a>
</div>