Posts

Showing posts with the label chop

an on/off toggle switch with lag

  sort of picked this up from here - https://youtu.be/ZTqh5HKmya8?list=PLFrhecWXVn59Xtcy1L2vfSaqq2_Ts88ov Anyway - Make a keyboard-in Chop Connect it to a LOGIC Chop Change the Channel Pre-OP drop down parameter to Toggle Add a Lag Chop to this, tweak params as required. You now have a smooth toggle signal.  

audio from movie file in!

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!

using the CHOP EXECUTE DAT node - VALUE CHANGE

 Will make other posts as I learn how to use the other bits! use case - say you have a Count CHOP and wish to execute a set of instructions everytime the value changes, the CHOP Execute DAT node is what you want! Eg, take values from a NOISE and apply them to a TRANSFORM, everytime the Count changes value. This is a bit like sample/hold of random values. Create the CHOP EXECUTE DAT. Next type in the name of your Count node in the CHOPs box The part we're interested in is this segment of code- def onValueChange(channel, sampleIndex, val, prev):     return We can delete everything above that! Also make sure on the Chop Execute, that "Value Change" is set to ON. so after the colon, we can make some variables (this is for clarity, not necessary) def onValueChange(channel, sampleIndex, val, prev):          source=op('NOISE')     target=op('TRANSFORM')              target.par.tx=sourc...

converting geometry to TOP to work with the 2022 Particle GPU

 To turn a SOP into a TOP (eg a 3d object into texture data) - First convert it into CHOPS, using a SOP TO. This will take each point's XYZ and convert it to RGB. Next convert CHOPS to TOP, using a CHOP TO. Specify the data format as RGB to incorporate all the data. This can now be used with the Particle GPU tool.

normalise audio signal and resampling to X number of samples

 A quick way to normalise your audio signal is to: Add both channels in a Math CHOP Connect an envelope CHOP to this and set the width to the max value (probably 10) Divide the math CHOP by the envelope CHOP in another math CHOP. Values should be sitting between -1 and 1 now. Now that you have these values you could resample them so you have an arbitrary number of samples, eg to display a FFT bar graph visualisation. Connect the normalised values to an Audio Spectrum CHOP Set FFT Size to your desired resolution. Higher for more detail Connect the Spectrum to the first input of a Resample CHOP, set to New Rate, New Interval You can now create a Pattern CHOP and set the length to however many samples you want. Connect this Pattern CHOP to the second input of the resample. In Blieam Tschepe's Audio Wheel tutorial HERE , he uses a GRID SOP instead to resample the audio. This is because he is using the points of the grid to position small rectangles. The X Size of the grid, he uses to g...