(spelling and inlet hack) |
|||
Line 3: | Line 3: | ||
== Lists and inlets== | == Lists and inlets== | ||
− | As the Max message box one can use place holders for the arguments of | + | As with the Max message box, one can use place holders for the arguments of incoming messages and lists with $-prefixed indices such as $1, $2, $3, etc. |
− | FTM message boxes can have multiple inlets, whereby the indices correspond to the elements of an | + | FTM message boxes can have multiple inlets, whereby the indices correspond to the elements of an incoming list as well as to single values sent to the corresponding inlet. |
− | Lists sent to another than the left most inlet will will be treated with an onset | + | Lists sent to another than the left most inlet will will be treated with an onset corresponding to the inlet. |
For example, a list of two elements sent to the third inlet will correspond to the arguments $3 and $4. | For example, a list of two elements sent to the third inlet will correspond to the arguments $3 and $4. | ||
The number of inlets of the object corresponds to the maximum index used in its expression. For example an FTM message box simply containing $5 will have 5 inlets. In addition, the number of inlets can be set with the ''ftm.mess'' inspector. | The number of inlets of the object corresponds to the maximum index used in its expression. For example an FTM message box simply containing $5 will have 5 inlets. In addition, the number of inlets can be set with the ''ftm.mess'' inspector. | ||
+ | |||
+ | To make the inlets appear, you have to delete the ''ftm.mess'' and do ''Undo'', or copy the object. This is due to limitations in Max that doesn't allow dynamic adding of inlets to an object, only on reinstantiation of an object. | ||
=== List operators === | === List operators === |
Revision as of 17:42, 29 October 2007
FTM provides an extended message box, the ftm.mess. The external is very similar to the Max message box and allows for the use FTM expressions.
Lists and inlets
As with the Max message box, one can use place holders for the arguments of incoming messages and lists with $-prefixed indices such as $1, $2, $3, etc.
FTM message boxes can have multiple inlets, whereby the indices correspond to the elements of an incoming list as well as to single values sent to the corresponding inlet.
Lists sent to another than the left most inlet will will be treated with an onset corresponding to the inlet. For example, a list of two elements sent to the third inlet will correspond to the arguments $3 and $4.
The number of inlets of the object corresponds to the maximum index used in its expression. For example an FTM message box simply containing $5 will have 5 inlets. In addition, the number of inlets can be set with the ftm.mess inspector.
To make the inlets appear, you have to delete the ftm.mess and do Undo, or copy the object. This is due to limitations in Max that doesn't allow dynamic adding of inlets to an object, only on reinstantiation of an object.
List operators
- $*
- $|