uzi Reference

Send many bang messages

uzi

Description

Outputs a specified number of bang messages quickly. uzi is designed for rapid-fire output of a large number of bang messages.

Examples

Count as fast as possible using uzi... Count at a specific rate, not using uzi... Use uzi to perform many calculations quickly

Arguments

initial [int]

Optional

Sets an initial number of bang messages to be sent out in response to a bang in the left inlet. If no argument is present, uzi is initially set to send out one bang.

base [int]

Optional

An optional second argument sets the base value for the right outlet count. The base value defaults to 1 when no second argument is given.

Attributes

Common Box Attributes

Messages

bang

In left inlet: Begins sending out bang messages as fast as possible, one after another. The number of bang messages to send is determined by the last number received in either inlet.

int

Arguments

input [int]
In left inlet: Sets the number of bang messages to send, then begins sending them out as fast as possible, one after another.

  (inlet1)

Arguments

bangs-without-output [int]
In right inlet: Sets the number of bang messages to send, without causing output.

break

Same as pause.

continue

Same as resume.

offset

Arguments

start [int]
The word offset followed by a number of bangs will set the object to output a count of bangs which is offset by the given number (the number is subtracted from the previously assigned number of bangs to equal the new total number of bangs).

pause

In left inlet: Causes uzi to stop in the midst of sending its output. (Since uzi sends its output as fast as possible, this message must be triggered in some way by the output of uzi itself.) uzi keeps track of how many bang messages it has sent, and if it receives the pause message before sending out all its bang messages, it can then be caused to send out the rest of its bang messages with a resume or continue message.

resume

In left inlet: If uzi has been stopped by a pause message in the midst of sending its output, resume causes it to send out the rest of its output.

Output

bang

Out left outlet: When uzi receives a bang or int in its left inlet, a certain number of bang messages are sent out as fast as possible, one after another. The number of bang messages is determined by the most recent number received in either inlet.

Out middle outlet: After the last bang is sent out its left outlet, uzi sends one bang out its middle outlet. This can be used as a signal that all the bang messages have been sent, much like the "carry" outlet on the counter object.

int

Out right outlet: The number of each bang is sent out. Numbering begins from 1 (or from the base value specified by the optional second argument) each time an int or bang is received in the left inlet. If uzi is being restarted with a resume or continue message, numbering begins wherever it left off.

See Also

Name Description
bline
counter
line
metro
Max Basic Tutorial 17: Data Structures And Probability Max Basic Tutorial 17: Data Structures And Probability