is there a device in td able to jump in a random position in video timeline when audio signal reaches some peak level?
Hey,
You probably would be using a Random Number generator like the Noise CHOP which feeds it’s value into a Hold CHOP. The Hold has a sample and Hold behavior, so given a trigger it will hold it’s first inputs value until a new trigger is received.
first you would want to analyze the Audio Signal using for example the RMS Power Function of the Analyze CHOP.
Next connect a Logic CHOP and set the Convert Input parameter to “Off When Outside Bounds”. In the Bounds parameter choose values that represent the values when you don’t want the audio signal to trigger an event. The Logic CHOP now goes from 0 to 1 whenever the Audio Signal reaches a certain threshold.
Put down a Noise CHOP, set the Noise Type to Random and turn on Time Slice on the Common Parameter Page.
Use the output of the Noise CHOP as the first input to a Hold CHOP and connect the previous used Logic CHOP as the second input to the Hold CHOP.
You will likely want to scale or remap the values in he Hold CHOP now via a Math CHOP but generally you can now use the value to control the Cue Point in the MovieFileIn TOP and use the trigger from the Logic CHOP to control the Cue Pulse Parameter.
A note though, depending on the video file (codec) and your hardware setup you will encounter hickups in system performance as the MovieFileIn TOP tries to jump to a frame and read it off the Harddrive.
cheers
Markus
that looks great. thanks a lot. i’m doing that.