Variable range signal folding
Name | Type | Opt | Description |
---|---|---|---|
folding-mode-flag (0 or 1) | int | opt | An optional argument is used to set the mode of the pong~ A 0 sets signal folding (the default), and a 1 sets signal wrapping (see the message). |
low/high-values | float | opt | When used with the optional mode argument, the low and high range values for the pong~ objects can be specified by two additional float arguments. If only one argument is given following the mode argument (e.g., ), it specifies the low range value of the pong~ object above which folding occurs, and the high range value is set to 1.0 (the default). If two arguments are present, the first argument specifies the low range value and the second argument specifies the high range value. |
float | input [float] |
In left inlet: All incoming signal or float values which exceed the high or low value ranges specified by arguments to the pong~ object are either folded back into this range (i.e., values greater than one are reduced by one plus the amount that they exceed one, and negative values are handled similarly) or wrapped (i.e., values greater than one are reduced by two, and negative values are increased by two), according to the mode of the pong~ object (see the message). In center or right inlet: The pong~ objects accepts low and high range values for the range outside of which folding occurs. If the pong~ object has either one or no arguments, pong~ will have two inlets. The right inlet is used to set the high range value above which signal folding occurs, the low range value is assumed to be zero. If the pong~ object has two arguments, the object has three inlets. The center inlet specifies the low value range below which folding occurs, and the right inlet specifies the high range limit. The default object has no arguments, and the right inlet specifies the upper value. If the current low range value is greater than the high range value, their behavior is swapped. |
mode | folding-mode-flag (0 or 1) [int] |
The word pong~ object. sets the pong~ object to signal folding. Values greater than one are reduced by one plus the amount that they exceed one, and negative values are handled similarly. This is the default mode of the object. sets the pong~ object to signal wrapping. Values greater than one are reduced by two, and negative values are increased by two. |
, followed by a zero or one, sets the folding mode of the
signal | In left inlet: All incoming signal or float values which exceed the high or low value ranges specified by arguments to the pong~ object are either folded back into this range (i.e., values greater than one are reduced by one plus the amount that they exceed one, and negative values are handled similarly) or wrapped (i.e., values greater than one are reduced by two, and negative values are increased by two), according to the mode of the pong~ object (see the message). In center or right inlet: The pong~ objects accepts low and high range values for the range outside of which folding occurs. If the pong~ object has either one or no arguments, pong~ will have two inlets. The right inlet is used to set the high range value above which signal folding occurs, the low range value is assumed to be zero. If the pong~ object has two arguments, the object has three inlets. The center inlet specifies the low value range below which folding occurs, and the right inlet specifies the high range limit. The default object has no arguments, and the right inlet specifies the upper value. If the current low range value is greater than the high range value, their behavior is swapped. |
Name | Description |
---|---|
phasewrap~ | Wrap a signal between π and -π |