[PD] comport question....
It's been a while since I've posted, I hope everyone is keeping well! I'm trying to retrieve data from a heart rate monitor with Pd using the comport object. Sending a 'G1' followed by a carriage return to the HRM device using a terminal emulator returns something like 32 10 61, where 61 is the current heart rate and 10 is the time passed since I first queried the heart rate. If I try to print this info in Pd ala: |comport| | |sprintf %c| | |print| I get something like this: 3 2 1 0 6 1 Obviously this isn't much use to me. The data that is passed from the serial device is an 8 bit value but I've no idea how to parse it correctly. If I don't use sprintf I get the following print out: print: 51 print: 32 print: 49 print: 48 print: 50 print: 32 print: 48 print: 32 print: 13 Any ideas or suggestions on how to parse the data being returned from the device? Rory. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] [PD-announce] Last days of submissions to ICMC's UnConference
I guess it's too much to hope that the 'UnConference' doesn't come with the same extortionate registration cost of the actual 'Conference'? I won't hold my breath.. On 12 April 2010 17:38, Alexandre Porres wrote: > Hi Pd people, > ICMC 2010 is to be held on june 1st-5th in NYCÂ http://www.icmc2010.org/ > I know some of you will be there on ICMC, and even in New York, so here is a > nice opportunity to send some proposals to ICMC's UnConference, it is also > open to something similar as the Pd Hacking Session we had in the last Pd > Convention. > Extended deadline is April 15th, here ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] Filling an audio array. Question..
I want to fill an audio array of 1024 samples with two exponential curves, a simple attack and decay envelope. While I can easily create the curves I want I'm have a hard time putting them into an array. What is teh best practice for loading different curves into an audio array using tilde objects? I've attached a patch that creates the two curves, if anyone can show me how to get them into the array one after another I'd be most appreciative. I've tried to use a delay object with a 4 millsecond delay but that was no good for me. Again, any suggestions of ideas are most welcome. Rory. p.s. as a Csound user I've got really used to using GEN routines. I'm happy not to have them in Pd as it forces me tothink about how the routines work, if I could only figure out how to get them into a table I'd be happy! arrayQuestion.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Re: [PD] [PD-announce] some works done with pd
These are really interesting projects Cyrille, thanks for sharing. regards, Rory. 2009/10/6 cyrille henry : > hello, > > for those who are interested, here is some work i done with pd for since > last year : > 1 dance projet where pd/Gem is use to draw and distort a circle on stage. > The movement of the circle is correlated to the moment of the dancer : > http://www.chnry.net/ch/?Journal-de-Corps&lang=en > > an other dance projet, where pd is used to control all lighting during the > performance : > http://www.chnry.net/ch/?La-chaire-du-monde&lang=en > > 1 interactive installation : > http://www.chnry.net/ch/?Potential-Flag&lang=en > from a technical point of view, this installation work with a big physical > model computed thanks to the Graphical Processor Unit. This allow to be > about 100 time faster than on a CPU (tested with my current laptop). > Don't ask for the patch, it is already included in Gem examples, but you > need a computer with recent graphic card... > > I also did a realistic fluid simulation for this project : > http://www.chnry.net/ch/?Pixels-Liquides&lang=en > the project is older, but it now use a real Navier Stock solver thanks to > the GPU and shaders. I hope to have videos soon > > some work i made earlier with pd where also part of 2 exhibitions : > http://www.chnry.net/ch/?Quinzaine-Photographique-Nantaise&lang=en > http://www.chnry.net/ch/?Ars-Longa&lang=en > for the latter, i made an interactive installation (see video). > > see you next year for the project i'm currently working on. > ;-) > > Cyrille > > > ___ > Pd-announce mailing list > pd-annou...@iem.at > http://lists.puredata.info/listinfo/pd-announce > > ___ > 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] Delay effect without clicks
Are you suggesting that you've spent a lot of time in police cars thinking about this! 2009/3/27 Frank Barknecht : > Hallo, > Bj?rn Nielsen hat gesagt: // Bj?rn Nielsen wrote: > >> But the thing that really differs from an analog delays (with tapes) >> is that it is only changing pitch when you change the delaytime value >> at the same time as a sound come through. If you makes a short note, >> pass it through the delay with a 1sec delay and in the pause between >> to delayed notes change the delay time to 1/2 sec, it won't change >> pitch. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] dynamic creation arguments for route
Is is possible to dynamically alter the creation arguments for a route object? I'm currently building a patch that receives OSC messages which I want to parse using route. Each relevant message I would like to grab starts with a unique integer ID. I would like to pass this unique ID to my route object each time the ID changes so that I can retrieve the data which follows it. Any ideas? Rory. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] here I go again..dynamic abstractions
I keep running into problem with an abstraction I'm trying to implement. Let me first explain what I'm trying to do. I have an abstraction that has 16 tgls in a row. These are graphed on parent so they they can be altered from the main patch. When a user clicks on of the tgls it changes colour. This was all going fine until I created another instance of the same abstraction and found that clicking one of the tgls in one abstraction caused the other ones to change colour. This seems reasonable as they all share the same receive symbols. Then I set about having each tgls receive symbol change on instantiation. This too seemed to be working fine until I opened the whole patch again and found that the GUI objects most recent receive symbol is saved to them so every time I change one and close the patch I need to know what it was in order to change it dynamically on the next startup. I could simply hard code each abstraction but I may need up to thirty of them in one patch so this seems a little futile. There must a way of doing it? I've attached the a basic version of the abstraction. All you need to do is to instantiate it and pass a number box to it. It will work fine with many instances but as soon as I save and close Pd crashes the next time I save the parent patch. As I'm only getting back into Pd I'm sure I've implemented it badly. Perhaps someone could offer some advise on how to achieve what I want. Thanks for your patience with this. regards, Rory. #N canvas 354 114 926 648 10; #X obj -172 170 symbol \$1; #X msg -168 205 list \$1; #X obj -104 201 symbol; #X obj -162 268 pack s s f f f; #X msg -11 217 12; #X msg 27 216 22; #X obj -166 364 list trim; #X msg 121 218 set; #X obj -52 141 t b b b b b b; #X msg 59 217 addsemi; #X msg -97 175 color; #X obj -163 341 list prepend add2; #X msg 14 437 \; color 0 12 22; #X obj -51 85 loadbang; #X obj -97 62 inlet; #X floatatom -44 206 5 0 0 0 - - -; #X obj 19 72 loadbang; #X msg 24 104 44; #X obj -116 92 t b b f; #X obj 228 225 symbol \$1; #X msg 232 258 list \$1; #X obj 226 184 loadbang; #X obj 223 206 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X msg 236 355 \; obj_rec1 receive \$1; #X obj 147 121 bng 35 250 50 0 empty obj_rec1 empty 17 7 0 10 -262144 -1 -1; #X connect 0 0 1 0; #X connect 1 0 3 0; #X connect 2 0 3 1; #X connect 3 0 11 0; #X connect 4 0 3 3; #X connect 5 0 3 4; #X connect 6 0 12 0; #X connect 7 0 12 0; #X connect 8 0 0 0; #X connect 8 1 10 0; #X connect 8 2 15 0; #X connect 8 3 5 0; #X connect 8 3 4 0; #X connect 8 4 9 0; #X connect 8 5 7 0; #X connect 9 0 12 0; #X connect 10 0 2 0; #X connect 11 0 6 0; #X connect 13 0 8 0; #X connect 14 0 18 0; #X connect 15 0 3 2; #X connect 16 0 17 0; #X connect 17 0 15 0; #X connect 18 0 12 0; #X connect 18 1 8 0; #X connect 18 2 15 0; #X connect 19 0 20 0; #X connect 20 0 23 0; #X connect 21 0 22 0; #X connect 22 0 19 0; #X coords 0 -1 1 1 85 60 1 100 100; ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] converting a regular message to an internal message?
Following on from my earlier post, I want to build an internal message by prepending a semicolon to a regular message which I've dynamically created. My question is how to change this | obj_rec16 color 12 22 22 ( to this |; obj_rec16 color 12 22 22 ( I'm guessing it's pretty easy but so far I can't seem to find a solution. And advise is much appreciated. Rory. ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
[PD] dynamically altering GUI send/receive symbols
Quick question: is it possible to dynamically alter the send/receive symbols for GUI objects? I know that one can change most attributes through various messages but is it possible to alter their send/receive symbols? Rory. p.s. It's been a few years since I posted any messages here. I hope everyone is keeping well! ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list