Search found 40 matches

by newtfish
03 Mar 2015 15:28
Forum: General Discussion
Topic: Referencing objects using OSC internally in Lemur
Replies: 7
Views: 1413

Re: Referencing objects using OSC internally in Lemur

Hi Macizza, I'm trying to capture all incoming OSC (rather than specifying an address to capture). I'm guessing this is not possible. It's possible to listen on a specific address eg '/knob/x' But it is not possible to listen to all incoming OSC, Basically, I would like to capture the OSC coming in ...
by newtfish
02 Mar 2015 18:29
Forum: General Discussion
Topic: Referencing objects using OSC internally in Lemur
Replies: 7
Views: 1413

Re: Referencing objects using OSC internally in Lemur

There seems to be no way to listen to incoming OSC, other than specifying an address to listen to. e.g. Wild Card. I have incoming OSC from 127.0.0.1 . However if I want to obtain the OSC, the only way to do it, seems to be to specify an OSC address in an "On OSC" script. It seems impossible to ...
by newtfish
02 Mar 2015 18:24
Forum: General Discussion
Topic: split string?
Replies: 10
Views: 1929

Re: split string?

Thanks oldgearguy.

This is brilliant. Works perfectly.

Cheers

N
by newtfish
28 Feb 2015 23:28
Forum: General Discussion
Topic: split string?
Replies: 10
Views: 1929

Re: split string?

Strange, I get the feeling this should work. However it gives me "15" rather than "0.530000", for the values: sysex4 = {48,46,57,51,51,48,48,48}; A script called "ChangeValues()" to change the midi values to numbers: decl a; if(array == 48){ a = 0; }else if(array == 49){ a = 1; }else if(array == 50 ...
by newtfish
28 Feb 2015 21:00
Forum: General Discussion
Topic: split string?
Replies: 10
Views: 1929

Re: split string?

Hi oldgearguy, I'm sending an OSC message over midi (as sysex): (so this is what is received in the Lemur) "/Knob/x 0.933000" Which when converted to sysex is: {45,75,110,111,98,47,120,32,48,46,57,51,51,48,48,48} I'm guessing I have to split on space " " which is 32? So for the float/number I'm left ...
by newtfish
27 Feb 2015 20:07
Forum: General Discussion
Topic: split string?
Replies: 10
Views: 1929

Re: split string?

Thanks oldgearguy, This raises another question in my mind. How is it possible to turn it into an array and then into a number (directly)? Without turning it into string... How does Lemur differentiate between what is being converted into a number, and what is being converted into a string? Is there ...
by newtfish
21 Feb 2015 17:14
Forum: General Discussion
Topic: float string to float?
Replies: 1
Views: 552

float string to float?

Hi, Im wondering is there any way to change a string (which is a number), to a float? or number? For instance after you have used arraytostring() function, how do you turn the output into a number (if it is a number)? It seems this new arraytostring() function turns everything into a string, with ...
by newtfish
21 Feb 2015 15:53
Forum: General Discussion
Topic: split string?
Replies: 10
Views: 1929

split string?

Hi,

I'm wondering if it's possible to split a string, on a particular character, to create an array?

e.g.
decl string;
string = split('Mystringishere Mystringisthere', ' ');


Therefore:
string[0] is 'Mystringishere'

and

string[0] is 'Mystringisthere'
by newtfish
15 Feb 2015 19:45
Forum: General Discussion
Topic: Referencing objects using OSC internally in Lemur
Replies: 7
Views: 1413

Re: Referencing objects using OSC internally in Lemur

Hi Ndivuo, Many thanks. I would like to nest objects many levels deep, but reference them through OSC instead of having to remember where they are nested. The objects are referenced depending on how they are nested e.g. Knob1 is inside Container2, which is inside Container1 If I want to set Knob1 I ...
by newtfish
15 Feb 2015 04:40
Forum: General Discussion
Topic: Referencing objects using OSC internally in Lemur
Replies: 7
Views: 1413

Referencing objects using OSC internally in Lemur

Hi, I'm wondering whether it is possible through scripting to reference/set an object's values using OSC internally within Lemur? e.g. is there an oscin() function?? For instance I have an object called "Knob" with the OSC address: /Knob/x I know I can set "Knob" values by using: Knob.x = 0.456 ...