funnel Reference

Tag data with its inlet number

funnel

Description

Identifies the inlet of incoming data. It can be used to store values into a table or coll based on their source, or used to set a destination with an object such as spray.

Examples

Use funnel to tag incoming data, or to store data into a coll object

Arguments

inlets [int]

Optional

The first argument sets the number of inlets in the funnel. If there is no argument there will be two inlets.

offset [int]

Optional

The second argument specifies an offset for the first inlet number. If no second argument is present, the inlets are numbered beginning with 0.

Attributes

Common Box Attributes

Messages

bang

In any inlet: The number of the inlet and the stored (most recently received) number in that inlet are sent out as a two-item list.

int

Arguments

input [int]
In any inlet: The number of the inlet and the received number are sent out as a list.

float

Arguments

input [float]
In any inlet: The number of the inlet and the received number are sent out as a list.

list

Arguments

inputs [list]
In any inlet: The number of the inlet is prepended to the list, and the new list is sent out. In a list floats are not converted to ints. The list may contain ints, floats, and symbols (provided that the first element of the list is not a symbol).

anything

Arguments

inputs [list]
Functions the same as list.

offset

Arguments

offset [int]
The word offset followed by a number will offset the numbering of inlets by the number given.

set

Arguments

inputs [list]
In any inlet: The word set followed by a list of numbers which correspond with the number of inlets, will set the input list of numbers without sending them through the outputs.

Output

list

When a number or list is received in any inlet, funnel outputs a list consisting of the inlet number followed the input. funnel can be useful in conjunction with other objects such as coll, funbuff and table.

See Also

Name Description
listfunnel
spray