[PD] Get current patch filename sith iemguts / get console messages for Arduino

Jérôme Abel abel.jerome at free.fr
Tue Dec 17 12:45:48 CET 2013


Hi list,

I've two questions :

1/ How could I get the patch filename ?
In a dynamic context, I need to get the patch filename when user do a
"save as", so the filename change.
I use [iemguts/receivecanvas] -  [route savetofile]. I wonder if it the
best solution, if it takes too much cpu because [receivecanvas] get all
messages and I need just one, when the patch is saved...


2/ I would like to detect if an Arduino is connected.
My solution is to bang a [version< message to [arduino] et [route
version] the second outlet of [arduino].  Is it the best solution ?
The problem appears on Mac OS, because there are few devices like
Bluetooth, so I need to get the ttyusbmodem* device.
The easiest way would be to get consol messages when I ask [devices< and
catch device names.

Thanks,

Jerome





More information about the Pd-list mailing list