Hi folks, I'm trying to figure out how to have a bunch of text, with spacces, get treated as one symbol so that an external can work with it as one thing. In Max, I did this by using the tosymbol object, and then creating a message that was 'eval-string "(all my text as one string here)"'. Is there a Pd idiom for doing something similar that I should follow? Use cases are
a) someone enters code in a message box: '(out 0 :foobar)' b) code is received as a long string over osc or other network, and needs to be sent to the external
Apologies at the Pd ignorance, still trying to figure all this out while! iain
May be this lines gives you lots of clues:
https://github.com/pure-data/pure-data/blob/8743db3597c371a9491740ac3cbff0ea...
PS: I'm on my second Pd external and found the binbuf thing very useful.
:)
Mensaje telepatico asistido por maquinas.
On 4/13/2021 7:56 PM, Iain Duncan wrote:
Hi folks, I'm trying to figure out how to have a bunch of text, with spacces, get treated as one symbol so that an external can work with it as one thing. In Max, I did this by using the tosymbol object, and then creating a message that was 'eval-string "(all my text as one string here)"'. Is there a Pd idiom for doing something similar that I should follow? Use cases are
a) someone enters code in a message box: '(out 0 :foobar)' b) code is received as a long string over osc or other network, and needs to be sent to the external
Apologies at the Pd ignorance, still trying to figure all this out while! iain
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Oops Iain, I thought this was on the Pd-Dev list :)
you can do:
[(out 0 :foobar)( // <-- message object | [fudiformat -u] | [list tosymbol] |
--
Mensaje telepatico asistido por maquinas.
On 4/13/2021 8:47 PM, Lucas Cordiviola wrote:
May be this lines gives you lots of clues:
https://github.com/pure-data/pure-data/blob/8743db3597c371a9491740ac3cbff0ea...
PS: I'm on my second Pd external and found the binbuf thing very useful.
:)
Mensaje telepatico asistido por maquinas. On 4/13/2021 7:56 PM, Iain Duncan wrote:
Hi folks, I'm trying to figure out how to have a bunch of text, with spacces, get treated as one symbol so that an external can work with it as one thing. In Max, I did this by using the tosymbol object, and then creating a message that was 'eval-string "(all my text as one string here)"'. Is there a Pd idiom for doing something similar that I should follow? Use cases are
a) someone enters code in a message box: '(out 0 :foobar)' b) code is received as a long string over osc or other network, and needs to be sent to the external
Apologies at the Pd ignorance, still trying to figure all this out while! iain
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management ->https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Ah fantastic, that's exactly what I need. fudi looks like the route, and the dev link was helpful too. Wasn't sure what list to put it on, but I actually needed both the patcher and dev answer, so thanks for sending both!
iain
On Tue, Apr 13, 2021 at 5:28 PM Lucas Cordiviola lucarda27@hotmail.com wrote:
Oops Iain, I thought this was on the Pd-Dev list :)
you can do:
[(out 0 :foobar)( // <-- message object | [fudiformat -u] | [list tosymbol] |
--
Mensaje telepatico asistido por maquinas.
On 4/13/2021 8:47 PM, Lucas Cordiviola wrote:
May be this lines gives you lots of clues:
https://github.com/pure-data/pure-data/blob/8743db3597c371a9491740ac3cbff0ea...
PS: I'm on my second Pd external and found the binbuf thing very useful.
:)
Mensaje telepatico asistido por maquinas.
On 4/13/2021 7:56 PM, Iain Duncan wrote:
Hi folks, I'm trying to figure out how to have a bunch of text, with spacces, get treated as one symbol so that an external can work with it as one thing. In Max, I did this by using the tosymbol object, and then creating a message that was 'eval-string "(all my text as one string here)"'. Is there a Pd idiom for doing something similar that I should follow? Use cases are
a) someone enters code in a message box: '(out 0 :foobar)' b) code is received as a long string over osc or other network, and needs to be sent to the external
Apologies at the Pd ignorance, still trying to figure all this out while! iain
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
if it's a matter of using a ready made external object, cyclone/tosymbol exists
If you want a pd vanilla patch that does the same, check else/any2symbol
the key is to use vanilla's [list fromsymbol] and [list tosymbol] and hopefully you'll see what I mean and figure it out.
anyway, really really looking forward to your external, it'll be a huge game changer :)
best of luck
cheers
Em ter., 13 de abr. de 2021 às 20:50, Lucas Cordiviola < lucarda27@hotmail.com> escreveu:
May be this lines gives you lots of clues:
https://github.com/pure-data/pure-data/blob/8743db3597c371a9491740ac3cbff0ea...
PS: I'm on my second Pd external and found the binbuf thing very useful.
:)
Mensaje telepatico asistido por maquinas.
On 4/13/2021 7:56 PM, Iain Duncan wrote:
Hi folks, I'm trying to figure out how to have a bunch of text, with spacces, get treated as one symbol so that an external can work with it as one thing. In Max, I did this by using the tosymbol object, and then creating a message that was 'eval-string "(all my text as one string here)"'. Is there a Pd idiom for doing something similar that I should follow? Use cases are
a) someone enters code in a message box: '(out 0 :foobar)' b) code is received as a long string over osc or other network, and needs to be sent to the external
Apologies at the Pd ignorance, still trying to figure all this out while! iain
_______________________________________________Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list