Page 1 of 1

OSC Strings and Single Quotes

Posted: 04 Feb 2017 04:55
by ForestCat
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

Re: OSC Strings and Single Quotes

Posted: 08 Feb 2017 04:10
by phase_change
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.

Re: OSC Strings and Single Quotes

Posted: 08 Feb 2017 20:05
by MrCorba
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

Code: Select all

setattribute(Text, 'content', 'Your OSC STRING');
Hopefully this helps

Re: OSC Strings and Single Quotes

Posted: 18 Feb 2017 22:38
by ForestCat
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.