qcOSC + BreathOSC + video

Abhi's picture

Hello

I have connected qcOSC and breathOSC. Works just fine in quartz, qcosc gives a nice range of osc signals. I want to connect it to a video, such that when i blow into breathOSC, it produces increasing values and the video plays forward and when I stop blowing into it, it takes the decreasing values and the video plays backward

what patches should I use with the video so that with increasing OSC values the video plays forward and decreasing values the video plays backward. And with a skip or jump of OSC values the video still playsback smooth

Is there someway I can use Stop Watch, Patch Time or Timeline patches to get it working

Thanks

Abhi's picture
Re: qcOSC + BreathOSC + video

Does no one have anything to share on this?

Swiftlikeninja's picture
Re: qcOSC + BreathOSC + video

Vades v002 movie player patch allows you to adjust the playhead (cant remember if the stock does or not) in the previous builds if you scrubbed the playhead back and fourth it would crash but that might have been fixed. You could take the osc values and normalize them from 0-1 (the playhead range) and then pipe it through a smooth patch before connecting to the playhead. This should allow for smooth seeking (you'll have to adjust the smooth timing to find the sweet spot).

Hopes this helps

s-ninja

dust's picture
Re: qcOSC + BreathOSC + video

here is a simple patch. it takes your breath that is normalized int the 0 to1 range, smoothes it and interpolates that to a -2 to 2 range that is used to control the rate of the video playback. when breathing it plays forward when not breathing it plays backwards. also added a simple filter controlled by breath as well.

PreviewAttachmentSize
breathOSC.qtz31.39 KB

Abhi's picture
Re: qcOSC + BreathOSC + video

Hey Swiftlikeninja, Dust..thankyou guys

thanks for the share Dust, it works like a charm. absolutely wonderful. Better than the one I tried to make using Counter and Integrator. I have 2 questions now, -after the last frame the video loops back from frame 1. I want it to stay on the last frame for how much ever time I breathe and not loop back to frame 1 - how do I make it smoother?what values/settings can I play with?

Thanks again Dust

dust's picture
Re: qcOSC + BreathOSC + video

just uncheck the loop button on the movie importer patch. this should pause on the last frame of the video. a negative rate will reverse the video and thus change its play position so you may have to do some logic with a conditional patch like test if current output position is equal to the duration to find out when you are on the last frame then do some more logic to test if you are on the last frame and breathing, then change the movie import patch's start position input accordingly. to smooth some more you can up the smooth patches increasing and decreasing durations to lets say 1. also you could add an inertia patch and play with the friction settings. you could use this inertia on the rate or the start position etc....