zl.stream Reference

Make a list of a certain size

zl.stream

Description

zl.stream accepts a number in the right inlet which specifies the length of the output list. Following the receipt of this number, the object will collect this number of items input through the left inlet. After the list-length is complete, and with each subsequent input, the list will be output the left outlet. A 1 or a 0 will be output from the right outlet depending on whether the list-length has been reached or not. A 1 signifies that the list-length has been reached and that the object is now collecting the stream. Use the zlclear message to reset the list.

Arguments

initial-length [int]

Defines the initial list length. If a negative number is used, the output will be reversed.

Attributes

fuzzy [atom] (default: 0.)

Fuzzy floating-point comparison epsilon

zlmaxsize [atom_long]

Maximum List Length

Common Box Attributes

Messages

bang

Repeat previous output

int

In the right inlet, an integer will set the output list length. If a negative number is used, the output will be reversed.

float

TEXT_HERE

list

Adds items to the currently held list

anything

TEXT_HERE

mode

The word 'mode' followed by one of the following words will set the mode of the object:
change, compare, delace, ecils, group, indexmap, iter, join, lace, len, lookup, median, mth, nth, queue, reg, rev, rot, scramble, sect, slice, sort, stack, stream, sub, sum, swap, thin, union, or unique.

See the reference for the corresponding mode for more information.

zlclear

Clears the currently held list.

Output

int

Out right outlet:
1 or a 0 will be output depending on whether the list-length has been reached or not. A 1 signifies that the list-length has been reached and that the object is now collecting the stream.

list

Out left outlet:
The last number of list items based on the number specified by input to the right inlet (or object argument).

See Also

Name Description
zl
zl.change
zl.compare
zl.delace
zl.ecils
zl.filter
zl.group
zl.indexmap
zl.iter
zl.join
zl.lace
zl.len
zl.lookup
zl.median
zl.mth
zl.nth
zl.queue
zl.reg
zl.rev
zl.rot
zl.scramble
zl.sect
zl.slice
zl.sort
zl.stack
zl.sub
zl.sum
zl.swap
zl.thin
zl.union
zl.unique