normalise audio signal and resampling to X number of samples

 A quick way to normalise your audio signal is to:

  1. Add both channels in a Math CHOP
  2. Connect an envelope CHOP to this and set the width to the max value (probably 10)
  3. 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.

  1. Connect the normalised values to an Audio Spectrum CHOP
  2. Set FFT Size to your desired resolution. Higher for more detail
  3. Connect the Spectrum to the first input of a Resample CHOP, set to New Rate, New Interval
  4. You can now create a Pattern CHOP and set the length to however many samples you want.
  5. 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 go along the spectrum & the Columns value he uses as the number of samples that he resamples the audio to. To get these values from the SOP into compatible CHOPs, we can use a SOP-TO node.He then merges this after the Resample CHOP so that the TX values are together with the spectrum.

Comments

Popular posts from this blog

Rollover effect, panel chop, image selector, containers, dat execute, panel execute, strings, ifs, renderpick and instances