Re: [PD] Auto-detect Arduino Board

2013-12-18 Thread Pierre Massat
Hi,
I made something similar a while ago, that loops through a range of port
numbers until the device is recognized as having firmata on it.
I believe it was pretty fast, and maybe a little simpler than your example.
I don't know of any other way to do this.

Cheers,

Pierre.


2013/12/17 Jérôme Abel abel.jer...@free.fr

 Previously subject : get console messages for Arduino

 In attachment, my solution to detect automatically an Arduino Board with
 Firmata.
 I wonder if we could get the device name of the console output, it would
 be easier to detect...
 Any suggestions ?

 Thanks,

 Jerome

 ___
 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] before quitting

2013-12-18 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2013-12-18 12:22, pured...@11h11.com wrote:
 Is there a way to do something (let's say close a file, kill a 
 subprocess etc...) before quitting pd (meaning Ctrl+Q or File -
 Quit)?

there is [closebang], which will send out a bang before a patch is
closed (Ctrl-W). if you are familiar to writing externals, it's an
equivalent of the free-method.
unfortunately [closebang] cannot be implemented as a pure external (as
it requires some changes to Pd's core infrastructure), and it has never
been included with Pd-vanilla. there is a patch pending at sourceforge
[1]. afaik [closebang] and it's cousin [initbang] are included in
Pd-extended.

but this is only half of the truth...when *quitting* Pd (instead of
closing a single top-level-patch, or deleting an object), for some
obscure reasons Pd does *not* call the free-methods of it's objects,
so (afair) [closebang] doesn't work either.

luckily, there is a fix for this [2], so [closebang] might work.
unfortunately, this has never been included in Pd-vanilla. afaik it has
been included in Pd-extended.

admsr
IOhannes


[1] https://sourceforge.net/p/pure-data/patches/93/
[2] https://sourceforge.net/p/pure-data/patches/82/
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBCAAGBQJSsWAdAAoJELZQGcR/ejb4ntoP/Art3aZMzkzi49mmUGst40j+
Klv0dRa7DY7nPyFXzol8gw8AABOLIpLnSugcS7F2D0E/ePOKraCOsDM++YaPxLGd
fTRFDvHEOciO1zYu3a6Azbj6E9HB6u5mw1YI9C9wx1f38XHPXwDvne68H5bhFARM
ymydJCSzf6sR65t7z6wmMa17wT0LHDpR1v9YVmfhAWUqRpygv94G9vyzbRvdeK9Q
oCgB6LBX5Vp4lX4eawweF1TnMG/V1V5Rscm9KiCaTdVddC0ACmFsJLIClw0/nyXV
KOVa68wb3E76tLzMEnsgJ3FklZZQHrkv3Tb41IwVhP9x56qV/FG0Ey/MZj42XDgC
6/Rk5kgaZJrEPs/MhHGU2ipqz2w0JYfBB6tYM+OllvqbiQir4KC5XBaDyn2PStBA
nxnxH2JfKx12QJXA0dTraJSf0qpAYj9lauAUGqzG37qjIwOgoo4I+8uwRenGa+Fv
iJPN9pi0t110jjNWZH+7QyzwsZpIz65aqpjRouT+BsyMfosEHzG2NtsfKway/8SX
BDyQ0T3QoHgUppjOjJbKOW5M393maj9NBVzbqljieWWjkwVOVKJ3qgAsQm5syaXV
qNaRyPneylr+/G3bbJX7dpnPmyIZREZl9/xauhXlZbhbf9sXVle2jycnrhbUuQ2U
1tlsZLft8LL0LfLpMNwe
=hUno
-END PGP SIGNATURE-

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


Re: [PD] before quitting

2013-12-18 Thread puredata

hi,

[closebang] is maybe called but when using Ctrl+Q my shell bang is not  
execute (using something like [kill -9 xxx - [shell]).


trying to use hcs - noquit:
ERROR: can't rename menu_quit: command doesn't existwhile  
executingrename menu_quit old_menu_quit (uplevel body line  
5)invoked from withinuplevel #0 $cmds_from_pd


this is with pd-extended.


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


Re: [PD] before quitting

2013-12-18 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2013-12-18 18:26, pured...@11h11.com wrote:
 hi,
 
 [closebang] is maybe called but when using Ctrl+Q my shell bang is
 not execute (using something like [kill -9 xxx - [shell]).

well, first make sure that [closebang] does get called.
e.g. start Pd with -stderr and print something to stderr.

 trying to use hcs - noquit:

what's it supposed to do?

you can configure the kiosk plugin [1] to (only) intercept
Quit-shortcuts (Ctrl-q, Ctrl-Q) and disable the menu.


fgamsdr
IOhannes

[1] https://svn.code.sf.net/p/pure-data/svn/trunk/guiplugins/kiosk-plugin
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.15 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBCAAGBQJSsYIQAAoJELZQGcR/ejb4PHwP/0TEUhP/wi4jqUpcqGtth2zW
pGNt2l6MnOZKMLUvRw/pn6gANsQQcmhfd0Ot7tHeEXmYyZRvQvteS/01KPMzjI+z
tyBqhMv3l4KAC3CZv+qDuy+DvJRQh+5340kHU0to+bYR017kp+FGYjPKArIDDytJ
UD6l2lMiRfadasyiNIJc2z2aC512vO/GzL5Dtjfzvfbv6vjJ7jnQzf4JtuTPElGE
DYQ7owh4w0+WlrsSoqnoEnQ+Nq3AFgnw0rs/Zacaq99lqOqGdr0R6s7Bo4TqhJSB
V70d0+yjxwiloOUqszOcc477GJSrKOxo8STvvgwa/2JS5kFkGigBnSFik0FXRFUF
2xFDK690hsFG6PUfxEtNgWd/N/PeGrhHjY3JfJW4xXKvFxn+iyh/DbBeQ9hR7CvI
yw7T2Nx/3ZdC3PfijtAM1ILJ6SQdycvIgP8112kW/Tq+YkCpuB3YkQm0OiOwcDW3
BgFKYpNNselpc9n51lQf0gC7F7XB5sG8DAF8h1Z7kAC/lOfwAKMUhl1UwpoUILO3
TVnQPSPl9FGiEqE1y1ijYz7kSSsbpzeTVUDqCc/gcR5rzlimU3r5TqzRdhFO2Ero
2ZLyAWfJFBpOX+9NC4uJFsrXhXsYpYbbgtKIPmBbuFnJBA3hr3z8UnDi024BmpXQ
CV/i/N9s7zKPx9mglq/v
=0LIx
-END PGP SIGNATURE-

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


[PD] Pure Data Network-Enabled Sequencer

2013-12-18 Thread Andrew Faraday
Hi There

I've been working on a festive piece of Pd (and Ruby) and it's out there for 
anyone techie to have a look at. 

Basically, it's a ruby-based sequencer (reading from CSV files), which sends 
messages to Pd over UDP ports and can produce a quartet of synchronised laptops.

It's all in aid of a festive jape I plan to play on my colleagues, during a 
morning meeting (tomorrow, as it happens), where some of the computers in the 
room will unexpectedly begin making sounds then strike up some christmas 
carols. 

Anyone who understands github is very welcome to try it out, I'd love to hear 
what you think...

www.github.com/ajfaraday/networkensemble

Merry Christmas, and the like

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


Re: [PD] before quitting

2013-12-18 Thread puredata

well, first make sure that [closebang] does get called.
e.g. start Pd with -stderr and print something to stderr.


Thanks, [closebang] is not called here (ubuntu, pd-extended ppa). It's  
only called when destroying an abstraction, but not when using Ctrl+w  
or Ctrl+q.




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


Re: [PD] xinput external

2013-12-18 Thread puredata

hi,

i am using a modified version of xinput (adding ;, leading 0 and  
unbuffered) with pdsend (udp). i can now get my tablet  
x,y,pressure,tilt in pd. a demo patch is included (showing a way to  
parse xinput test data).


https://github.com/patricksebastien/xinputpdsend

the only problem is that i am using [shell] to execute the xinput |  
pdsend and when quitting pd it hangs until killall xinput.


not very elegant, but working for me.

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