Re: [PD] Route "1" instead of 1

2020-10-01 Thread IOhannes m zmoelnig
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):

|
[tl 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


[PD] Route "1" instead of 1

2020-10-01 Thread Maximiliano Estudies
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]

to convert the symbols to floats, which is actually fine, but I have a big
project coming up where I will have to do this a lot and maybe there is a
way to ask [route] politely to recognize the symbol "1".

Cheers,
-- 
Maximiliano Estudies
*VDT Referat Beschallung*
+49 176 36784771
omslo.com
maxiestudies.com
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list