[PD] symbol-string problem

tom iamonthebeach at hotmail.com
Mon Jun 7 17:29:41 CEST 2004


Hello list, I have encountered a small problem:
If I input a list composed of symbols that use the space character, how
can I substitute the " " to a "_"? Also, how can I convert a symbol with
space characters back to a list?

Thanks

Tom


-------------------------------

#N canvas 268 217 631 491 10;
#X obj 106 157 l2s;
#X text 92 10 NEEDS ZEXY;
#X obj 19 161 l2s;
#X obj 50 193 pack s s;
#X obj 75 58 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 76 81 t b b;
#X text 102 47 CLICK HERE to make a list composed of symbols that use
the space character;
#X obj 108 232 print list_of_symbol;
#X obj 54 215 t a a;
#X obj 54 305 drip;
#X obj 54 384 tosymbol;
#X msg 72 361 separator _;
#X obj 53 423 print result;
#X text 119 292 The result I need is the substitution of _ to the spaces
\, how can I make this work? How can I convert a symbol with space
characters back to a list?;
#X obj 54 337 t a b a;
#X obj 206 354 a2l;
#X obj 206 376 length;
#X floatatom 206 397 5 0 0 0 - - -;
#X msg 18 132 this does not;
#X msg 119 124 work like I want;
#X connect 0 0 3 1;
#X connect 2 0 3 0;
#X connect 3 0 8 0;
#X connect 4 0 5 0;
#X connect 5 0 18 0;
#X connect 5 1 19 0;
#X connect 8 0 9 0;
#X connect 8 1 7 0;
#X connect 9 0 14 0;
#X connect 10 0 12 0;
#X connect 11 0 10 0;
#X connect 14 0 10 0;
#X connect 14 1 11 0;
#X connect 14 2 15 0;
#X connect 15 0 16 0;
#X connect 16 0 17 0;
#X connect 18 0 2 0;
#X connect 19 0 0 0;
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: string_problem.pd
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20040607/207a61dc/attachment.txt>


More information about the Pd-list mailing list