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

qlim Reference

Queue-based message limiter

qlim

Description

Slows down throughput of messages. Limiting is based on a minimum amount of time between passed message.

Examples

Discussion

The qlim object is similar to a combination of the speedlim and the Jitter jit.qball object. In Jitter, most execution take places in the low priority queue to prevent drawing to the screen at interrupt. The speedlim object unfortunately places messages back in the scheduler for execution, and thus may result in a crash when used to temporally downsample streams of Jitter matrices if Overdrive is turned on. The qlim object is an interrupt safe replacement for this and other tasks.

Arguments

minimum [int]

Unitsms

The minimum amount of time between successive 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]

Sets the time threshold. The threshold can be specified in the following time formats: bars.beats.units, ticks or note values.

Common Box Attributes

Messages

bang

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

int

Arguments

number [int]
In left inlet: Equivalent to anything.
In right inlet: The number is stored as the minimum amount of time, in milliseconds, between successive outputs.

float

Arguments

number [float]
In left inlet: Equivalent to anything.

list

Arguments

list items [list]
In left inlet: Equivalent to anything.

anything

Arguments

anything [list]
In left inlet: Any number, bang, or 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).

See Also

Name Description
speedlim