I'm trying to control Ardour with TouchOSC. TouchOSC always outputs OSC messages followed by a space and then a value.
example
/ardour/transport_stop 0
Ardour only wants to see
/ardour/transport_stop
How can I strip that trailing value in Pure Data?
I've only just started playing with PD so detailed info would be handy. I currently have this set up.
import mrpeach
udpreceive 3819
|
unpackOSC
|
print
This obviously prints the messages coming in on port 3819 and is working nicely.
I'd like to check if the message begins with /ardour then strip the trailing value and resend the message out another port.
I'm pretty sure I can figure out the resending, I just don't know how to manipulate the message.
Thanks for any help!