hi, can anyone tell me what help file i should use to find out something about 'if' statements for PD. i am getting some data via tcp and would need to use that in pd. the print output looks like this:
tcp: 19:44:45 e
tcp: 19:44:45 r
tcp: 19:44:45 n
tcp: 19:44:45 b
and i need to use letters e r n b as numbers or as a bang function. so these buttons( e r n b ) will trigger some processes. so when i make |receive tcp| then |select e r n b| i get error: gatom: no method for '20:' do i need to convert these values or translate them?
can somebody please help? thanks v
[select] probably can't interpret your first value. use [niagara 1] which will filter the first value (19:44:45) to it's left outlet and the character you want to test for (e, r, n, b) to it's right outlet. connect that right outlet to something like [a2l] and run the select. see attached.
vlada car wrote:
hi, can anyone tell me what help file i should use to find out something about 'if' statements for PD. i am getting some data via tcp and would need to use that in pd. the print output looks like this:
tcp: 19:44:45 e
tcp: 19:44:45 r
tcp: 19:44:45 n
tcp: 19:44:45 b
and i need to use letters e r n b as numbers or as a bang function. so these buttons( e r n b ) will trigger some processes. so when i make |receive tcp| then |select e r n b| i get error: gatom: no method for '20:' do i need to convert these values or translate them?
can somebody please help? thanks v
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://iem.at/cgi-bin/mailman/listinfo/pd-list
#N canvas 353 92 454 304 12; #X msg 207 70 19:44:45 b; #X obj 206 214 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 247 197 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 162 117 niagara 1; #X obj 208 143 a2l; #X obj 206 170 sel e b; #X msg 136 44 20:44:45 e; #X connect 0 0 3 0; #X connect 3 1 4 0; #X connect 4 0 5 0; #X connect 5 0 1 0; #X connect 5 1 2 0; #X connect 6 0 3 0;
vlada car wrote:
hi, can anyone tell me what help file i should use to find out something about 'if' statements for PD. i am getting some data via tcp and would need to use that in pd. the print output looks like this:
tcp: 19:44:45 e
tcp: 19:44:45 r
tcp: 19:44:45 n
tcp: 19:44:45 b
and i need to use letters e r n b as numbers or as a bang function. so these buttons( e r n b ) will trigger some processes.
one solution can be
|netreceive| | |unpack s s| | | |set $1( |select e r n b| | | | |
Lazzaro
vlada car wrote:
hi, can anyone tell me what help file i should use to find out something about 'if' statements for PD. i am getting some data via tcp and would need to use that in pd. the print output looks like this:
tcp: 19:44:45 e
tcp: 19:44:45 r
tcp: 19:44:45 n
tcp: 19:44:45 b
and i need to use letters e r n b as numbers or as a bang function. so these buttons( e r n b ) will trigger some processes.
apologize, I forgot the attachment
one solution can be
|netreceive| | |unpack s s| | | |set $1( |select e r n b| | | | |
Lazzaro
#N canvas 269 101 714 552 12; #X obj 106 22 netreceive 3337; #X msg 106 233 set $1; #X obj 181 119 select e r n b; #X obj 181 168 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 207 170 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 234 169 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 261 170 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 106 73 unpack s s; #X msg 106 277; #X connect 0 0 7 0; #X connect 1 0 8 0; #X connect 2 0 3 0; #X connect 2 1 4 0; #X connect 2 2 5 0; #X connect 2 3 6 0; #X connect 7 0 1 0; #X connect 7 1 2 0;
vlada car wrote:
hi, can anyone tell me what help file i should use to find out something about 'if' statements for PD. i am getting some data via tcp and would need to use that in pd. the print output looks like this:
If you can change the way data is sent I would recommend using OSC instead of plain netsend/recieve. In the package is a route module which makes parsing more comfortable but this suggestion is only valid if you have programmingaccess to the sender because it needs to 'speak' OSC too of course...
Cheers,
Malte
If you can change the way data is sent I would recommend using OSC instead of plain netsend/recieve.
-Plain TCP/IP with netsend/receive can be useful; OSC puts a nice sheet around it all, and even more nicely a network-vocabulary, that a significantly amount of programs understand, including. first doing this publicly and structurally SuperCollider (since 1998). Not forgetting Max & CAST before that internally...
AvS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
` |Schreck Ensemble . . . . . . . . . . . . . . . . . . . . +
` |# -laboratory for live electro-acoustic music- # |
| http://www.schreck.nl/ |
| http://www.xs4all.nl/~schreck/ |
` *===========================================================++
` |Compositions http://www.xs4all.nl/~schreck/html/compo.html |
` |Samples http://www.xs4all.nl/~schreck/html/samp.html |
` |Patches http://www.xs4all.nl/~schreck/html/pat.html |
` |Videos http://www.xs4all.nl/~schreck/html/video.html |
` |Scores http://www.xs4all.nl/~schreck/html/scores.html |
*===========================================================++
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .....................................................................
Hi List, i wonder if someone can help me, i am trying to make a creative nx run under pd, i have a zc030x driver compiled and the camera is recognized in pd/pdp/pd_v4l
no i get this...
pdp_v4l: opening /dev/video0 pdp_v4l: cap: name Creative Webcam NX with sensor type 1 channels 1 maxw pdp_v4l: picture: brightness 0 depth 24 palette 4 pdp_v4l: channel 0 name zc030x video bridge type 2 flags 0 pdp_v4l: switched to channel 0 pdp_v4l: buffer size 4915280, frames 4, offset 0 1228820 pdp_v4l: VIDIOCMCAPTURE: format not supported: Invalid argument
Is there hope ???
Thanx Luigi