RCer

Created by Panaiotis
© 2001 by Panaiotis. All rights reserved.

General

Smoothes continuous data. Limits output between a minimum and maximum. Input is a destination value RCer will seek. It outputs values in increments of step, in time intervals of rate, until it reaches the destination. It then shuts off until a new destination is received. If it receives a new destination before reaching an old destination, the new destination takes precedence and the old is ignored.

Input

  bang left inlet Output the currently stored value.
  int left inlet destination value that RCer seeks linearly. If the destination value is equal to the currently stored value, there is no output. RCer always seeks the most recently received destination value, even if it never reaches a previously given destination.
  int in1 sets the rate in milliseconds between each output value. A rate of 0 will force RCer to output all values (in accordance with the current step value) between its current value and the destination in one immediate series (uzi with numbers). The rate can be changed during a seek and RCer will adjust immediately. Once RCer is actively seeking, input of new destinations will not break the established output tempo regardless of the delay/nodelay status.
    A negative rate will cause RCer to calculate iteration tmes based on the time it takes (absolute value of the input rate) to travel from min to max accounting for the step value.
  int in2: sets the step value between each output value. If the step value is -1 RCer will jump from its current value to the destination value without generating any values between. If the step value is 0 RCer shuts off, like a gate (bang will still work). If rate was entered as a negative value, iteration times will be adjusted.
  int in3: sets a very hard floor (minimum destination value).
  int in4: sets a very hard ceiling (maximum destination value).
    If min >= max, there is no limit to the output (well, maximum integer size for the computer).
  nodelay begin output of values immediately upon receipt of a destination. RCer will not interrupt the trigger rate even with nodelay.
  delay delay output of the first value by an interval of current rate.
  minmax Skip to min and count to max (max becomes destination).
  maxmin Skip to max and count to min (min becomes destination).
  set N Sets the current value to N. RCer skips to N and seeks the destination.

Arguments

Optional ints: rate, step, min, max, delayfirst (0=nodelay, 1=delay).

Output

From left to right:

   int current value of RCer
  bang still seeking
  bang reached destination

Examples

   

See also

counter, autocount, pipe