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".
Maximiliano Estudies *VDT Referat Beschallung* +49 176 36784771 omslo.com maxiestudies.com
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