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

jit.cycle

Cycle messages through outputs

Description

Messages to the jit.cycle object pass through, unchanged, and are routed to the object's outlets sequentially. Lists remain intact, unlike the Max cycle object. The jit.cycle object takes a single integer argument, which sets the number of outlets.

Arguments

None.

Messages

bang Any bang message sent to the jit.cycle object is sent out the next outlet in sequence.
int Any int sent to the jit.cycle object is sent out the next outlet in sequence.
float Any float sent to the jit.cycle object is sent out the next outlet in sequence.
list Any list sent to the jit.cycle object is sent out the next outlet in sequence.
anything Any message sent to the jit.cycle object is sent out the next outlet in sequence.
reset Causes the index to jump to either the lo or hi value, depending on the current cycle mode setting (mode).

Attributes

Name Type g/s Description
mode int Cycle mode (default = 0 (left to right))
0 = left to right (from lo to hi)
1 = right to left (from hi to lo)
2 = pendulum mode, starting from lo, passing sequentially to hi, and then back to lo
index int The current outlet
hi int Outlet high limit (default = rightmost outlet) Outlets with indices higher than the value of the hi attribute are ignored during routing. Outlet indices begin numbering at 0.
lo int Outlet low limit (default = 0 (leftmost outlet)) Outlets with indices lower than the value of the lo attribute are ignored during routing. Outlet indices begin numbering at 0.

Information for box attributes common to all objects

Examples

See Also

Name Description
cycle Send a stream of data to individual outlets
jit.reverse Reverse output with respect to input
router matrixctrl-compatible Max message router