[PD] [list prepend] without a space
Hi list, For OSC communication, I wonder to know how to do it. My original list(not exactly list but I say so) is: *test 1 2 3* Prepend symbols are: (prepend twice or more) */abc* */def* I want to do it [test 1 2 3( | [t a b] | \ |[symbol */abc*] | \ [list prepend] | [t a b] | \ |[symbol */def*] | \ [list prepend] | [print] The result is: */def/abctest123* But, I want to remove the space within */def* and */abc* I want to do without the space. */def/abctest123* how to do it? I tried with [$2$1] as list prepend, but the symbol in the text, it failed. Pleas help! Thanks, Jong ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [list prepend] without a space
Thanks Fred, yes your way is useful, but my problem is I don't know how long the list. For all that, I can't make message like [$1$2 $3 $4 $5 $6forever? ( It isn't formalized and the form of the list, is unknown. Greetings, Jong On Fri, Jan 17, 2014 at 6:38 PM, Fred Jan Kraan fjkr...@xs4all.nl wrote: On 01/16/2014 12:06 PM, Jonghyun Kim wrote: */def/abctest123* how to do it? I tried with [$2$1] as list prepend, but the symbol in the text, it failed. You can put a | [$1$2 $3 $4 $5 $6( Just before the print. What you want is a string, not a list. Pleas help! Thanks, Jong Greetings, Fred Jan ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [list prepend] without a space
The unknown list in example. There is no rules or form. == test 1 2 3 file computer 2.14 4423 I love you much forever 3234 days 44.2 degree == On Fri, Jan 17, 2014 at 6:43 PM, Jonghyun Kim agitato...@gmail.com wrote: Thanks Fred, yes your way is useful, but my problem is I don't know how long the list. For all that, I can't make message like [$1$2 $3 $4 $5 $6forever? ( It isn't formalized and the form of the list, is unknown. Greetings, Jong On Fri, Jan 17, 2014 at 6:38 PM, Fred Jan Kraan fjkr...@xs4all.nl wrote: On 01/16/2014 12:06 PM, Jonghyun Kim wrote: */def/abctest123* how to do it? I tried with [$2$1] as list prepend, but the symbol in the text, it failed. You can put a | [$1$2 $3 $4 $5 $6( Just before the print. What you want is a string, not a list. Pleas help! Thanks, Jong Greetings, Fred Jan ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [list prepend] without a space
Le 16/01/2014 12:06, Jonghyun Kim a écrit : Hi list, For OSC communication, I wonder to know how to do it. My original list(not exactly list but I say so) is: *test 1 2 3* Prepend symbols are: (prepend twice or more) */abc* */def* I want to do it [test 1 2 3( | [t a b] | \ |[symbol */abc*] | \ [list prepend] | [t a b] | \ |[symbol */def*] | \ [list prepend] | list split 2 | | [$1$2 | || [list append] | cheers c [print] The result is: */def/abctest123* But, I want to remove the space within */def* and */abc* I want to do without the space. */def/abctest123* how to do it? I tried with [$2$1] as list prepend, but the symbol in the text, it failed. Pleas help! Thanks, Jong ___ 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] [list prepend] without a space
Hello Jong, See patch attached, it could help you... ++ Jack Le 16/01/2014 12:06, Jonghyun Kim a écrit : Hi list, For OSC communication, I wonder to know how to do it. My original list(not exactly list but I say so) is: *test 1 2 3* Prepend symbols are: (prepend twice or more) */abc* */def* I want to do it [test 1 2 3( | [t a b] | \ |[symbol */abc*] | \ [list prepend] | [t a b] | \ |[symbol */def*] | \ [list prepend] | [print] The result is: */def/abctest123* But, I want to remove the space within */def* and */abc* I want to do without the space. */def/abctest123* how to do it? I tried with [$2$1] as list prepend, but the symbol in the text, it failed. Pleas help! Thanks, Jong ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list create_message.pd Description: application/puredata ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [list prepend] without a space
Wow! thanks Jack! It's a good point. On Fri, Jan 17, 2014 at 7:34 PM, Jack j...@rybn.org wrote: Hello Jong, See patch attached, it could help you... ++ Jack Le 16/01/2014 12:06, Jonghyun Kim a écrit : Hi list, For OSC communication, I wonder to know how to do it. My original list(not exactly list but I say so) is: *test 1 2 3* Prepend symbols are: (prepend twice or more) */abc* */def* I want to do it [test 1 2 3( | [t a b] | \ |[symbol */abc*] | \ [list prepend] | [t a b] | \ |[symbol */def*] | \ [list prepend] | [print] The result is: */def/abctest123* But, I want to remove the space within */def* and */abc* I want to do without the space. */def/abctest123* how to do it? I tried with [$2$1] as list prepend, but the symbol in the text, it failed. Pleas help! Thanks, Jong ___pd-l...@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 ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list