Sensory Dissonance model, measuring roughness between pairs of prominent spectral peaks. Follows the algorithm in William A. Sethares (1998) Consonance-Based Spectral Mappings. CMJ 22(1): 56-72.
In usual use, you probably won't care about the other arguments; just pass an FFT in, assuming FFT size 2048 by default.
input fft chain, that is, from an FFT UGen
Maximum number of spectral peaks detected; cannot be modulated, initialisation only.
Minimum spectral power detection threshold for a peak
Normalisation factor. Calculated for you in the UGen class if you don't provide one, but you can experiment here. In combination with the next argument and maxpeaks, allows you to have alternative range outputs if you so desire.
Clamps very high dissonances, in default mode will end up with sensory dissonance measure in range 0.0 to 1.0