Count the bang messages received, output the count
Name | Type | Opt | Description |
---|---|---|---|
initial-settings (minimum and maximum) | int | opt | If there is only one argument, it sets an initial maximum count value for counter. If there are two arguments, the first number sets an initial minimum value, and the second number sets an initial maximum value. If there are three arguments, the first number specifies the direction of the count, the second number is the minimum, and the third number is the maximum. If there are no arguments, the direction is up, the minimum is 0, and the maximum is 2,147,483,647 (the largest possible 32-bit signed integer). |
bang | In left inlet: Sends out the current count of the In left-middle inlet: Changes the direction of the count. In middle inlet: Resets the count to its specified minimum value, which will be sent out the next time a is received in the left inlet. In right-middle inlet: Resets the count to its specified minimum value, and sends out that value immediately. In right inlet: Resets the count to its specified maximum value, which is sent out immediately. |
messages received in the left inlet. |
int | input/parameter-settings [int] |
In left inlet: Same effect as In left-middle inlet: Sets the direction of the count. causes counter to count up, causes it to count down, and causes it to count up and down. In middle inlet: The number sets the counter to a new value, to be sent out the next time a is received in the left inlet. If the number is less than the current minimum value, the minimum will be reset to that number. If the number is greater than the current maximum value, the counter will be set to that number, but the maximum value actually remains the same and the minimum is set equal to the maximum. In middle-right inlet: The number sets the counter to a new value and sends it out immediately. If the number is less than the current minimum value, the minimum will be reset to that number. If the number is greater than the current maximum value, the number is sent out, but the maximum value actually remains the same and the minimum is set equal to the maximum. In right inlet: Resets the maximum value sent out by counter. If the number is less than the current minimum, the maximum is equal to the minimum. If the minimum is subsequently changed to a value below the maximum value you input, the counter objects retains the correct maximum value it received through this inlet. Unlike a message, an int in this inlet does not cause the counter object to output anything. |
.
float | input/parameter-settings [float] |
In all other inlets: Converted to | .
dec | In left inlet: Decrements the counter (downward) and sends out the new value, regardless of the direction in which the object has been set to count ordinarily. | |
down | In left inlet: Sets the counter to count in a downward direction. | |
carrybang | In left inlet: Causes counter to send a out the right-middle outlet when the count is going upward and reaches its maximum limit, and causes counter to send a out the left-middle outlet when the count is going downward and reaches its minimum limit. (By default, counter sends out the number in those situations, instead of .) The state of the message is saved along with the patcher it is used in. | |
carryint | In left inlet: Undoes the effect of a previously received | message. Resets the counter to send the numbers and out the left-middle and right-middle outlets (instead of ) to signal when the counter reaches and leaves its minimum and maximum values. The state of the message is saved along with the patcher it is used in.|
goto | input [int] |
In left inlet: Same effect as | .
flags |
mode (0 or 1) [int] mode (0 or 1) [int] |
The counter will output a 1 when it hits the maximum or else output a 0. If the first number is 1, counter will output a when it hits the maximum. If the second number is 0, an integer in inlets 3 and 4 will override the minimum count temporarily. If the second number is 1, an integer in inlets 3 and 4 will change the minimum count permanently. | message followed by two numbers will set the Underflow/Carry Mode and set the Minimum-Mode resetting capability. If the first number is 0,
inc | In left inlet: Increments the counter (upward) and sends out the new value, regardless of the direction in which the object has been set to count ordinarily. | |
jam | input [int] |
In left inlet: The word | , followed by a number, sets the counter to that number and sends the number out immediately. If the number is outside the minimum and maximum count range, this message is ignored.
next | In left inlet: Same as | .|
max | maximum [int] |
In left inlet: The word counter to that number. If the number is less than the current minimum value, the maximum is considered to be equal to the minimum, although the actual maximum value you set is stored inside the counter object. | followed by a number, resets the maximum value of
min | minimum [int] |
In left inlet: The word counter to that number, and causes the counter object to set itself to that number and output immediately. If the number is greater than the current maximum value, the minimum is set equal to the maximum. | followed by a number, resets the minimum value of
set | input [int] |
In left inlet: The word | , followed by a number, sets the counter to that number, which will be sent out the next time a is received in the left inlet.
setmin | minimum [int] |
In left inlet: The word counter object's minimum count without affecting its current count value or causing any output. | , followed by a number, sets the
state | The message counter object to report its current state to the Max window. | will cause the|
up | In left inlet: Sets the counter to count in an upward direction. | |
updown | In left inlet: Sets the counter object's direction so that it counts upward until it reaches the specified maximum, then counts down until it reaches the specified minimum, then up, then down, and so on. |
Name | Type | g/s | Description |
---|---|---|---|
carryflag | int | Sets the type of data output from the third outlet (numbers or bangs). | |
compatmode | int | Provides compatibility when importing patches created with versions 3.x and earlier of Max. When "Ancient" is selected, sending an int to inlets 3 and 4 will change the min count instead of just resetting it temporarily (which causes the fourth inlet to behave exactly as thought the counter object). | message were sent to the
Name | Description |
---|---|
tempo | Output numbers at a metronomic tempo |
Max Basic Tutorial 11: Procedural Drawing | Max Basic Tutorial 11: Procedural Drawing |