How do you script a "wait"?

Discuss Lemur and share techniques.
Post Reply
ahonoe
Newbie
Posts: 25
Joined: 07 Feb 2012 22:30

How do you script a "wait"?

Post by ahonoe »

Hi All,

I need to oscout() successive values in an array, waiting a few milliseconds between sending each value. Can anyone suggest how to script this?
Regards,

Scott
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: How do you script a "wait"?

Post by Macciza »

Hi
Remember that Lemur is based on a 'framerate' of 60fps or approx every 16ms.
So you would need to set up a script executing OnFrame that does what you want.
They will have to be sent as individual messages anyway
Why do you need the delays in the osc messages?
What are you trying to do, what are you talking to?
More info needed
Cheers
MM
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
ahonoe
Newbie
Posts: 25
Joined: 07 Feb 2012 22:30

Re: How do you script a "wait"?

Post by ahonoe »

Thanks Macciza.

My application sends an array of pad numbers on, and off, to Bidule. Bidule has a limitation that its OSC receiver doesn't send a discreet 0->1->0 trigger for each value received when those values arrive too close together. Essentially it behaves like I'm sending it a chord - multiple simultaneous notes generate a single trigger. So I thought I'd put a small delay between each value being sent and "serialize" the values that Bidule receives to see if it will then generate a trigger for each value.
Regards,

Scott
Post Reply