Controlling Time with a streamdeck

I am trying to use a streamdeck and osc to do something I can do with a regular TD toggle button but doesn’t work with this method. My question is why and is there a better way to do it?

I have a TD button, which does exactly what I want, (start and stop the timeline, basic transport control) going to a chop execute.

def onOffToOn(channel, sampleIndex, val, prev):
	a = op('../project1').time
	a.play = 1
    return
def onOnToOff(channel, sampleIndex, val, prev):
	a = op('../project1').time
	a.play = 0
    return

Simple stuff.

When I put a chop execute on an oscin > null with the null being set to either 1 or 0 I can get it to stop the timeline but not start playing again. I have tried the time class and directly setting the toggle button value0 to either 1 or 0.

me.time.play = 1 

or 0 - does the same thing, not work. As soon as the timeline stops, osc seems to no longer be executing my chop even though TD is still receiving the osc 1 or 0.

Hello,
I doesnt understand why you use the timeline to mesure time, its even not working at all on my version!
When I need time, I use timer chop, much easier to run/stop/rewind and not stopping other processes…

Ok it works but I understand why it doesnt works with OSC because you stop the proces and there is no more OSC reception…
Use timer instead, it doesnt stop any process.

1 Like

Ok, I will look into that. However, I need to play up to 12 notchlc files and have them all play the same frame at the same time. So, since ima noob and this made sense, I set them to be locked to the timeline. Will I have a problem with them becoming out of sync?

I guess I will have to play with it. If you know of a way, or if it will just inherently, keep all my files playing the same frame at the same time, I would appreciate it.

I do think it’s a bit silly that by pressing pause on the timeline, it kills osc, but I don’t know how everything works…

Thank you!

This got overly complicated all of a sudden and it would solve me a bunch of problems to figure out if I could simply chop execute an osc input while the timeline is paused… like an option to turn that on as a feature would be awesome lol :slight_smile:

oscIn/Common/Time Slice = off

fixes the issue