RNBO Objects & Operators peak
Open Help

peak

Output larger peak values

Description

Compares an input value to the stored peak value and if it's larger it sends the input to the output and sets it as the new peak.

Inlets

in1 [bang, number, list]

The input value to compare to the stored value. If input is greater than the highest value received (peak), it is passed and set as the new peak.

in2 [number, list]

Sets the peak value. If a higher value is received in the left inlet, it will become the new peak.

Outlets

out [number]

Left outlet: New maximum values are sent out.

isNew [number]

Middle outlet: If the number received is a new maximum value, the output is 1. If the number received in the left inlet is not a new maximum value, the output is 0.

isOld [number]

Right outlet: If the number received is a new maximum value, the output is 0. If the number received in the left inlet is not a new minimum value, the output is 1.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

in1 [bang, number, list]

The input value to compare to the stored value. If input is greater than the highest value received (peak), it is passed and set as the new peak.

in2 [number, list]

Sets the peak value. If a higher value is received in the left inlet, it will become the new peak.

See Also

Name Description
peak
change Filter out repetitions
gtep Pass greater than or equals operator. Pass the left input if the condition is met.
maximum Output the Highest Value.
minimum Output the Smallest Value.
trough Output a number if less than previous numbers