Remove backslash from symbol/list
Hi all,
I receive lists with symbols from Pd, which have some backslashes because of spaces, such as
4716.631348 90. 1. 2. gong\ 2 10. 0. 2. 0. 0. 0. 0. 166. 43. 60.
(in bold is the symbol)
Is there a way to edit this symbol with sprintf to keep the space, but remove the backslash? That is, change if from "gong\ 2" to "gong 2".
THanks,
jmmmp
not with sprintf.
but it makes me wonder how do you receive that message from pd,
OSC ?
something like gong\ 2 can not be part of a max message.
try to type it into message object ...
if you have it in text an output, it wil get auto transformed into "gong 2"

I got it directly from pd through pdmax. This is the usual way of writing spaces in symbols in Pd. But I just found out how to fix it - sending it through a [sprintf %s] does the job.