funbuff
Description
Stores, manages, and recalls pairs of numbers.
Examples

Arguments
filename [symbol]
The argument specifies the name of a file to be read into funbuff when the patch is loaded. Changes to the contents of one funbuff will not affect the contents of another funbuff object with the same name.
A file for funbuff can also be created using a text editor window, beginning the text with the word , followed by a list of space-separated numbers which specify alternating x and y values. A funbuff that has been saved as a file can be viewed and edited as text by choosing Open as Text... from the File menu. Numbers in the form of text can be pasted in from other sources such as the editing window of a capture object, or even from another program such as a word processor.
Attributes
Common Box Attributes
Messages
bang
int
Arguments
If there is no stored x value which matches the number received, funbuff uses the closest x value which is less than the number received, and sends out the corresponding y value.
(inlet1)
Arguments
float
Arguments
clear
copy
message) into the globalcut
message) into the globaldelete
Arguments
y-value [int]
dump
embed
Arguments
find
Arguments
goto
Arguments
interp
Arguments
interptab
Arguments
tablename [symbol]
max
min
next
paste
will copy the contents of the globalread
Arguments
select
Arguments
set
Arguments
undo
Output
bang
Out right outlet: When the pointer reaches the end of a funbuff, no numbers are sent out in response to a message, but a is sent out to notify that the end has been reached.
int
Out left outlet: When an x value is received in the left inlet, the corresponding y value is sent out. (Or, if there is no such x value yet stored in funbuff, the y value corresponding to the next lesser x value is sent out.) When the word is received in the left inlet, funbuff sends out the y value that corresponds to the x value pointed to by its pointer (or, if there is no such x value, the y value of the next greater x value).
Out middle outlet: When the word is received in its left inlet, funbuff sends out the difference between the x value pointed to by its pointer, and the x value previously pointed to, then resets the pointer to the next x value.
See Also
Name | Description |
---|---|
bline | |
coll | |
itable | |
line | |
table |