Max:
Filter:
sc3-plugins/Classes (extension) | UGens > Analysis

Max
ExtensionExtension

maximum within last x samples

//SLUGens released under the GNU GPL as extensions for SuperCollider 3, by Nick Collins, http://composerprogrammer.com/index.html 

Description

Will output the maximum value of over the last numsamp samples, calculated efficiently by storing a local maximum for every control period. The numsamp argument will be rounded to a multiple of control period lengths. The output is the held maximum at control rate.

Class Methods

.ar

Arguments:

in

input to sample (.ar rate)

numsamp

take the maximum over this number of samples into the past (will be rounded to control periods)

Examples