On 2020-10-01 11:48, Maximiliano Estudies wrote: > Dear List, > > is there a way to tell [route] to route the symbol "1" insead of (float) 1? > I'm working with OSC and the incoming messages have a lot of numbers (like > /track/1/fxparam/1/) in the namespace. For now I have been using > > [list split 1] > | | > [f ] | > | | > [list append]
like this: | | [loadbang] | [1( | [makefilename %d] | | [route x] | but this is only convenient, if you don't want to match many different number-symbols. another version of yours, which should perform slightly better (as it doesn't need to run [list append] just to strip the head away in the following [route] is): | [t l s] | | [list split] | | [float] | [== 1] | | [spigot ] | gfmdasr IOhannes _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list