RNBO Objects & Operators updown~
Open Help

updown~

Trapezoidal function generator with constant attack and release

Description

updown~ is driven by a ramp from 0 - 1 or 1 - 0. It generates a trapezoidal function where the attack and release times are independent of the speed of the input ramp, unlike trapezoid~ where start and end times are specified as a proportion of the total input ramp cycle and thus will vary with the speed of the input ramp. Note that the up phase of the updown~ object's output occurs after the reset of a phasor or a zero-to-non-zero transition, whether the input ramp moves up or down. The down phase of the output occurs in the time before a reset (or the end of the ramp) is expected to occur.

Inlets

input [signal]

Phasor input

Outlets

output [signal]

Trapezoidal output

Dynamic Attributes

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

down [number] (default: 30)

Sets the time of the output ramp descending from the maximum value to 0 in milliseconds.

input [signal]

Phasor input

level [number] (default: 1)

The maximum value of the trapezoidal function

up [number] (default: 30)

Sets the time of the output ramp ascending from 0 the maximum value in milliseconds

See Also

Name Description
updown~
phasor~ Generate sawtooth signals
subdiv~ Predictive subdivision of an input phasor