Annoyingly TD doesn't play the audio from a movie file by default! What you must create is an AUDIO MOVIE CHOP. Drag the MOVIE FILE IN node onto this & connect and Audio Device Out & you'll get the movie audio!
Make an LFO CHOP. Set it to pulse. Choose a frequency. Connect a COUNT CHOP to it. For this example, set it to Loop Min/Max. And set the Max to something like 9999. Make a NOISE CHOP. Drag the Count CHOP's value into the Seed parameter. You might have to add [0] at the end of the op('noise1')[0] so that the value is actually read. Also set the amplitude and offset to 0.5, so the noise is going from 0 to 1. Connect a MATH CHOP to the noise. In the OP tab, set the integer to Round (so we get whole numbers) and also set the To Range to the numbers you'd like your random values to fall between. You now have random numbers being pulsed.
say you have a few words in a sentence or a bunch of words in a line (could be a very long line - I think this requires there to be no "returns" or "new lines" to work). Say you wanted to create a table of all the letters and spaces. This is one way to achieve it. Eg. Here are some words in a line. This might be displayed as a few lines because there are so many words, but there is no return or new line character. Your words will sit inside a text DAT, or some form of DAT. Lets say it's in a select DAT called "select1" Attach a Substitute DAT In the before parameter field, toggle the python option and enter: op('select1').text In the after field, enter : op('select1').text.replace("","/")[1:-1] The first bit of code is just taking your original text. The second is specifying what to replace, in our case it is putting a "/" after everything. The part in the square brackets is saying to start at the 1th lett...
To get reliable fast playback in Touch Designer, it seems best to use the HAP codec. There's a free tool for Windows called Shutter Encoder that can batch process a bunch of videos into HAP (and many other codecs). Things to note - HAP files are quite a bit larger than your normal mp4 file.
Comments
Post a Comment