speedlim

Limit the speed at which messages can pass through.

Description

speedlim takes one optional argument which is a speedlimiting time. This object uses the Max time format syntax, and the interval that the speedlim object uses can be either fixed or tempo-relative. Its output can be also be quantized using tempo-relative syntax.
The left inlet takes any message and outputs it according to the argument value. The right inlet takes int to change the speedlimiting time.

Arguments

Name Type Opt Description
minimum-delta-time int float symbol opt Sets an initial minimum time between outputs. Time can be specified in any of the time formats used in Max. If there is no argument, the minimum time is 0 milliseconds.

Messages

bang Performs the same function as an anything message applied to the passing of bang messages.
int input [int]
In left inlet: Performs the same function as an anything message applied to the passing of integers.

In right inlet: The number is stored as the minimum amount of time, in milliseconds, between successive outputs.
float input [float]
Performs the same function as an anything message applied to the passing of floats..
list input [list]
In left inlet: Performs the same function as an anything message applied to the passing of lists.
In right inlet: A list may be used to specify time in one of the Max time formats.
anything input [list]
In left inlet: The message is passed out the outlet, provided that a certain minimum time has elapsed since the previous output. Otherwise, the message is held until that amount of time has passed (or until it is overwritten by another incoming message).

Attributes

Name Type g/s Description
defer float Turn this on to send output in the low-priority queue.
quantize atom Send output only on the specified time-boundary if appropriate. This is achieved by making internal adjustments to the times used for sending output. The quantization can be specified in the following time formats: bars.beats.units, ticks or note values.
threshold atom Time threshhold under which only one message may pass. Time can be specified in any of the time formats used in Max.

Information for box attributes common to all objects

Output

anything: A message received in the left inlet is sent out the outlet, provided the specified minimum amount of time has elapsed since the previous output. Otherwise, speedlim waits until that amount of time has passed, then sends out the last message it has received since the previous output.

Examples

Used to reduce a heavy flow of numbers or to turn a continuous flow into discrete steps

See Also

Name Description
delay Delay a bang before passing it on.
mousefilter Pass numbers only when the mouse button is up
thresh Combine numbers into a list when received close together
timer Report elapsed time between two events
transport Control a master clock and report time values.
Max MIDI Tutorial 3: MIDI Parsing Max MIDI Tutorial 3: MIDI Parsing