Page 1 of 1

Introducing time delays with OSC

Posted: Mon Nov 15, 2010 02:40
by Rothko
I am planning to use OSC to drive Resolume for an art installation.

My intention is to code a sequence of clips / effect changes that automatically take effect over time.

Can anyone tell me how to code that in OSC? - have played around with the set timetag command with no success - i want to trigger changes in resolume at between 10 and 30 second intervals.

Thanks

Alistair

Re: Introducing time delays with OSC

Posted: Mon Nov 15, 2010 20:58
by Joris
Which program are you using to send the OSC messages?

Re: Introducing time delays with OSC

Posted: Thu Nov 18, 2010 10:47
by Rothko
Hi - thx for reply.

I am just using 'Processing' that is mentioned in the Resolume manual.

I think I have got a bit further in that there is a WAIT command but I haven't got it to work yet. This may be due to my lack of experience with OSC looks like I have to have a label on the wait command e.g.,

something.wait

but I haven't worked out how to define 'something'.

What would be very helpful is link to a doc on how to code OSC. There is lots of info on what each of the commands do and what their parameters and some example bits of coding but nothing that says here's the structure of an OSC script.... first you have to setup these fields, then you do these definitions, then you have your actual code, then this is how you end your script, etc.

Anyone seen any such guidance?

Thanks

Alistair

Re: Introducing time delays with OSC

Posted: Thu Nov 18, 2010 13:10
by Joris
I think you may be blurring the line a bit between what part of this task is done in Processing, and what part is done in OSC.

In its most basic form, OSC is just a message you send to Resolume when you want it to be sent. For instance /layer1/clip1/opacity 1, to turn the opacity of clip 1 in layer 1 to 100%. The part where you actually decide *when* to send this message would be done, in your case, in Processing.

How to go about it depends on what you want to do, but for instance you could make a timer in Processing by using the following pseudocode:
-set framerate to 25
-set timer variable to 0
-on every frame, add 1 to the timer variable
-if timer variable reaches 125, send OSC message

This will send an OSC message after 5 seconds.

I hope that makes sense and helps you a bit.

Joris