A newer version of Max is available. Click here to access the latest version of the documentation

speedlim Reference

Limit the speed of message throughput

speedlim

Description

Limit the throughput speed of incoming messages to a fixed time limit. The time can be specified in milliseconds or using a tempo-relative interval.

Examples

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

Discussion

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

delta-time [int, float, symbol]

Optional

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.

Attributes

defer [float]

Turn this on to send output in the low-priority queue.

quantize [10 atoms]

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 [10 atoms]

Time threshold under which only one message may pass. Time can be specified in any of the time formats used in Max.

Common Box Attributes

Messages

bang

Performs the same function as an anything message applied to the passing of bang messages.

int

Arguments

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

Arguments

input [float]
Performs the same function as an anything message applied to the passing of floats..

list

Arguments

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

Arguments

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).

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.

See Also

Name Description
delay
mousefilter
thresh
timer
transport
Max MIDI Tutorial 3: MIDI Parsing Max MIDI Tutorial 3: MIDI Parsing