Hi,
Wondering if anyone her can tell me if/how it's possible to either:
A.) Send string, i.e. Hello from Lemur via OSC WITHOUT single quotes, or
B.) Receive an OSC string in Lemur and strip out the single quotes
If Lemur has any string functions, i.e. remove n characters at position x, etc, I can't find them.
Thanks for any help
OSC Strings and Single Quotes
-
- Regular
- Posts: 114
- Joined: 31 May 2015 18:45
- Location: Austin, TX
Re: OSC Strings and Single Quotes
1) It's not possible. The OSC syntax for concatenating multiple words into a single string requires you to use single quotes. Otherwise you will be sending an array of strings with each string ending where a space is.
2) Probably use a conditional? I don't want to think this one thru.
2) Probably use a conditional? I don't want to think this one thru.
Have you tried turning it off and on again?
Re: OSC Strings and Single Quotes
Lemur unfortunately doesn't have (m)any String functions.
If my assumption is correct, you're displaying the OSC string with a monitor object.
Try using a Text object, the quotes will disappear like a fart in a fan factory. Use
Hopefully this helps
If my assumption is correct, you're displaying the OSC string with a monitor object.
Try using a Text object, the quotes will disappear like a fart in a fan factory. Use
Code: Select all
setattribute(Text, 'content', 'Your OSC STRING');
"Having no silence in music is like having no black or white in a painting" - Brian Eno
https://soundcloud.com/mrcorba
https://soundcloud.com/mrcorba
Re: OSC Strings and Single Quotes
Thanks guys. As usual, no email notification of replies from this forum.
I needed to do this for different reasons, I'm using sysex to communicate with an arduino. I just gave up on my original idea and programmed around the Lemur limitation.
I needed to do this for different reasons, I'm using sysex to communicate with an arduino. I just gave up on my original idea and programmed around the Lemur limitation.