[PD] detect character in a symbol?

João Pais jmmmpais at googlemail.com
Tue Aug 10 12:07:51 CEST 2010

I've looked into this. I see two problems:

- this would be for the "famous" patch that I'm sending around. Since it's  
for non-pd users, I should limit myself to pd-ext objects - or I would  
have to ship gridflow with it, which might not be legal (don't know), but  
anyway isn't practical.

- I couldn't understand how to go from x/y (x and y being any natural  
numbers) to any other string format that I could use with [sel]. as I  
understood, string replace doesn't take spaces or expressions like "a " as  
parameter. In the cases I'm thinking of, the character to be detected is  
always in the middle. For now I'm using charaters / and :, like 7/8 or  


> On Sat, 7 Aug 2010, João Pais wrote:
>> a quick question: I wanted to detect a character in a symbol, in order
>> to route that symbol in a different way. Afaik, there is no object that
>> does that, so the only way would be to decompose the symbol in ascii
>> values, and then detect it.
> you can use [gf/string_replace] to replace one character by any other and
> then you use [sel] to see whether you get a different symbol.
>   _ _ __ ___ _____ ________ _____________ _____________________ ...
> | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801

Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
Studio +49 30 69509190
jmmmpais at googlemail.com | skype: jmmmpjmmmp

More information about the Pd-list mailing list