maxabs Signal Modifiers:Comparators and Accumulators maxabs maxabs Produces a signal that is the maximum of the absolute values of any number of input signals. Description The maxabs opcode takes any number of a-rate or k-rate signals as input (all of the same rate), and outputs a signal at the same rate that is the maximum of all of the inputs. It is identical to the max opcode except that it takes the absolute value of each input before comparing them. Therefore, the output is always non-negative. For a-rate signals, the inputs are compared one sample at a time (i.e. maxabs does not scan an entire ksmps period of a signal for its local maximum as the max_k opcode does). Syntax amax maxabs ain1, ain2 [, ain3] [, ain4] [...] kmax maxabs kin1, kin2 [, kin3] [, kin4] [...] Performance ain1, ain2, ... -- a-rate signals to be compared. kin1, kin2, ... -- k-rate signals to be compared. Examples Here is an example of the maxabs opcode. It uses the file maxabs.csd. Example of the maxabs opcode. See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Comparators and Accumulators Credits Author: &nameanthony; March 2006 New in Csound version 5.01