polybuffer~
Description
polybuffer~ lets you operate with a group of buffer~ objects. Each buffer~ will be named after polybuffer~ first argument and an index (aka for a object, each buffer~ will be named toto.N where N is the index).
Arguments
name [symbol]
Sets the name of the polybuffer~ and defines the names of the buffer~. For instance, if the polybuffer~ object's name is toto , the buffer~ will be named toto.1 , toto.2 , toto.3 .... polybuffer~ objects with the same name share the same buffer~.
Attributes
embed [int]
Save the buffer references in the patcher, on save. Note: empty buffers will be stored as empty buffer: their size and number of channels will be saved, but not the contents.
quiet [int]
Suppress the warning when loading multiple patches with polybuffer~ with the same name.
Common Box Attributes
Messages
(drag)
Drag a sound file and a buffer~ will be added to the list. Drag a folder and the sound files contained in the folder will be loaded in buffer~ objects.
append
Arguments
filename
[list]
Display a dialog box to choose a sound file to add to polybuffer~ or load the sound file specified in argument.
appendempty
Arguments
length ()
[float]
channels [int]
channels [int]
Adds an empty buffer~ of the specified lenght and channels.
clear
Delete every buffer~.
(mouse)
Double-click on the polybuffer~ object in a locked patcher to open a window where you can see information about the buffers.
dump
Outputs list with the following information: index, buffer name, path of the sound file, length, channel and sampling rate.
getbufferlist
followed by the name of thegetcount
Outputs the message buffer~ objects contained in the polybuffer~ object.
, followed by the number of getshortname
Outputs the buffer~ name followed by the sound files name without the extension. Outputs when the iteration is finished.
getsize
Outputs the memory size used by polybuffer~ in Bytes.
open
Open polybuffer~ object's window see information about the buffers.
readfolder
Arguments
name
[list]
Loads multple sound files from the specified folder. If no argument is provided a dialog box will show up.
send
Arguments
index
[int]
anything [list]
anything [list]
Sends messages to the buffer~ objects. The index corresponds to the buffer~ index, and an index of 0 send the message to every buffer~. For instance, sends the message clear to every buffer~ contained in this polybuffer~.
wclose
Close the window editor
writetofolder
Arguments
name
[list]
Writes every buffer~ in a folder. If no argument is provided a dialog box will show up.
See Also
Name | Description |
---|---|
buffer~ |