Re: [PD] Data structures: no object for freeing pointers?
Yes with visibility setting we can access an element of an array only, so each state can be stored, retrieved, replaced at will by accessing an element of te array... The matter is how accessing an element, idealy it would be a [nbx] where max value is the number of array elements, or a that's very easy, just get the number of elements from the array's pointer, and send it as [max $1( to the nbox (or whichever command defines the limits, I don't have Pd open). scalar but I don't how it's possible to fix limits to [drawnumber] I think not from the gui. Unless you enforce it programatically: route the change output from the [struct] in the template, and use it to force the maximum number to a [set] object. Like: [struct drawnumber...] | [route change] | [50( (assuming 50 is the current max number) | [set drawnumber...] In a parallel part, the current pointer gets and sets the maximum number of elements (now at 50) Look at the current help file for [drawnumber] for more details. De: João Pais jmmmp...@googlemail.com À: pd-list pd-list@iem.at, Patrice Colet colet.patr...@free.fr Envoyé: Jeudi 20 Juin 2013 11:09:26 Objet: Re: [PD] Data structures: no object for freeing pointers? One approach is to assign a variable for active/unactive scalars. And then use that variable to render the scalar visible/invisible. After a work session, the user can hide the active scalars, display the inactive ones, and select + delete these. It's still far from ideal, but a compromise. Envoyé: Mardi 11 Juin 2013 11:25:23 Objet: Re: [PD] Data structures: no object for freeing pointers? On Die, 2013-06-11 at 11:00 +0200, Jan Baumgart wrote: I've been building a sequencer with data structs. But now I've come to a dead end, because there seems to be no object, that let's you remove structs. The only way seems to be deleting them in the gui. It's still possible to put only one pointer and then arrays on it, then you can add or delete at the last array item, or it's possible to put an id at each array element and then remove the element id to delete, then it's possible to have undo's. pc ___ 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] compiling pix_opencv on debian (lmde)
hi Antoine I've push a fixed version to svn it should work with both version could you please test it with 2.4.5 ? nice, it seems that all externals build fine now (except for pix_opencv_surf but it looks like it should not be build in the first place..). I still get this error at the end of the build though: blobtrack.cpp: At global scope: blobtrack.cpp:643:1: error: ‘q’ does not name a type q ^ [snip] ^ make: *** [blobtrack] Error 1 ciao, y -- http://yvanvolochine.com http://soundcloud.com/yvanvolochine http://soundcloud.com/elgusanorojo http://vimeo.com/yv ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Data structures: no object for freeing pointers?
Colet Patrice - Mail original - De: João Pais jmmmp...@googlemail.com À: pd-list pd-list@iem.at, Patrice Colet colet.patr...@free.fr Envoyé: Vendredi 21 Juin 2013 10:00:58 Objet: Re: [PD] Data structures: no object for freeing pointers? Yes with visibility setting we can access an element of an array only, so each state can be stored, retrieved, replaced at will by accessing an element of te array... The matter is how accessing an element, idealy it would be a [nbx] where max value is the number of array elements, or a that's very easy, just get the number of elements from the array's pointer, and send it as [max $1( to the nbox (or whichever command defines the limits, I don't have Pd open). Without opening pd I think it's something like range $1 $2 and that's what I'm doing when controlling DS from GOP, it seems the best way to go.. I'd like one day to understand how to implement DS into a GOP, it's a bit triky, then on a single window it's possible to have the whole interface. scalar but I don't how it's possible to fix limits to [drawnumber] I think not from the gui. Unless you enforce it programatically: route the change output from the [struct] in the template, and use it to force the maximum number to a [set] object. Like: [struct drawnumber...] | [route change] | [50( (assuming 50 is the current max number) | [set drawnumber...] In a parallel part, the current pointer gets and sets the maximum number of elements (now at 50) Look at the current help file for [drawnumber] for more details. it's not really possible to do this in the context we're talking about because we don't know which scalar is modified when it's embedded into an array, a way would be about using y value, but in this case y is always = 0 De: João Pais jmmmp...@googlemail.com À: pd-list pd-list@iem.at, Patrice Colet colet.patr...@free.fr Envoyé: Jeudi 20 Juin 2013 11:09:26 Objet: Re: [PD] Data structures: no object for freeing pointers? One approach is to assign a variable for active/unactive scalars. And then use that variable to render the scalar visible/invisible. After a work session, the user can hide the active scalars, display the inactive ones, and select + delete these. It's still far from ideal, but a compromise. Envoyé: Mardi 11 Juin 2013 11:25:23 Objet: Re: [PD] Data structures: no object for freeing pointers? On Die, 2013-06-11 at 11:00 +0200, Jan Baumgart wrote: I've been building a sequencer with data structs. But now I've come to a dead end, because there seems to be no object, that let's you remove structs. The only way seems to be deleting them in the gui. It's still possible to put only one pointer and then arrays on it, then you can add or delete at the last array item, or it's possible to put an id at each array element and then remove the element id to delete, then it's possible to have undo's. pc ___ 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 install and use GPIO external
Awesome! I got it working! Thanks for all the help! One more question, does anyone know if you can set the internal pullup/pulldown for the GPIO pins from within PD and if so how you can set this? Thanks, Josh On Wed, Jun 19, 2013 at 5:52 PM, J Oliver jaime.oliv...@gmail.com wrote: On Jun 19, 2013, at 7:07 PM, Josh Downing wrote: click enable 1, open 1, and then output 0. ok. No error messages but where should I expect to see the high/low state of GPIO 17? it should come out of the object into a number box or toggle as far as I can remember... put a number box in the outlet of the gpio object. J Should this be reflected in the bang object in the script (white for low and black for high)? I have the poll input check box checked. When I toggle the voltage on GPIO 17 from 3.3V to GND I do not see anything change in the script. I am able to see the high/low state of the pin 17 change by using the readall command from LXTerminal so I know that I'm switching the voltage correctly on the right pin, just not seeing how I get this status in pure data using the gpio-help.pd script. Any thought on how I do this? Sorry I have very little experience with pure data and am just learning. Thanks, Josh On Wed, Jun 19, 2013 at 11:17 AM, Jaime Oliver jaime.oliv...@gmail.comwrote: you need to be root. start pd with sudo. unless there is a more permanent solution by now? best, J On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing jndown...@gmail.comwrote: Thanks for the help guys! So I deleted the -m32 from the makefile and then everything seemed to build okay. I then added the correct path for the extension in pure data and loaded the gpio-help.pd patch without getting an error message. In the gpio-help.pd patch I would click enable 1 and then click open 1 and after clicking open 1 I would get an error message: /sys/class/gpio/gpio17/value: No such file or directory. I then realized that I probably needed to install wiringPi. I downloaded this and installed it. However I would still get the previous error message within PD. I then decided to manually try to create the file using commands in LXTerminal. I did this using this command, echo 17 |sudo tee /sys/class/gpio/export. I then noticed that the gpio17 folder and accompanying files were created. I was also able to correctly read the state of the pin using gpio readall command from LXTerminal. I then loaded the gpio-help.pd file again in PD. Now once I click open 1 instead of the no such file or directory error I get /sys/class/gpio/gpio17/value: Permision denied error. Is there someway I can use this GPIO library within the PD visual interface without getting permission denied errors? Also, shouldn't clicking enable 1 within the gpio-help.pd patch create the /sys/class/gpio/gpio17 folder and accompanying files? How can I get this to work within PD without having to run the commands from LXTerminal to create the folder/files? Do I need to somehow indicate to pure data the path of wirngPi? Almost there! Really appreciate your guys patience with me and help on this! Josh On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoel...@iem.atwrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 2013-06-18 23:37, Josh Downing wrote: cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I../pd/src -I../../pd/src -I../../../pd/src -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error: unrecognized command line option ?-m32? make: *** [gpio.l_i386] Error 1 Do you know what this error message could mean? it means that the makefile has a compiler flag -m32 which is not known to the compiler. What should I expect as the output from compiling like this? nothing. the build failed. you could try editing your makefile and removing the -m32 occurences, and see what you get then. make a backup of the makefile, before you go ahead. fgamsrd IOhannes -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ /KcAoKpb6waukrnp35DZQGFYmP88XAVD =0t/E -END PGP SIGNATURE- ___ 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 -- ** Jaime E Oliver LR www.jaimeoliver.pe ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] compiling pix_opencv on debian (lmde)
hum strange i've made some change in the headers it should not depends on libcv-dev libhighgui-dev and libcvaux-dev anymore maybe this solve your problem too i've only tested with OpenCV 2.3.1 from packages ++ a -- do it yourself http://antoine.villeret.free.fr 2013/6/21 yvan volochine yvan...@gmail.com hi Antoine I've push a fixed version to svn it should work with both version could you please test it with 2.4.5 ? nice, it seems that all externals build fine now (except for pix_opencv_surf but it looks like it should not be build in the first place..). I still get this error at the end of the build though: blobtrack.cpp: At global scope: blobtrack.cpp:643:1: error: ‘q’ does not name a type q ^ [snip] ^ make: *** [blobtrack] Error 1 ciao, y -- http://yvanvolochine.com http://soundcloud.com/**yvanvolochinehttp://soundcloud.com/yvanvolochine http://soundcloud.com/**elgusanorojo http://soundcloud.com/elgusanorojo http://vimeo.com/yv __**_ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/** listinfo/pd-list 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] AUDIO from movies with pix-film?
Hello a friend on the supercollider list is asking about playing movies in Pure Data from SuperCollider and is mentioning that there is no sound coming from her movies, how can one easiest get audio from a movie to play in Gem[pix-film? Is this possible on MAC? I have attached the simple patch(s) Patrick //• SuperCollider to PureData // Use loopback IP and the same port as the pd patch to communicate ~pdOut = NetAddr(127.0.0.1, 47110); // test it with one message: ~pdOut.sendMsg(/from_SC, 0); // ~pdOut.sendMsg(/from_SC, 1); #N canvas 809 119 1094 943 12; #X declare -lib mrpeach; #X obj 225 675 gemhead; #X msg 222 632 auto \$1; #X obj 222 613 tgl 15 0 empty empty empty 20 8 0 8 -262144 -1 -1 1 1; #X obj 225 747 pix_film; #X obj 294 747 t f; #X obj 225 778 pix_texture; #X obj 20 49 cnv 15 220 70 empty empty empty 20 12 0 14 -195568 -66577 0; #N canvas 1 82 454 304 gemwin 0; #X obj 131 179 gemwin; #X obj 67 89 outlet; #X obj 67 10 inlet; #X obj 67 41 route create; #X msg 67 70 set destroy; #X msg 182 68 set create; #X msg 132 112 create \, 1; #X msg 238 112 destroy; #X obj 187 9 tgl 15 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0 1 ; #X msg 187 27 menubar \$1; #X msg 210 9 -1; #X connect 2 0 3 0; #X connect 3 0 4 0; #X connect 3 0 6 0; #X connect 3 1 5 0; #X connect 3 1 7 0; #X connect 4 0 1 0; #X connect 5 0 1 0; #X connect 6 0 0 0; #X connect 7 0 0 0; #X connect 8 0 9 0; #X connect 9 0 0 0; #X connect 10 0 9 0; #X restore 25 93 pd gemwin; #X msg 25 69 destroy; #X text 21 49 Create window and render; #X obj 242 710 t a; #X msg 279 707 open \$1; #X obj 226 820 rectangle 4 3; #X text 164 466; #X text 407 655; #X symbolatom 290 634 50 0 0 0 - - -; #X obj 291 413 playlist all 400 200 {Courier 12 bold} grey yellow black red; #X msg 304 269 seek \$1; #X floatatom 306 238 5 0 0 0 - - -; #X msg 47 336 location /home/shree/Dropbox/VIDEO; #X floatatom 567 131 3 0 0 0 - - -; #X floatatom 594 131 3 0 0 0 - - -; #X floatatom 621 131 3 0 0 0 - - -; #X floatatom 648 131 3 0 0 0 - - -; #X text 527 130 from; #X obj 400 184 unpackOSC; #X floatatom 501 211 10 0 0 1 millisecond_delay - -; #X obj 400 211 pipelist; #X obj 390 242 print unpacked; #X obj 567 107 unpack 0 0 0 0 0; #X floatatom 676 131 8 0 0 0 - - -; #X obj 502 84 route received from; #X floatatom 502 152 5 0 0 0 - - -; #X text 542 152 bytes; #X obj 397 317 print match_1; #X obj 399 33 import mrpeach; #X obj 400 60 udpreceive 47110; #X obj 398 279 routeOSC /from_SC; #X obj 170 573 loadbang; #X text 11 22 play videos with message from SuperCollider; #X text 29 312 ***edit this to point at your movie directory; #X text 519 60 *** EDIT THIS to MATCH THE PORT IN SuperCollider; #X connect 0 0 3 0; #X connect 1 0 3 0; #X connect 2 0 1 0; #X connect 3 0 5 0; #X connect 3 2 4 0; #X connect 4 0 3 1; #X connect 5 0 12 0; #X connect 7 0 8 0; #X connect 8 0 7 0; #X connect 10 0 3 0; #X connect 11 0 10 0; #X connect 15 0 11 0; #X connect 16 0 15 0; #X connect 17 0 16 0; #X connect 18 0 17 0; #X connect 19 0 16 0; #X connect 25 0 27 0; #X connect 25 0 28 0; #X connect 25 1 26 0; #X connect 25 1 27 1; #X connect 27 0 37 0; #X connect 29 0 20 0; #X connect 29 1 21 0; #X connect 29 2 22 0; #X connect 29 3 23 0; #X connect 29 4 30 0; #X connect 31 0 32 0; #X connect 31 1 29 0; #X connect 36 0 25 0; #X connect 36 1 31 0; #X connect 37 0 34 0; #X connect 37 0 18 0; #X connect 38 0 2 0; ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list