Re: [PD] How to get a list of midi devices without GUI

2014-05-02 Thread András Murányi
On Sun, Feb 9, 2014 at 5:20 PM, Jonathan Wilkes jancs...@yahoo.com wrote:

 In Pd-l2ork you can also do this:
 [print(
 |
 [pdinfo]

 Which prints all the info for the running Pd instance to the console,
 including devices.  Or you can send it a message to get a specific
 attribute like
 [audio-outdev, midi-outdevlist(
 |
 [pdinfo]

 I tried it with [loadbang] and -nogui, and all the audio devices display
 properly.  I can't test midi because I don't have any midi devices.

 -Jonathan


audio-outdev, midi-outdevlist gives me nothing but a bang. I have ALSA
midi-outs connected.
Might this be a bug?

András
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] How to get a list of midi devices without GUI

2014-05-02 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2014-02-09 16:45, Antoine Villeret wrote:
 Shouldn't `[mediasettings/midisettings]` update it's own device
 lists on `[listdevices(` message ?


please file a feature-request (and assign it to me, if possible)

fgamsdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBCAAGBQJTY1OsAAoJELZQGcR/ejb4mnQP/2LNqaPkJxA0AuRG/d1PN1d9
RmZMsIhtrhyWr1HEO0n5ZcapkcD1lYEGw/kbHJ+A5i29Wp2zSqqKiDdvJ1Af9M6V
8mhu56W/14K/gN1Yn2wBjhU/CgWkwI8mZzwY3xKKMbSvlbj3qwyzXz/tnqd+5tym
7Ej34M2PhEaazelAwOjgjI+ERC1U5u+9HkhR9mfoBWgkoSa2LG82ZB5PO+/DZ9F1
8HPwy/FVq2KblhyfbLi6B0JV0MhujF4IY9DhLnn8GxNDbefvG/zmXcsxhqju3ZEs
VMDFXCpTY8aoXve+t/mNl1mXmpRD6zAtJhfIm5ljRuu4v7GjGJBJs8PfPWxRceIc
Bp49S+HZHDg6oojZTA+vW77iz3xpg1A/qIuSmKbdX55Zxk6obQ7KDhHLxObmqieg
3gkIscjMluZMFRobN9crw5qFnHlVauio5cWvFnciuU8RUXLQ8HzfvOdMwV3GBczp
lK6tZmNWADto9cvi82rjdILPA48DwZXHy1QoLeTaP3+N1vN04Vnd9lE64yvMo+mA
sSbgLkudhOT7NK8U4Ut5jWwAwt3WX+hUxfPaJ3shJ44wpRekz8zYko7nz5eghar5
bfq2PP2Nro3z2NVrgSHc8Uyx5em4loPnQUSVjgFXz/izwld27FXZds6P23Ek0iPU
JwSkFLt0VLD4QDBxLFT3
=bXEL
-END PGP SIGNATURE-

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] How to get a list of midi devices without GUI

2014-02-09 Thread Pagano, Patrick
I think it's just --listdevices on the command line

Sent from my iPhone

On Feb 9, 2014, at 10:03 AM, Antoine Villeret 
antoine.ville...@gmail.commailto:antoine.ville...@gmail.com wrote:

Hello,

I'm wondering how to get a list of midiout devices without GUI.
This has to work without GUI.

I tried [mediasettings/midisettings] but it always report 0 devices (both in 
and out) when there is no GUI.
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.

I observe this on Linux (both Ubuntu 12.04 64bit and Raspbian (kernel 3.10.25+) 
with pd 0.45-4.
But it seems to be OK on MacOS with pd 0.45-3.

Thanks

Antoine

--
do it yourself
http://antoine.villeret.free.fr
___
Pd-list@iem.atmailto:Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] How to get a list of midi devices without GUI

2014-02-09 Thread Antoine Villeret
thanks, but no,

at least with Pd Vanilla 0.45-4, the right flag is *-listdev* to list all
devices (both midi and alsa) in the PD's console.

According to this 10-years old post [1], I can still make a redirection of
stderr or read at it.

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't tell if it's input or output.

+
a

[1] : http://lists.puredata.info/pipermail/pd-list/2004-10/023368.html

--
do it yourself
http://antoine.villeret.free.fr


2014-02-09 16:08 GMT+01:00 Pagano, Patrick p...@digitalworlds.ufl.edu:

  I think it's just --listdevices on the command line

 Sent from my iPhone

 On Feb 9, 2014, at 10:03 AM, Antoine Villeret 
 antoine.ville...@gmail.com wrote:

   Hello,

  I'm wondering how to get a list of midiout devices without GUI.
 This has to work without GUI.

  I tried [mediasettings/midisettings] but it always report 0 devices
 (both in and out) when there is no GUI.
 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.

  I observe this on Linux (both Ubuntu 12.04 64bit and Raspbian (kernel
 3.10.25+) with pd 0.45-4.
 But it seems to be OK on MacOS with pd 0.45-3.

  Thanks

  Antoine

 --
 do it yourself
 http://antoine.villeret.free.fr

  ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] How to get a list of midi devices without GUI

2014-02-09 Thread Antoine Villeret
hello again,


I found the issue,

with `-nogui`, the patch is loaded before midisettings are done (like
audiosettings)
and `[mediasettings/midisettings]` updates it's own device list on startup
or on `[device ...(` message.

So when the patch is loaded at startup without gui,
`[mediasettings/midisettings(` records 0 mididevices.
I have to send a dummy `[device ...(` message 1sec after loadbang to update
the list and then `[listdevices(` report the right number of devices.
Another solution could be to delay the patch loading.

Shouldn't `[mediasettings/midisettings]` update it's own device lists on
`[listdevices(` message ?

+
A



--
do it yourself
http://antoine.villeret.free.fr


2014-02-09 16:17 GMT+01:00 Antoine Villeret antoine.ville...@gmail.com:

 thanks, but no,

 at least with Pd Vanilla 0.45-4, the right flag is *-listdev* to list all
 devices (both midi and alsa) in the PD's console.

 According to this 10-years old post [1], I can still make a redirection of
 stderr or read at it.

 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't tell if it's input or output.

 +
 a

 [1] : http://lists.puredata.info/pipermail/pd-list/2004-10/023368.html

 --
 do it yourself
 http://antoine.villeret.free.fr


 2014-02-09 16:08 GMT+01:00 Pagano, Patrick p...@digitalworlds.ufl.edu:

  I think it's just --listdevices on the command line

 Sent from my iPhone

 On Feb 9, 2014, at 10:03 AM, Antoine Villeret 
 antoine.ville...@gmail.com wrote:

   Hello,

  I'm wondering how to get a list of midiout devices without GUI.
 This has to work without GUI.

  I tried [mediasettings/midisettings] but it always report 0 devices
 (both in and out) when there is no GUI.
 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.

  I observe this on Linux (both Ubuntu 12.04 64bit and Raspbian (kernel
 3.10.25+) with pd 0.45-4.
 But it seems to be OK on MacOS with pd 0.45-3.

  Thanks

  Antoine

 --
 do it yourself
 http://antoine.villeret.free.fr

  ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] How to get a list of midi devices without GUI

2014-02-09 Thread Jonathan Wilkes
In Pd-l2ork you can also do this:
[print(
|
[pdinfo]

Which prints all the info for the running Pd instance to the console, including 
devices.  Or you can send it a message to get a specific attribute like
[audio-outdev, midi-outdevlist(
|
[pdinfo]

I tried it with [loadbang] and -nogui, and all the audio devices display 
properly.  I can't test midi because I don't have any midi devices.


-Jonathan




On Sunday, February 9, 2014 10:49 AM, Antoine Villeret 
antoine.ville...@gmail.com wrote:
 
hello again, 


I found the issue, 

with `-nogui`, the patch is loaded before midisettings are done (like 
audiosettings)
and `[mediasettings/midisettings]` updates it's own device list on startup or 
on `[device ...(` message.

So when the patch is loaded at startup without gui, 
`[mediasettings/midisettings(` records 0 mididevices.
I have to send a dummy `[device ...(` message 1sec after loadbang to update the 
list and then `[listdevices(` report the right number of devices.
Another solution could be to delay the patch loading.

Shouldn't `[mediasettings/midisettings]` update it's own device lists on 
`[listdevices(` message ?

+
A




--
do it yourself                       
http://antoine.villeret.free.fr



2014-02-09 16:17 GMT+01:00 Antoine Villeret antoine.ville...@gmail.com:

thanks, but no, 


at least with Pd Vanilla 0.45-4, the right flag is *-listdev* to list all 
devices (both midi and alsa) in the PD's console.


According to this 10-years old post [1], I can still make a redirection of 
stderr or read at it.


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't tell 
if it's input or output.


+
a


[1] : http://lists.puredata.info/pipermail/pd-list/2004-10/023368.html


--
do it yourself                       
http://antoine.villeret.free.fr



2014-02-09 16:08 GMT+01:00 Pagano, Patrick p...@digitalworlds.ufl.edu:


I think it's just --listdevices on the command line

Sent from my iPhone

On Feb 9, 2014, at 10:03 AM, Antoine Villeret antoine.ville...@gmail.com 
wrote:


Hello,  


I'm wondering how to get a list of midiout devices without GUI.
This has to work without GUI.


I tried [mediasettings/midisettings] but it always report 0 devices (both in 
and out) when there is no GUI.
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.


I observe this on Linux (both Ubuntu 12.04 64bit and Raspbian (kernel 
3.10.25+) with pd 0.45-4.
But it seems to be OK on MacOS with pd 0.45-3.


Thanks


Antoine


--
do it yourself                       
http://antoine.villeret.free.fr

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list