Hello everyone! This is my first question for TouchDesigner and hope if anyone may know the answer can help to solve the problem. I am doing an artwork to visualise the speed of the image.
My ideal outcome is to make the video reduce it frame rate / pause at the higher frequency op('null1')['High']
and resume normal speed and normal timecode after the pause.
Following some of the TD tutorials on youtube, I created AudioDevice In & Audio Analysis (and more components) to get the parameter and use it to control my video. I put the op('null1')['High']/2
in the cuepoint of my MovieFile In but it doesn’t change my speed and do nothing on my frame rate.
In this situation, what should I do to make my movie move and pause with the audio?
Thank you very much if I could get help!
My thoughts:
Use the index not the cue point (set it to specify index instead of sequential).
From there you can use a constant chop of value 1, fed into a speed chop, creating an increase of 1 second per second (make sure the index is measured seconds).
You can then affect the rate by changing the constant value, (0.5 is half speed, 0 is paused)
You can subtract the high frequency analyze chop from your constant to affect the playback speed.
The easy way is to take the analyze chop and use a logic chop (set to “on while greater than zero”) so anytime a high frequency is played the video fully stops.
If you want more control (maybe the louder the noise, the slower the video plays) then skip the logic and use a math chop to get the numbers in the range you like. You will need to play around to get your desired result, but for example you could have a loud sound reduce the playback speed to zero, while a quiet sound reduces playback speed by 20%.