Comparators and Accumulators

- maxA :: [Arate] -> Arate
- maxK :: K k0 => [k0] -> Krate
- max_k :: K k0 => Arate -> k0 -> Irate -> Krate
- maxabsA :: [Arate] -> Arate
- maxabsK :: K k0 => [k0] -> Krate
- maxabsaccum :: Arate -> Arate -> SignalOut
- maxaccum :: Arate -> Arate -> SignalOut
- minA :: [Arate] -> Arate
- minK :: K k0 => [k0] -> Krate
- minabsA :: [Arate] -> Arate
- minabsK :: K k0 => [k0] -> Krate
- minabsaccum :: Arate -> Arate -> SignalOut
- minaccum :: Arate -> Arate -> SignalOut

# Documentation

maxA :: [Arate] -> ArateSource

- opcode : max
- syntax :

amax max ain1 [, ain2] [, ain3] [, ain4] [...] kmax max kin1 [, kin2] [, kin3] [, kin4] [...]

- description :

The max 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. For a-rate signals, the inputs are compared one sample at a time (i.e. max does not scan an entire ksmps period of a signal for its local maximum as the max_k opcode does).

maxK :: K k0 => [k0] -> KrateSource

- opcode : max
- syntax :

amax max ain1 [, ain2] [, ain3] [, ain4] [...] kmax max kin1 [, kin2] [, kin3] [, kin4] [...]

- description :

The max 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. For a-rate signals, the inputs are compared one sample at a time (i.e. max does not scan an entire ksmps period of a signal for its local maximum as the max_k opcode does).

max_k :: K k0 => Arate -> k0 -> Irate -> KrateSource

- opcode : max_k
- syntax :

knumkout max_k asig, ktrig, itype

- description :

max_k outputs the local maximum (or minimum) value of the incoming asig signal, checked in the time interval between ktrig has become true twice.

maxabsA :: [Arate] -> ArateSource

- opcode : maxabs
- syntax :

amax maxabs ain1 [, ain2] [, ain3] [, ain4] [...] kmax maxabs kin1 [, kin2] [, kin3] [, kin4] [...]

- 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).

maxabsK :: K k0 => [k0] -> KrateSource

- opcode : maxabs
- syntax :

amax maxabs ain1 [, ain2] [, ain3] [, ain4] [...] kmax maxabs kin1 [, kin2] [, kin3] [, kin4] [...]

- 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).

maxabsaccum :: Arate -> Arate -> SignalOutSource

- opcode : maxabsaccum
- syntax :

maxabsaccum aAccumulator, aInput

- description :

maxabsaccum compares two audio-rate variables and stores the maximum of their absolute values into the first.

maxaccum :: Arate -> Arate -> SignalOutSource

- opcode : maxaccum
- syntax :

maxaccum aAccumulator, aInput

- description :

maxaccum compares two audio-rate variables and stores the maximum value between them into the first.

minA :: [Arate] -> ArateSource

- opcode : min
- syntax :

amin min ain1 [, ain2] [, ain3] [, ain4] [...] kmin min kin1 [, kin2] [, kin3] [, kin4] [...]

- description :

The min 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 minimum of all of the inputs. For a-rate signals, the inputs are compared one sample at a time (i.e. min does not scan an entire ksmps period of a signal for its local minimum as the max_k opcode does).

minK :: K k0 => [k0] -> KrateSource

- opcode : min
- syntax :

amin min ain1 [, ain2] [, ain3] [, ain4] [...] kmin min kin1 [, kin2] [, kin3] [, kin4] [...]

- description :

The min 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 minimum of all of the inputs. For a-rate signals, the inputs are compared one sample at a time (i.e. min does not scan an entire ksmps period of a signal for its local minimum as the max_k opcode does).

minabsA :: [Arate] -> ArateSource

- opcode : minabs
- syntax :

amin minabs ain1 [, ain2] [, ain3] [, ain4] [...] kmin minabs kin1 [, kin2] [, kin3] [, kin4] [...]

- description :

The minabs 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 minimum of all of the inputs. It is identical to the min 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. minabs does not scan an entire ksmps period of a signal for its local minimum as the max_k opcode does).

minabsK :: K k0 => [k0] -> KrateSource

- opcode : minabs
- syntax :

amin minabs ain1 [, ain2] [, ain3] [, ain4] [...] kmin minabs kin1 [, kin2] [, kin3] [, kin4] [...]

- description :

The minabs 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 minimum of all of the inputs. It is identical to the min 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. minabs does not scan an entire ksmps period of a signal for its local minimum as the max_k opcode does).

minabsaccum :: Arate -> Arate -> SignalOutSource

- opcode : minabsaccum
- syntax :

minabsaccum aAccumulator, aInput

- description :

minabsaccum compares two audio-rate variables and stores the minimum of their absolute values into the first.