centroid Spectral Processing:Other centroid centroid Calculate the spectral centroid of a signal. Description Calculate the spectral centroid of an audio signal on a given trigger. Syntax kcent centroid asig, ktrig, ifftsize Initialization ifftsize -- fftsize. Non pow-of-two values are converted to the next pow-of-two not smaller than ifftsize. Performance kcent -- the spectral centroid in Hz asig -- an input audio signal ktrig -- 1 to calculate a new centroid, 0 to skip the process (and output previous value). Examples Here is an example of the centroid opcode. It uses the file centroid.csd. Example of the centroid opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Sensing and Control: Tempo and Pitch estimation Credits Author: V Lazzarini; August 2012