<div dir="ltr">thanks, but no, <div><br></div><div>at least with Pd Vanilla 0.45-4, the right flag is *-listdev* to list all devices (both midi and alsa) in the PD&#39;s console.</div><div><br></div><div>According to this 10-years old post [1], I can still make a redirection of stderr or read at it.</div>


<div><br></div><div>Another solution, since my problem concern only Linux, is to read the output of `ls /dev/midi* | wc -l` to get a list of mididevices, but this doesn&#39;t tell if it&#39;s input or output.</div><div><br>

</div><div>+</div><div>a</div><div><br></div><div>[1] : <a href="http://lists.puredata.info/pipermail/pd-list/2004-10/023368.html" target="_blank">http://lists.puredata.info/pipermail/pd-list/2004-10/023368.html</a></div>

</div><div class="gmail_extra"><br clear="all"><div>--<br>do it yourself                       <br><a href="http://antoine.villeret.free.fr" target="_blank">http://antoine.villeret.free.fr</a><br></div>
<br><br><div class="gmail_quote">2014-02-09 16:08 GMT+01:00 Pagano, Patrick <span dir="ltr">&lt;<a href="mailto:pat@digitalworlds.ufl.edu" target="_blank">pat@digitalworlds.ufl.edu</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div dir="auto">
<div>I think it&#39;s just --listdevices on the command line<br>
<br>
Sent from my iPhone</div><div><div class="h5">
<div><br>
On Feb 9, 2014, at 10:03 AM, &quot;Antoine Villeret&quot; &lt;<a href="mailto:antoine.villeret@gmail.com" target="_blank">antoine.villeret@gmail.com</a>&gt; wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">Hello, 
<div><br>
</div>
<div>I&#39;m wondering how to get a list of midiout devices without GUI.</div>
<div>This has to work without GUI.</div>
<div><br>
</div>
<div>I tried [mediasettings/midisettings] but it always report 0 devices (both in and out) when there is no GUI.</div>
<div>i also know the -listdev option to Pd, but this only list devices in console, and I need to proccess the number in the patch.</div>
<div><br>
</div>
<div>I observe this on Linux (both Ubuntu 12.04 64bit and Raspbian (kernel 3.10.25+) with pd 0.45-4.</div>
<div>But it seems to be OK on MacOS with pd 0.45-3.</div>
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>Antoine</div>
<div><br clear="all">
<div>--<br>
do it yourself                       <br>
<a href="http://antoine.villeret.free.fr" target="_blank">http://antoine.villeret.free.fr</a><br>
</div>
</div>
</div>
</div>
</blockquote>
</div></div><blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span><a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list</span><br>
<span>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">
http://lists.puredata.info/listinfo/pd-list</a></span><br>
</div>
</blockquote>
</div>

</blockquote></div><br></div>