mubu for max reference

Upload: tomas

Post on 03-Jun-2018

237 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/11/2019 MuBu for Max Reference

    1/33

    MuBu for MaxMax Reference Pages

    11/2012

  • 8/11/2019 MuBu for Max Reference

    2/33

    mubumubuMuBu container

    DescriptionDescription

    Multi-buffer container for sound description and motion capture data.The MuBu multi-buffer can contain multiple temporally aligned tracks with an individual time representation

    (periodically sampled or time-tagged data). Essentially, a track is a contiguous array of track elements eachincluding a 2-dimensional matrix of numeric values (representing scalars, vectors or matrices using 32-bit floating-

    point values), and an item of extra data . Currently, labelis the only supported type of extra data, allowing to

    associate a symbol to each track element. As an option, the matrix of each track element can have a variablenumber of rows.

    The following options define the configuration of a track when it is created:

    - time representation (timetagged)

    - extra data type (extradata)

    In order to keep the implementation of the MuBu track simple, the a track is preallocated to a given maximum size(maxSize). The maxium size and the configuration options of a track can not be changed. Nevertheless, the

    modifytrackmessage as well as messages sent to a given track allow for replacing a track with a track of another

    configuration copying the original track's content.

    Many MuBu externals such as the imubueditor and the synthesis externals (such as mubu.concat~), can interpret

    the data stored in the different tracks of a container as being temporally aligned to a sound stored in a buffer~or

    polybuffer~.

    By default a container has a single buffer . A container with multiple buffers repeats the same structure of tracks

    multiple times. Each buffer of a MuBu conatiner may be associated (by its index) to a buffer of a polybuffer~.

    While the content, the size, and the maximum size as well as other parameters (e.g. the sample rate) can bedifferent for the same track in different buffers, corresponding tracks of different buffers have to be of the sameconfiguration (time-tagged or not, extra data type). Consequently, when adding a track to a container with multiplebuffers, an empty track is also added to the other buffers of the given container. When a track in one buffer isreplaced by a new track of a different configuration (time-tagged/sampled, or extra data type), the correspondingtracks in the other buffers are modified to fit the configuration of the new track.

    Most of the messages sent to a MuBu container or (using the trackmessage) to a particular track of the container,

    concern only the currentbuffer of the container. The current buffer and the number of buffers can be changed by

    attributes or messages (bufferindexand numbuffers).

    Each track (of each buffer) has a track info table storing associated (meta) data as name/value pairs.

    ArgumentsArguments

    Name Type Opt Description

    MuBu name symbol opt Name of MuBu container

    MessagesMessages

    refer MuBu container

    name [symbol]

    Refers to the MuBu container of the given name.If a mubuobject is the only reference to its current container, the

    current container is saved as garbagebefore the new reference is set.MuBu containers that have been saved as garbage can be restored via arefer message. A warning message is posted into the Max window each

    time a container is collected as or restored from garbage.namebuffers Set buffer names from a list.

    nametracks Set tracks from a list.

    getname Outputs the name of the MuBu container (prefixed by 'name').

    http://file///Applications/Max5/patches/docs/refpages/mubu-ref/.xmlhttp://file///Applications/Max5/patches/docs/refpages/mubu-ref/.xmlhttp://file///Applications/Max5/patches/docs/refpages/mubu-ref/.xmlhttp://applications/Max5/patches/docs/refpages/msp-ref/buffer~.maxref.xmlhttp://applications/Max5/patches/docs/refpages/mubu-ref/mubu.concat~.maxref.xmlhttp://applications/Max5/patches/docs/refpages/mubu-ref/imubu.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    3/33

    getbuffers Get buffer names/indices as list (prefixed by 'buffers').

    gettracks Get track names/indices as a list (prefixed by 'tracks').

    getnumbuffers Outputs the current number of buffers (prefixed by 'numbuffers').

    getnumtracks Outputs the current number of tracks (prefixed by 'numtracks').

    hasbuffer buffer index or

    name [atom]

    Outputs whether the given buffer exists (prefixed by 'hasbuffer').

    hastrack track index or

    name [atom]

    Outputs whether the given track exists (prefixed by 'hastrack').

    getbufferindex Outputs current buffer index (prefixed by 'bufferindex').

    addbuffer buffer name

    (optional)

    [symbol]

    Creates a new buffer.

    insertbuffer Inserts buffer at given index.

    movebuffer Move buffer at given index.

    copybuffer Copies the given buffer.

    removebuffer Removes the given buffer.

    addtrack track name

    (optional)

    [symbol]

    max size [int]

    matrix cols [int]

    matrix rows [int]

    attributes [list]

    Adds an empty track to the MuBu container or replaces an existingnamed track by an empty track.In addition to the arguments, the message allows for using an attributesyntax to determine the configuration options and additional parametersof the created track.

    The following attributes are implemented:

    @name [symbol] track name (def: unnamed)

    @maxsize [int] maximum size (def: 256)

    @matrixcols [int] number of matrix columns (def: 1)

    @matrixrows [int] number of matrix rows (def: 1)@matrixcolnames [list] list of matrix column names

    @matrixrowsvar [atom: 0 | 'no' | 1 | 'yes'] number of matrix rows

    is variable or not (def: 'no')

    @timetagged [atom: 0 | 'no' | 1 | 'yes'] track is time-tagged or not

    (def: 'no')

    @samplerate [float] sample rate and sample period (def: 1)

    @sampleperiod [float] sample period and sample rate (def: 1000)

    @sampleoffset [float] sample offset time (def: 0)

    @extradata [symbol: 'none' | 'label'] track extra data type (def:

    'none')@info [list] list of track info keys and values

    Note that when a track in one buffer is replaced by a new track of adifferent configuration (time-tagged/sampled, matrix column names, orextra data type), the corresponding tracks in the other buffers aremodified to fit the configuration of the new track.

    inserttrack track index [int]

    track name

    (optional)

    [symbol]max size [int]

    matrix cols [int]

    matrix rows [int]

    Inserts an empty track to the MuBu container or moves an existingnamed to the given track index.The track attributes are identical to those of the addtrackmessage.

  • 8/11/2019 MuBu for Max Reference

    4/33

    attributes [list]movetrack track index or

    name [atom]

    target track

    index [int]

    Moves the given track.

    removetrack track index or

    name [atom]

    Removes the given track.

    replacetrack track index or

    name [atom]max size [int]

    matrix cols [int]

    matrix rows [int]

    attributes [list]

    Replaces the given track with an empty track.

    The track attributes are identical to those of the addtrackmessage.

    copytrack track index or

    name [atom]

    new track name

    [symbol]

    attributes [list]

    Creates a new track by copying the given existing track optionallymodifying the track attributes. The track attributes are identical to thoseof the addtrackmessage.

    modifytrack track index or

    name [atom]

    max size [int]

    matrix cols [int]

    matrix rows [int]

    attributes [list]

    Replaces the given track by a track with the given attributes copying thecontent of the original track.The track attributes are identical to those of the addtrackmessage.

    croptrack track index or

    name [atom]

    maximum sizefactor [float]

    Crops a given tracks maximum size regarding the current size.

    readall file path

    [symbol]

    Replaces the current content of the container by data read from a file. Ifno file path is given, a file open dialog allows for chosing a file in the filesystem.

    Similar to addtrack, the read message allows for the definition of

    attributes (depending on the file format).

    If the @nameattribute is specified in the message, a single track is

    created with the given name. Multiple tracks are created with the given

    name as prefix, followed by additional suffixes depending on the fileformat and content.The MuBu container supports the following import file formats:

    - MuBu files (using custom SDIF types and a .mubu suffix)- Multiple sound file formats- SDIF, sound description interchange format- MIDI standard files- MusicXML

    readappend file path

    [symbol]

    Appends one or more buffers to the container with data read from a file.If no file path is given, a file open dialog allows for chosing a file in thefile system.

    Depending on the file format, track attributes can be defined.read file path

    [symbol]

    Inserts data from a file into the current buffer.One or multiple tracks may be added to the container or replace existingtracks. If no file path is given, a file open dialog allows for chosing a filein the file system.

  • 8/11/2019 MuBu for Max Reference

    5/33

    Depending on the file format, track attributes can be defined.readtrack track index or

    name [atom]

    file path

    [symbol]

    Replaces the given track by data read from a file. If no file path is given, afile open dialog allows for chosing a file in the file system.Depending on the file format, track attributes can be defined.

    readtrackappend track index or

    name [atom]

    file path

    [symbol]

    Appends data read from a file to the given track. One or multiple tracksmay be added to the container or replace existing tracks. If no file path isgiven, a file open dialog allows for chosing a file in the file system.Depending on the file format, track attributes can be defined.

    writeall file path

    [symbol]

    Saves the content of the entire container (all buffer and tracks) into a file.The files, suffixed with .mubu , are encoded in an SDIF compatible fileformat using custom SDIF types for each track.

    write file path

    [symbol]

    attributes [list]

    Exports the data of one or multiple tracks of the currrent buffer into afile. Currently only writing of SDIF files is supported.

    SDIF Files

    The Mubu container supports the import and export of SDIF filescontaining name value tables, labels ('1LAB' signature) and numeric

    matrix data (32-bit floating-point format only). Most SDIF files importedby the container can be exported as identical files.

    A track of the current buffer is only exported when its track info definesat least a value forSDIF.FrameSigature . Additionally the valuesSDIF.StreamId andSDIF.MatrixSigature can be defined to create morecomplex SDIF files. When the track info valueSDIF.FrameSigature is setto 1NVT only the track info is exported, otherwise the track info isignored.

    writetrack track index or

    name [atom]

    file path

    [symbol]

    Saves the content of a given track into a file.

    clearall Removes all buffers and tracks from the container.

    clear Removes all tracks from the container (leaving empty buffers).

    cleartrack

    printall Prints a summary of the container into the Max window.

    print buffer index or

    name [atom]

    Prints a summary of the current buffer into the Max window.

    printtrack track index or

    name [atom]

    Prints a summary of the given track (in the current container) into theMax window.

    buffer buffer index or

    name [int]

    message

    [symbol]

    arguments [list]

    Sets the current buffer and optionally sends a message.If 0 is given instead of a valid buffer id, the current buffer remainsunchanged and the message is send to all buffers of the container.

    list Same as message bufferwith a buffer index as first argument.

    track track index or

    name [atom]

    message

    [symbol]

    arguments [list]

    Calls a method of the given track.If 0 is given instead of a valid track id, the message is applied to all tracksof the container. All track messages are also messages of the mubu.track

    object.

    Valid track messages are:

    maxsize[int: size] sets maximum track size *

    http://applications/Max5/patches/docs/refpages/mubu-ref/mubu.track.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    6/33

    maxduration[float: duration] sets maximum track size in ms (using

    current samplerate) *

    size[int: size] sets current track size

    duration[float: duration] sets track current size in ms (using current

    samplerate)

    matrixdims[int: cols] [int: rows] set number of matrix columns *

    matrixcols[int: cols] set number of matrix columns *

    matrixrows[int: rows] set number of matrix rows *

    matrixrows[int: index] [int: rows] set number of matrix rows at thegiven index (requires matrixvarrowsenabled)

    matrixcolnames[list: names] sets matrix column names

    matrixvarrows[int: switch] enables/disables individual variable

    matrix rows for each track element *

    extradata['none' | 'label'] sets extra data type *

    timetagged[int: switch] sets whether track elements have time-tags

    samplerate[float: rate] sets sample rate (estimated worst case

    average sample rate for time-tagged tracks)

    sampleperiod[float: period] sets sample period (estimated worst

    case average sample period for time-tagged tracks)sampleoffset [float: offset] sets sample offset (0 for time-tagged

    tracks)

    silent[int: switch] enables or disables updates to track listeners

    getmaxsize outputs maximum track size

    getmaxduration outputs maximum track size in ms (using current

    samplerate)

    getsize outputs track size

    getduration outputs track size in ms (using current samplerate)

    getmatrixcols outputs number of matrix columns

    getmatrixrows outputs number of matrix rows

    getmatrixcolnames outputs matrix column names

    getmatrixvarrows outputs whether track allows track elements for

    having a variable number of matrix rows

    getextradata outputs track extra data type

    gettimetagged outputs whether track has time-tagged data

    getsamplerate outputs sample rate

    getsampleperiod outputs sample period

    getsampleoffset outputs sample offset

    getsilent outputs whether track updates of track listeners are enabledset[int: index] [list: values] sets track element(s) at given index

    insert[int: index] [list: values] inserts track element(s) at given index

    append[list: values] appends element(s) to track

    remove[int: index] [int: num (opt)] removes element(s) from track

    insertpoints[list: time and values] inserts time-tagged element(s)

    into track

    appendpoints[list: time interval and values] appends time-tagged

    element(s) to track

    removepoints[float: time] [float: end time (opt)] removes time-

    tagged element(s) from trackclear clears track (removing all elements)

    getinfo[sym: key (opt)] outputs track info (all or for a given key)

    info[list: key and value pairs] sets track info from a list of key and

  • 8/11/2019 MuBu for Max Reference

    7/33

    value pairs

    write[sym: file path] saves track data to a file read[sym: file path]

    reads track data from a fileThe messages marked with * will actually replace the existing track witha new track copying the data.

    AttributesAttributes

    Name Type g/s Description

    numbuffers int Sets the number of buffers of the container.If new buffers are created, the additional tracks are created with thesame maximum size (maxSize) as the tracks of the last buffer.

    bufferindex int Sets the current buffer.

    trackindex int Sets the current track index.

    embed int Enables/disables the conservation of the container data in copy/pasteand when saving the patcher.Attention: This option should only be used for containers with arelatively small amout of data. Larger amounts of data should be saved toa file (see write).

    Information for box attributes common to all objectsInformation for box attributes common to all objects

    ExamplesExamples

    See AlsoSee Also

    Name Description

    imubu MuBu container with a graphical user interface

    mubu.track Access MuBu track

    http://applications/Max5/patches/docs/refpages/mubu-ref/mubu.track.maxref.xmlhttp://applications/Max5/patches/docs/refpages/mubu-ref/imubu.maxref.xmlhttp://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    8/33

    imubuimubuMuBu container with a graphical user interface

    DescriptionDescription

    MuBu container with a graphical user interface.The object integrates a set of editors and viewers to visualize and graphically manipulate the data stored in a MuBu

    container. Apart from the graphical interface all functionalities of theimubu

    object are identical with themubu

    object.

    The object displays each track of the current buffer of a MuBu container in a separate view.providing a set of interfaces fitting different kinds of data. Most tracks can be viewed and editted with multiple interfacesproviding different points of view on the same data.

    An additional waveor multiwaveview is added when the MuBu container is associated to a buffer~or polybuffer~of the

    same name.

    ________________________________________________________________________________________Editor and Viewer Interfaces

    The following view interfaces are available for different kinds of tracks:

    - wave equally sampled scalars (or single element of matrices)

    - multiwave equally sampled vectors (matrices are unrolled row by row)

    - bpf time-tagged scalars (or single element of matrices)

    - multibpf time-tagged vectors (matrices are unrolled row by row)

    - traces time-tagged vectors defining a vertical value , color , and thickness

    - sonogram equally sampled or time-tagged vectors (matrices are unrolled row by row)

    - markers time-tagged matrix data and/or labels

    - score time-tagged vectors definingpitch and duration

    - matrix any data (time-tags and labels are displayed in extra columns)

    Wave and Multiwave Editor (wavwavand mwavmwav)

    The waveand multiwaveeditors display tracks with regulary sampled data (i.e. without time-tags) as waveforms. While

    wavedisplays mono-dimensional data (scalars), multiwavecan display multi-dimensional data (vectors and matrices) as

    multiple superposed or juxtaposed waveforms. In the case that a track contains matrices with multiple columns and rows,one the editor displays one waveform for each matrix element.

    Tracks that allow the track elements (matrixvarrowsenabled) for having a variable number of rows can not be displayed

    with these editors.

    Mouse interaction (with edit tool)

    - command-click-drag draws wave (in multiwavealso highlights corresponding wave)

    - click-drag defines selection- shift-click-drag extends selection

    Arrow keys (with edit tool)- left/right extends selection- control-left/right reduce selection

    - alt-left/right moves selection- command-up/down increments/decrements values in selected range

    - up/down switches highlighting to next wave (inmultiwave)

    Bpf and Multibpf Editor (bpfbpfand mbpfmbpf)

    http://file///Applications/Max5/patches/docs/refpages/mubu-ref/.xmlhttp://applications/Max5/patches/docs/refpages/msp-ref/buffer~.maxref.xmlhttp://applications/Max5/patches/docs/refpages/mubu-ref/mubu.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    9/33

    The bpfand multibpfeditors display tracks with time-tagged data as break-point functions. While bpfdisplays mono-

    dimensional data (scalars), multibpfcan display multi-dimensional data (vectors and matrices) as multiple superposed or

    juxtaposed break-point functions. In the case that a track contains matrices with multiple columns and rows, one the editordisplays one break-point function for each matrix element.

    Tracks that allow the track elements (matrixvarrowsenabled) for having a variable number of rows can not be displayed

    with these editors.

    Mouse interaction (with edit tool)- command-click on background adds point

    - click-drag on background selects points with rubber band- click on point selects point (in multibpfalso highlights corresponding bpf)

    - shift-click on point extends selection of multiple points- click-drag on selected points moves selected points- backspace or cancel deletes selected points

    The position of points is clipped to the position of the previous and next unselected points. The vertical value of an editedpoint is clipped to the range (bounds) of the view.

    Arrow keys (with edit tool)- left/right switches selection to next point- shift-left/right extends selection of multiple points- command-left/right/up/down moves selected points

    - up/down switches highlighting to next bpf (in multibpf)

    Traces Editor (tr ctrc)

    Mouse interaction (with edit tool)- click-drag on background selects segment with rubber band- shift-click on segment extends selection of multiple segments- click-drag on segment changes value or moves segment horizontally (time-tags tracks only)- command-click on background adds traces (time-tags tracks only)- command-alt-click-drag on segment changes thickness- command-alt-shift-click-drag on segment changes color

    Sonogram Viewer (sonosono)

    (no user interaction for editting)

    Markers Editor (mrkmrk)

    Mouse interaction (with edit tool)- command-click adds marker- click-drag on background selects markers with rubber band- click on marker selects marker- shift-click on marker extends selection of multiple markers- click-drag on selected markers moves selected markers- backspace or cancel deletes selected markers- command-alt-click-drag on marker changes marker duration (if defined)- command-alt-shift-click-drag on marker changes marker offset (if defined)

    Arrow keys (with edit tool)- left/right switches selection to next marker- shift-left/right extends selection of multiple markers

    For editting the value and the label of a selected marker:1. press spacebar to edit label,2. press spacebar again to edit cue,3. press enter to exit

    Score Editor (scosco)

    Mouse interaction (with edit tool)- command-click on background adds note- click-drag on background selects notes with rubber band- click on note selects note- shift-click on note extends selection of multiple notes- click-drag on selected notes moves selected notes vertically (pitch) or horizontally (time)

  • 8/11/2019 MuBu for Max Reference

    10/33

    - command-alt-click-drag on note changes duration- backspace or cancel deletes selected notes

    Arrow keys (with edit tool)- left/right switches selection to next note- shift-left/right extends selection of multiple notes- command-left/right moves selected notes horizontally (time)- command-up/down moves selected notes vertically (pitch)- alt-command-left/right increments/decrements duration

    Matrix Editor (mxmx)

    Mouse interaction (with edit tool)- doubleclick on unselected cell enters edit mode- click on selected cell enters edit mode- click off editted cell exits from edit mode

    Arrow keys (with edit tool)- left/right switches selection to previous/next column- up/down switches selection to previous/next row

    The enter key allows for toggling the selected cell between selection and editting.________________________________________________________________________________________Interface Components

    The object provides a set of configurable interface components that can be displayed in addition to the views:

    - Toolbar sets active tool or view interface

    - Tabs organizes, shows/hides layered views

    - BufferChooser sets current buffer

    - DomainScrollbar scrolls and zooms horizontally (time) common to all views

    - DomainRuler displays horizontal grid of (time) positions common to all views

    - RangeRuler displays view dependent vertical grid of values

    - Cursor displays horizontally moving cursor common to all views

    - Region displays horizontal selection common to all views

  • 8/11/2019 MuBu for Max Reference

    11/33

    BufferChooser

    Mouse interaction- click on buffer index sets current buffer

    Domain Scrollbar

    Mouse interaction- click-horizontal drag scrolls- control-click-horizontal drag zooms while keeping start position unchanged- control-click-vertical drag zooms while keeping mouse down position unchanged- with shift accelerated zoom and scroll- control-double click sets zoom to show whole data duration in editor

    Tabs

    Mouse interaction- click on tab brings corresponding view to front- control-click on tab hides/shows corresponding view (foremost view stays visible)- alt-click on tab shows corresponding view and hides all others

    Toolbar

    Mouse interaction- click on tool buttons (on the left) sets active tool- click on interface buttons (on the right) sets interface of the current view

    ________________________________________________________________________________________Tools

    The following tools are available:

    - edit general tool allowing for most of the possible editing interactions

    - draw adds new points/draws data (as edit tool but without command key)

    - scrollzoom allows zoom (command-click-dragvertically or horizzontally) and drag (click and drag horizzontally)

    - cursor changes cursor position to mouse click/mouse move position

    - region sets region selection (as edit tool but without alt key pressed)

    Edit Tool

    The edittool is the default tool allowing for most of the possible editing interactions.

  • 8/11/2019 MuBu for Max Reference

    12/33

    - select, move and delete data- add new points or draw data (with command key pressed)- change of region selection (with alt key pressed)- move cursor (click and drag cursor component)

    For a complete description of possible interactions, please refer to the list of editors above.

    ArgumentsArguments

    None.

    MessagesMessages

    refer MuBu container

    name [symbol]

    Refers to the MuBu container of the given name.If a mubuobject is the only reference to its current container, the current

    container is saved as garbagebefore the new reference is set. MuBu containersthat have been saved as garbage can be restored via a refer message. A warningmessage is posted into the Max window each time a container is collected as orrestored from garbage.

    namebuffers Set buffer names from a list.

    nametracks Set tracks from a list.

    getname Outputs the name of the MuBu container (prefixed by 'name').

    getbuffers Get buffer names/indices as list (prefixed by 'buffers').

    gettracks Get track names/indices as a list (prefixed by 'tracks').getnumbuffers Outputs the current number of buffers (prefixed by 'numbuffers').

    getnumtracks Outputs the current number of tracks (prefixed by 'numtracks').

    hasbuffer buffer index or

    name [atom]

    Outputs whether the given buffer exists (prefixed by 'hasbuffer').

    hastrack track index or

    name [atom]

    Outputs whether the given track exists (prefixed by 'hastrack').

    getbufferindex Outputs current buffer index (prefixed by 'bufferindex').

    addbuffer buffer name

    (optional)

    [symbol]

    Creates a new buffer.

    insertbuffer Inserts buffer at given index.

    movebuffer Move buffer at given index.

    copybuffer Copies the given buffer.

    removebuffer Removes the given buffer.

    addtrack track name

    (optional)

    [symbol]

    max size [int]

    matrix cols [int]

    matrix rows [int]

    attributes [list]

    Adds an empty track to the MuBu container or replaces an existing namedtrack by an empty track.In addition to the arguments, the message allows for using an attribute syntaxto determine the configuration options and additional parameters of thecreated track.

    The following attributes are implemented:

    @name [symbol] track name (def: unnamed)

    @maxsize [int] maximum size (def: 256)

    @matrixcols [int] number of matrix columns (def: 1)

    @matrixrows [int] number of matrix rows (def: 1)

    @matrixcolnames [list] list of matrix column names

    @matrixrowsvar [atom: 0 | 'no' | 1 | 'yes'] number of matrix rows is

    variable or not (def: 'no')

    @timetagged [atom: 0 | 'no' | 1 | 'yes'] track is time-tagged or not (def:

    'no')

    @samplerate [float] sample rate and sample period (def: 1)@sampleperiod [float] sample period and sample rate (def: 1000)

    @sampleoffset [float] sample offset time (def: 0)

    @extradata [symbol: 'none' | 'label'] track extra data type (def: 'none')

    http://applications/Max5/patches/docs/refpages/mubu-ref/mubu.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    13/33

    @info [list] list of track info keys and values

    Note that when a track in one buffer is replaced by a new track of a differentconfiguration (time-tagged/sampled, matrix column names, or extra datatype), the corresponding tracks in the other buffers are modified to fit theconfiguration of the new track.

    inserttrack track index [int]

    track name

    (optional)

    [symbol]

    max size [int]

    matrix cols [int]

    matrix rows [int]

    attributes [list]

    Inserts an empty track to the MuBu container or moves an existing named tothe given track index.The track attributes are identical to those of the addtrackmessage.

    movetrack track index or

    name [atom]

    target track

    index [int]

    Moves the given track.

    removetrack track index or

    name [atom]

    Removes the given track.

    replacetrack track index or

    name [atom]

    max size [int]

    matrix cols [int]

    matrix rows [int]

    attributes [list]

    Replaces the given track with an empty track.The track attributes are identical to those of the addtrackmessage.

    copytrack track index or

    name [atom]

    new track name

    [symbol]

    attributes [list]

    Creates a new track by copying the given existing track optionally modifyingthe track attributes. The track attributes are identical to those of the addtrack

    message.

    modifytrack track index or

    name [atom]

    max size [int]

    matrix cols [int]

    matrix rows [int]

    attributes [list]

    Replaces the given track by a track with the given attributes copying thecontent of the original track.The track attributes are identical to those of the addtrackmessage.

    croptrack track index or

    name [atom]

    maximum sizefactor [float]

    Crops a given tracks maximum size regarding the current size.

    readall file path

    [symbol]

    Replaces the current content of the container by data read from a file. If no filepath is given, a file open dialog allows for chosing a file in the file system.

    Similar to addtrack, the read message allows for the definition of attributes

    (depending on the file format).

    If the @nameattribute is specified in the message, a single track is created

    with the given name. Multiple tracks are created with the given name as prefix,followed by additional suffixes depending on the file format and content.The MuBu container supports the following import file formats:

    - MuBu files (using custom SDIF types and a .mubu suffix)- Multiple sound file formats- SDIF, sound description interchange format- MIDI standard files

  • 8/11/2019 MuBu for Max Reference

    14/33

    - MusicXMLreadappend file path

    [symbol]

    Appends one or more buffers to the container with data read from a file. If nofile path is given, a file open dialog allows for chosing a file in the file system.Depending on the file format, track attributes can be defined.

    read file path

    [symbol]

    Inserts data from a file into the current buffer.One or multiple tracks may be added to the container or replace existing tracks.If no file path is given, a file open dialog allows for chosing a file in the filesystem.Depending on the file format, track attributes can be defined.

    readtrack track index or

    name [atom]file path

    [symbol]

    Replaces the given track by data read from a file. If no file path is given, a file

    open dialog allows for chosing a file in the file system.Depending on the file format, track attributes can be defined.

    readtrackappend track index or

    name [atom]

    file path

    [symbol]

    Appends data read from a file to the given track. One or multiple tracks may beadded to the container or replace existing tracks. If no file path is given, a fileopen dialog allows for chosing a file in the file system.Depending on the file format, track attributes can be defined.

    writeall file path

    [symbol]

    Saves the content of the entire container (all buffer and tracks) into a file. Thefiles, suffixed with .mubu , are encoded in an SDIF compatible file format usingcustom SDIF types for each track.

    write file path

    [symbol]

    attributes [list]

    Exports the data of one or multiple tracks of the currrent buffer into a file.Currently only writing of SDIF files is supported.

    SDIF Files

    The Mubu container supports the import and export of SDIF files containingname value tables, labels ('1LAB' signature) and numeric matrix data (32-bitfloating-point format only). Most SDIF files imported by the container can beexported as identical files.

    A track of the current buffer is only exported when its track info defines at leasta value forSDIF.FrameSigature . Additionally the valuesSDIF.StreamId andSDIF.MatrixSigature can be defined to create more complex SDIF files. Whenthe track info valueSDIF.FrameSigature is set to 1NVT only the track info is

    exported, otherwise the track info is ignored.

    writetrack track index or

    name [atom]

    file path

    [symbol]

    Saves the content of a given track into a file.

    clearall Removes all buffers and tracks from the container.

    clear Removes all tracks from the container (leaving empty buffers).

    cleartrack

    printall Prints a summary of the container into the Max window.

    print buffer index orname [atom]

    Prints a summary of the current buffer into the Max window.

    printtrack track index or

    name [atom]

    Prints a summary of the given track (in the current container) into the Maxwindow.

    buffer buffer index or

    name [int]

    message

    [symbol]

    arguments [list]

    Sets the current buffer and optionally sends a message.If 0 is given instead of a valid buffer id, the current buffer remains unchangedand the message is send to all buffers of the container.

    list Same as message bufferwith a buffer index as first argument.

    track track index or

    name [atom]

    message

    [symbol]

    Calls a method of the given track.If 0 is given instead of a valid track id, the message is applied to all tracks of thecontainer. All track messages are also messages of the mubu.trackobject.

    Valid track messages are:

    http://applications/Max5/patches/docs/refpages/mubu-ref/mubu.track.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    15/33

    arguments [list]maxsize[int: size] sets maximum track size *

    maxduration[float: duration] sets maximum track size in ms (using current

    samplerate) *

    size[int: size] sets current track size

    duration[float: duration] sets track current size in ms (using current

    samplerate)

    matrixdims[int: cols] [int: rows] set number of matrix columns *

    matrixcols[int: cols] set number of matrix columns *

    matrixrows[int: rows] set number of matrix rows *matrixrows[int: index] [int: rows] set number of matrix rows at the given

    index (requires matrixvarrowsenabled)

    matrixcolnames[list: names] sets matrix column names

    matrixvarrows[int: switch] enables/disables individual variable matrix

    rows for each track element *

    extradata['none' | 'label'] sets extra data type *

    timetagged[int: switch] sets whether track elements have time-tags

    samplerate[float: rate] sets sample rate (estimated worst case average

    sample rate for time-tagged tracks)

    sampleperiod[float: period] sets sample period (estimated worst case

    average sample period for time-tagged tracks)

    sampleoffset [float: offset] sets sample offset (0 for time-tagged tracks)

    silent[int: switch] enables or disables updates to track listeners

    getmaxsize outputs maximum track size

    getmaxduration outputs maximum track size in ms (using current

    samplerate)

    getsize outputs track size

    getduration outputs track size in ms (using current samplerate)

    getmatrixcols outputs number of matrix columns

    getmatrixrows outputs number of matrix rows

    getmatrixcolnames outputs matrix column namesgetmatrixvarrows outputs whether track allows track elements for having a

    variable number of matrix rows

    getextradata outputs track extra data type

    gettimetagged outputs whether track has time-tagged data

    getsamplerate outputs sample rate

    getsampleperiod outputs sample period

    getsampleoffset outputs sample offset

    getsilent outputs whether track updates of track listeners are enabled

    set[int: index] [list: values] sets track element(s) at given index

    insert[int: index] [list: values] inserts track element(s) at given index

    append[list: values] appends element(s) to track

    remove[int: index] [int: num (opt)] removes element(s) from track

    insertpoints[list: time and values] inserts time-tagged element(s) into track

    appendpoints[list: time interval and values] appends time-tagged

    element(s) to track

    removepoints[float: time] [float: end time (opt)] removes time-tagged

    element(s) from track

    clear clears track (removing all elements)

    getinfo[sym: key (opt)] outputs track info (all or for a given key)

    info[list: key and value pairs] sets track info from a list of key and value

    pairswrite[sym: file path] saves track data to a file read[sym: file path] reads

    track data from a fileThe messages marked with * will actually replace the existing track with a newtrack copying the data.

  • 8/11/2019 MuBu for Max Reference

    16/33

    getbgcolor Outputs background color.

    getdomain Outputs domainbounds.

    getforemost Outputs index of foremost view.

    getlayout Outputs layout [symbol: 'superposed' | 'juxtaposed'].

    getopacity Outputs opacity value.

    getorientation Outputs orientation [symbol: 'vertical' | 'horizontal'].

    getcursor attribute name

    [symbol]

    Outputs cursorposition or attribute values.

    Valid messages are:- getcursor outputs position of cursor

    - getcursor color outputs color

    - getcursor size outputs size

    - getcursor visible outputs 1 if cursor is visible, 0 otherwise

    getview view index or

    corresponding

    track name

    [atom]

    attribute name[symbol]

    Outputs attribute values of the given view (index or track name).

    Valid messages are:- getview [atom] bgcolor outputs background color for given view (all)

    - getview [atom] fgcolor outputs foreground color for given view (all)

    - getview [atom] shape outputs shape for given view (bpf, mbpf, wav,mwav, sco, trc)

    - getview [atom] bounds outputs vertical bounds for given view (bpf,

    mbpf, wav, mwav, sgrm, trc, sco)

    - getview [atom] min outputs vertical min for given view (bpf, mbpf, wav,

    mwav, sgrm, trc, sco)

    - getview [atom] max outputs vertical max for given view (bpf, mbpf, wav,

    mwav, sgrm, trc, sco)

    - getview [atom] interface outputs interface for given view (all)

    - getview [atom] visible outputs 1 if given view is visible, 0 otherwise (all)

    - getview [atom] thickness outputs thickness for given view (wav, mwav,bpf, mbpf, mrk)

    - getview [atom] foremost outputs internal foremost index for given view

    (mbpfand mwav)

    - getview [atom] opacity outputs internal opacity for given view (mbpfand

    mwav)

    - getview [atom] layout outputs internal layout for given view (mbpfand

    mwav)

    - getview [atom] visibleindexes outputs list of visible indexes for given

    view (mbpfand mwav)

    - getview [atom] drawmean outputs 1 if drawmean attribute is 'on' forgiven view (wavand mwav)

    - getview [atom] showcolnames outputs 1 if column names are drawn for

    given view (mbpfand mwav)

    - getview [atom] colormode outputs color pattern used for given view

    (sgrm, trc, mwav)

    - getview [atom] depth outputs color depth for given view (sgrm, trc)

    - getview [atom] fgcolorgradient outputs 1 if a color gradient is used for

    given view (trc)

    - getview [atom] grid visible outputs 1 if the internal grid is shown for

    given view (mx)- getview [atom] grid color outputs color of the internal grid for given view

    (mx)

    - getview [atom] header visible outputs 1 if the internal header is visible

  • 8/11/2019 MuBu for Max Reference

    17/33

    for given view (mx)

    - getview [atom] header fgcolor outputs foreground color of the internal

    header for given view (mx)

    - getview [atom] header bgcolor outputs background color of the internal

    header for given view (mx)

    - getview [atom] header bordercolor outputs border color of the internal

    header for given view (mx)getinfopanel (deprecated see getrangeruler)

    getrangeruler attribute name[symbol]

    Outputs rangerulerattribute values.

    Valid messages are:- getrangeruler grid outputs 1 if grid is shown in views, 0 otherwise

    - getrangeruler visible outputs 1 if ruler is visible, 0 otherwise

    getruler (alias for getdomainruler)

    getdomainruler attribute name

    [symbol]

    Outputs domainrulerattribute values.

    Valid messages are:- getdomainruler fgcolor outputs foreground color

    - getdomainruler bgcolor outputs background color

    - getdomainruler size outputs size

    - getdomainruler position outputs position

    - getdomainruler grid outputs 1 if grid is shown in views, 0 otherwise

    - getdomainruler visible outputs 1 if ruler is visible, 0 otherwise

    getscrollbar (alias for getdomainscrollbar)

    getdomainscrollbar attribute name

    [symbol]

    Outputs domainscrollbarattribute values.

    Valid messages are:- getdomainscrollbar color outputs color

    - getdomainscrollbar size outputs size

    - getdomainscrollbar visible outputs 1 if scrollbar is visible, 0 otherwise

    gettabs attribute name

    [symbol]

    Outputs tabsattribute values.

    Valid messages are:- gettabs size outputs size

    - gettabs position outputs display position [symbol: 'top' | 'left')

    - gettabs visible outputs 1 if tabs are visible, 0 otherwise

    getregion attribute name

    [symbol]

    Outputs regionselection bounds or attribute values.

    Valid messages are:

    - getregion outputs bounds- getregion color outputs color

    - getregion visible outputs 1 if region is visible, 0 otherwise

    gettoolbar attribute name

    [symbol]

    Outputs toolbarattribute values.

    Valid messages are:- gettoolbar size outputs size

    - gettoolbar position outputs display position [symbol: 'top' | 'bottom' |

    'left' | 'right')- gettoolbar bgcolor outputs background color

    -gettoolbar visible

    outputs 1 if toolbar is visible, 0 otherwise

    infopanel (deprecated see rangeruler)

    rangeruler attribute name

    and arguments

    Messages for rangerulerconfiguration.

  • 8/11/2019 MuBu for Max Reference

    18/33

    [list] Valid messages are:- rangeruler visible [int: 1 | 0] shows/hides the ruler (def: 0)

    - rangeruler size [int] sets the ruler size (def: 35)

    - rangeruler grid [int: 1 | 0] shows/hides the grid in views (def: 0)

    ruler (alias for domainruler)

    domainruler attribute name

    and arguments

    [list]

    Sets domainrulerattributes.

    Valid messages are:- domainruler visible [int: 1 | 0] shows/hides the ruler (def: 0)

    - domainruler size [int] sets size (def: 15)- domainruler position [symbol: 'top' | 'bottom'] sets display position

    (def: 'bottom')- domainruler bgcolor [list: r, g, b] sets background color (def: 'white')

    - domainruler fgcolor [list: r, g, b] sets foreground color (def: 'black')

    - domainruler unit [symbol: 'milliseconds' | 'seconds' | 'minutes'] sets

    time unit (def: 'milliseconds')- domainruler grid [int: 1 | 0] shows/hides the grid in views (def: 0)

    bufferchooser attribute name

    and arguments

    [list]

    Sets bufferchooserattributes.

    Valid messages are:- bufferchooser visible [int: 1 | 0] shows/hides the component (def: 0)

    - bufferchooser size [int] sets size (def: 12)

    - bufferchooser position [symbol: 'top' | 'left' | 'bottom' | 'right'] sets

    display position (def: 'bottom')- bufferchooser bgcolor [list: r, g, b] sets background color (def: 'white')

    - bufferchooser fgcolor [list: r, g, b] sets foreground color (def: 'black')

    split attribute name

    and arguments

    [list]

    Sets splitbar attribute for juxtaposed layout.

    Valid messages are:-split [float list]

    sets relative size of views in juxtaposed layout

    - split visible [int: 1 | 0] shows/hides split bars (def: 1)

    - split size [int] sets size (def: 2)

    - split color [list: r, g, b] sets split bars color (def: 'white')

    foremost Sets the foremost view.

    view attribute name

    and arguments

    [list]

    Sets attributes for given view (by index or by name) if defined.

    Valid messages are:- view [atom] bgcolor [list: r, g, b] sets background color for given view

    (all)

    - view [atom] fgcolor [list: r, g, b] sets foreground color for given view

    (all)

    - view [atom] highlight_color [list: r, g, b] sets highlight color for given

    view (all)

    - view [atom] shape [symbol] sets shape for given view (bpf, mbpf, wav,

    mwav, sco, trc)

    - view [atom] bounds [float, float] sets vertical bounds for given view (bpf,

    mbpf, wav, mwav, sgrm, trc, sco)

    - view [atom] min [float] sets vertical min for given view (bpf, mbpf, wav,

    mwav, sgrm, trc, sco)

    - view [atom] max [float] sets vertical max for given view (bpf, mbpf, wav,

    mwav, sgrm, trc, sco)

    - view [atom] autobounds [int: 1 | 0] forces view bounds to be aligned

    with content (all)

    - view [atom] interface [symbol] sets interface for given view (all)

  • 8/11/2019 MuBu for Max Reference

    19/33

    - view [atom] visible [int: 1 | 0] with 1 sets given view visible, with 0

    invisible (all)

    - view [atom] hidenotforemost [int: 1 | 0] with 1 sets given view visible

    only when foremost (all)

    - view [atom] thickness [int] sets thickness for given view (wav, mwav,

    bpf, mbpf, mrk)

    - view [atom] foremost [int] sets internal foremost index for given view

    (mbpfand mwav)

    - view [atom] opacity [float] sets internal opacity for given view (mbpfandmwav)

    - view [atom] layout [symbol: 'superposed' | 'juxtaposed'] sets internal

    layout for given view (mbpfand mwav)

    - view [atom] visibleindices [int-list] sets names or indexes of columns

    containing graphic parameters for given view (mrk, sct, trc)

    - view [atom] paramcols [symbol/int list] sets list of visible indices for

    given view (mbpfand mwav)

    - view [atom] showmean [int: 1 | 0] sets showmean attribute is 'on/off' for

    given view (wave and mwav)

    -view [atom] showcolnames [int: 1 | 0]

    with 1 column names are drawn

    for given view (mbpfand mwav)

    - view [atom] fontsize [int] Sets font size for given view (mbf, mwav), mrk,

    mx, inf, sum)

    - view [atom] fontstyle [symbol: plain, bold, italic, underlined] Sets font

    style for given view (mbf, mwav), mrk, mx, inf, sum)

    - view [atom] colormode [symbol] sets color pattern used for given view

    (sgrm, trc, mwav)

    - view [atom] colorpattern [symbol-list] sets colors used by patetrn

    colormode for given view (mbpf, mwav)

    -view [atom] depth [float, float]

    sets color depth for given view (sgrm

    ,

    trc)

    - view [atom] fgcolorgradient [int: 1 | 0] with 1 a color gradient is used for

    given view (trc)

    - view [atom] grid visible [int: 1 | 0] sets internal grid visible for given

    view (mx)

    - view [atom] grid color [list: r, g, b] sets color of the internal grid for

    given view (mx)

    - view [atom] header visible [int: 1 | 0] sets internal header visible for

    given view (mx)

    -view [atom] header fontstyle [symbol: plain | bold | italic]

    sets

    internal header fontstyle for given view (mx)

    - view [atom] header fgcolor [list: r, g, b] sets foreground color of the

    internal header for given view (mx)

    - view [atom] header bgcolor [list: r, g, b] sets background color of the

    internal header for given view (mx)

    - view [atom] header bordercolor [list: r, g, b] sets border color of the

    internal header for given view (mx)

    - view [atom] scrollbar visible [int: 1 | 0] sets internal scrollbar visible for

    given view (mx)

    -view [atom] toolbar visible [int: 1 | 0]

    sets internal toolbar visible for

    given view (mx)

    domain attribute name

    and arguments

    Sets (time) domainattributes.

  • 8/11/2019 MuBu for Max Reference

    20/33

    [list] Valid messages are:- domain bounds [float, float] sets bounds to given minimum and

    maximum- domain min [float] sets minimum of bounds

    - domain max [float] sets maximum of bounds

    - domain center [float, float] sets center and range of bounds

    - domain range [float] sets range keeping the center

    - domain reset resets bounds

    cursor attribute name

    and arguments

    [list]

    Sets cursorattributes and position.

    Valid messages are:- cursor [float] moves cursor to given time position in msec

    - cursor visible [int: 1 | 0] shows/hides cursor (def: 0)

    - cursor size [int] sets size (def: 3)

    - cursor color [list: r, g, b] sets color (def: 'red')

    toolbar attribute name

    and arguments

    [list]

    Sets toolbarattributes.

    Valid messages are:- toolbar visible [symbol: 'visible' | 'invisible' | 'retractable']

    shows/hides the toolbar (def: visible)- toolbar size [int] sets size (def: 30)

    - toolbar position [symbol: 'top' | 'left' | 'bottom' | 'right'] sets display

    position (def: 'bottom')- toolbar bgcolor [list: r, g, b, a] sets background color (def: 'white')

    region attribute name

    and arguments

    [list]

    Sets regionselection bounds or attribute values.

    Valid messages are:- region [float, float] sets bounds

    - region color [list: r, g, b] sets regions color (def: color contrasting with

    background color)

    - region visible [int: 1 | 0] shows/hides the selection (def: 1)

    dscroll (alias for domainscrollbar)

    domainscrollbar Sets domainscrollbarattributes.

    Valid messages are:- domainscrollbar visible [int: 1 | 0] shows/hides the scrollbar (def: 0)

    - domainscrollbar size [int] sets size (def: 15)

    - domainscrollbar color [list: r, g, b] sets background color (def: 'white')

    tabs attribute name

    and arguments

    [list]

    Sets tabsattributes.

    Valid messages are:- tabs visible [int: 1 | 0] shows/hides the component (def: 1)

    - tabs size [int] sets size (def: 20)

    - tabs position [symbol: 'top' | 'left'] sets display position (def: 'top')

    tool attribute name

    and arguments

    [list]

    Sets active tool [symbol: 'edit' | 'draw' | 'scrollzoom' | 'region' | 'cursor' | 'lock'](def: 'edit').

    resizewithwindow Enable/disable automatic resize with window.1: display keeps bounds offset when patcher window is resized0: do not resize automatically

    forceredraw Forces redrawing of visible views.

    AttributesAttributes

    Name Type g/s Description

  • 8/11/2019 MuBu for Max Reference

    21/33

  • 8/11/2019 MuBu for Max Reference

    22/33

    view_header_bordercolor float Sets border color of the internal header for given view (mx)

    view_header_fontstyle int Sets header fontstyle of the internal header for given view [symbol: plain,bold, italic] (mx)

    view_grid_visible int Sets internal grid visible for given view (mx)

    view_grid_color float (Sets internal grid color for given view [r, g, b, a] (mx))

    view_scrollbars_visible int Sets internal scrollbars visibility for given view (mx)

    view_toolbar_visible int Sets internal toolbar visibility for given view [symbol: visible | invisible |

    retractable] (mx)view_fontsize int Sets font size for given view (mbf, mwav), mrk, mx, inf, sum)

    view_fontstyle int Sets view font style for given view [symbol: plain, bold, italic, underlined](mbf, mwav), mrk, mx, inf, sum

    view_highlight_color float Sets highlight colot fot given view [r, g, b, a] (sct)

    toolbar_visible int Shows/hides the toolbar [symbol: 'visible' | 'invisible' | 'retractable'] (def:visible)

    toolbar_position int Sets toolbar position [symbol: 'top' | 'left' | 'bottom' | 'right'] (def: 'bottom')

    toolbar_bgcolor float Sets background color [list: r, g, b, a] (def: 'white')

    tabs_visible int Shows/hides tabs [int: 1 | 0] (def: 1)

    tabs_position int Sets tabs position [symbol: 'top' | 'left'] (def: 'top')

    tabs_size int Sets tabs size (def: 20)

    bufferchooser_visible int Shows/hides the bufferchooser [int: 1 | 0] (def: 0)

    bufferchooser_position int Sets display position [symbol: 'top' | 'left' | 'bottom' | 'right'] (def: 'bottom')

    bufferchooser_size int Sets bufferchooser size (def: 12)

    bufferchooser_shape symbol Sets bufferchooser shape (def: buttons)

    bufferchooser_fgcolor float Sets bufferchooser foreground color [list: r, g, b] (def: 'black')

    bufferchooser_bgcolor float Sets bufferchooser background color [list: r, g, b] (def: 'white')

    domainscrollbar_visible int Shows/hides the domain scrollbar [int: 1 | 0] (def: 1)

    domainscrollbar_size int Sets domain scrollbar size (def: 15)

    domainscrollbar_color float Sets domain scrollbar background color [list: r, g, b] (def: 'white')

    domainruler_visible int Shows/hides the ruler [int: 1 | 0] (def: 0)

    domainruler_position int Sets domainruler position [symbol: 'top' | 'bottom'] (def: 'bottom')

    domainruler_size int Sets domainruler size (def: 15)

    domainruler_grid int Shows/hides the domainruler grid in views [int: 1 | 0] (def: 0)

    domainruler_bgcolor float Sets domainruler background color [list: r, g, b] (def: 'white')

    domainruler_fgcolor float Sets domainruler foreground color [list: r, g, b] (def: 'black')

    domainruler_unit int Sets domainruler time unit [symbol: 'milliseconds' | 'seconds' | 'minutes'](def: 'milliseconds')

    rangeruler_visible int (to be documented)

    rangeruler_size int Sets the rangeruler size (def: 35)

    rangeruler_grid int Shows/hides the rangeruler grid in views [int: 1 | 0] (def: 0)

    region_bounds unknown Sets region bounds [float, float]

    split_size int Sets splitbars size (def: 2)

    region_color float Sets regions color [list: r, g, b] (def: color contrasting with background color)

    cursor_position unknown Sets cursor position in msec [float]

    cursor_color float Sets cursor color [list: r, g, b] (def: 'red')

    split_visible int Shows/hides split bars [int: 1 | 0] (def: 1)

    cursor_visible int Hide/Show cursorcursor_size int Sets cursor size (def: 3)

    split_color float Sets split bars color [list: r, g, b] (def: 'white')

  • 8/11/2019 MuBu for Max Reference

    23/33

    Information for box attributes common to all objectsInformation for box attributes common to all objects

    ExamplesExamples

    See AlsoSee Also

    Name Description

    mubu MuBu container

    mubu.track Access MuBu track

    http://applications/Max5/patches/docs/refpages/mubu-ref/mubu.track.maxref.xmlhttp://applications/Max5/patches/docs/refpages/mubu-ref/mubu.maxref.xmlhttp://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    24/33

    mubu.trackmubu.trackAccess MuBu track

    DescriptionDescription

    Reference to a track of a MuBu container allowing for optimized access to the track data. The reference is defined

    by the name of a MuBu container, a track id (index or name), and a buffer index. Ones a mubu.trackobject is

    connected to a track, the access to the data is lock-free. The object is informed of all changes in the container's listsof tracks and buffers and reconnects the reference if necessary.

    ArgumentsArguments

    Name Type Opt Description

    MuBu name symbol opt Name of MuBu container

    Track id atom opt Track index or name

    MessagesMessages

    AttributesAttributesName Type g/s Description

    mubuname symbol MuBu Container Name

    trackid unknown Track Id

    bufferindex int Buffer Index

    matrixrow unknown Matrix Row

    matrixcol unknown Matrix Column

    connected int Connected

    predef int Predefine Track

    Information for box attributes common to all objectsInformation for box attributes common to all objects

    ExamplesExamples

    See AlsoSee Also

    Name Description

    mubu MuBu container

    imubu MuBu container with a graphical user interface

    http://applications/Max5/patches/docs/refpages/mubu-ref/imubu.maxref.xmlhttp://applications/Max5/patches/docs/refpages/mubu-ref/mubu.maxref.xmlhttp://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xmlhttp://applications/Max5/patches/docs/refpages/mubu-ref/imubu.maxref.xmlhttp://applications/Max5/patches/docs/refpages/mubu-ref/mubu.maxref.xmlhttp://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    25/33

    mubu.recordmubu.recordRecord data

    DescriptionDescription

    Record data into a track of a MuBu container.

    ArgumentsArguments

    Name Type Opt Description

    MuBu name symbol opt Name of MuBu container

    Track id atom opt Track index or name

    MessagesMessages

    AttributesAttributes

    Name Type g/s Description

    mubuname symbol MuBu Container Name

    trackid unknown Track Id

    bufferindex int Buffer Index

    record int Enable/Disable Recording

    progressoutput int Progress Output Mode

    defer float Defer Recording

    predef int Predefine Track

    Information for box attributes common to all objectsInformation for box attributes common to all objects

    ExamplesExamples

    See AlsoSee Also

    Name Description

    mubu.record~

    http://file///Applications/Max5/patches/docs/refpages/mubu-ref/.xmlhttp://file///Applications/Max5/patches/docs/refpages/mubu-ref/.xmlhttp://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    26/33

    mubu.record~mubu.record~Record data

    DescriptionDescription

    Record data into a track of a MuBu container.

    ArgumentsArguments

    Name Type Opt Description

    MuBu name symbol opt Name of MuBu container

    Track id atom opt Track index or name

    MessagesMessages

    AttributesAttributes

    Name Type g/s Description

    mubuname symbol MuBu Container Name

    trackid unknown Track Id

    bufferindex int Buffer Index

    record int Enable/Disable Recording

    progressoutput int Progress Output Mode

    defer float Defer Recording

    matrixcols int Matrix Columns

    matrixrows int Matrix Rows

    samplerate float Sample Rate

    sampleperiod float Sample Periodpredef int Predefine Track

    Information for box attributes common to all objectsInformation for box attributes common to all objects

    ExamplesExamples

    See AlsoSee Also

    Name Description

    mubu.record

    http://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xmlhttp://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xmlhttp://file///Applications/Max5/patches/docs/refpages/mubu-ref/.xmlhttp://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    27/33

    mubu.processmubu.processProcess MuBu tracks

    DescriptionDescription

    The external streams the data of a given MuBu track through PiPo modules or patches directly recording the outputdata into a target track. The iteration on the input stream can be scheduled synchronously or asynchronously with

    different priorities. For asynchronous processing an independent thread is created for each MuBu buffer.Processing is automatically triggered when data is recorded to the input track as well as for any other modification.

    ArgumentsArguments

    Name Type Opt Description

    MuBu name symbol opt Name of MuBu container

    Track id atom opt Track index or name

    PiPo definition symbol opt PiPo module or series of PiPo modules

    MessagesMessages

    AttributesAttributes

    Name Type g/s Description

    mubuname symbol MuBu Container Name

    bufferindex unknown Buffer Index

    trackid unknown Input Track Id

    process int Enable Processing

    priority int Process Thread Priority

    dataoutput int Output Data

    progressoutput int Progress Report Formatname symbol Output Track Name

    Information for box attributes common to all objectsInformation for box attributes common to all objects

    ExamplesExamples

    See AlsoSee Also

    Name Description

    http://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    28/33

    mubu.knnmubu.knnK-NN unit selection

    DescriptionDescription

    K-nearest neighbor search on matrix data of a MuBu container's track using a kD-tree. The search can includematrix data of a given track over multiple buffers of a referred MuBu container. The buffers of the referred

    container that are included into kD-tree can be selected by the include and exclude messages. The object internallyconstructs a kD-tree from the included data.The selection data is given as a float or list representing a scalar, vector or matrix corresponing to the matrixdimensions of the referred track. The kd-Tree search uses an Euklidian distance between the given selection dataand the matrix data normalized by its standard deviation. Additionally, a weight can be defined for each matrixelement (message weights) in order to scale their importance in the search.As an option, the object can scale incoming selection data to the mean and standard deviation or to the minimumand maximum of the data included into the KNN search using the scaling attribute (typically applied to normalizedinput data). The minimum, maximum, mean and standard deviation calculated over the included data at theconstruction of the kD-tree can be output using the messages getmin, getmax, getmean, and getstddev.By default, the kD-tree is not updated automatically when the track content changes, but can be updated using theupdate message. Initializing and changing the referred a MuBu container and/or track (messages and attributes

    mubuname, trackid, and refer) as well as setting the buffers included into the KNN search (messages include andexclude) automatically will cause the (re-)construction of the kD-tree. Since the constructing the kD-tree mayrepresent a considerable amout of calcultaion, it is recommend to carefully choose the moment when the kD-tree isconstructed.

    ArgumentsArguments

    Name Type Opt Description

    MuBu name symbol opt Name of MuBu container

    MessagesMessages

    int Search neighbors of given values.

    float Select neighbors of given values.

    list Select neighbors of given values.

    select Select neighbors of given values.

    update Update kD-tree with current track values.

    include indices of included

    buffers [list]

    Sets buffers (by index) that are included in the k-NN search andreconstructs the kD-tree (all other buffers of the referred MuBucontainer are excluded).

    exclude indices of excluded

    buffers [list]

    Sets buffers (by index) that are excluded from the k-NN search andreconstructs the kD-tree (all other buffers of the referred MuBucontainer are included).

    getincluded Outputs list of indices of buffers that are included in the k-NN search.

    getexcluded Outputs list of indices of buffers that are excluded from the k-NN search.

    getmin Outputs the minima of the matrix data included in the k-NN search.

    getmax Outputs the maxima of the matrix data included in the k-NN search.

    getmean Outputs the mean values of the matrix data included in the k-NN search.

    getstddev Outputs the standard deviation of the matrix data included in the k-NNsearch

    AttributesAttributes

    Name Type g/s Descriptionmubuname symbol MuBu Container Name

    trackid unknown Track Id

    k int Maximum Number of Returned Neighbors

  • 8/11/2019 MuBu for Max Reference

    29/33

    radius unknown Maximum Distance

    weights unknown Selection Weights

    scaling int Scaling Mode

    Information for box attributes common to all objectsInformation for box attributes common to all objects

    ExamplesExamples

    See AlsoSee Also

    Name Description

    http://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    30/33

    mubu.granular~mubu.granular~MuBu granular synthesis engine

    DescriptionDescription

    This externals performs asynchronous and synchronous granular synthesis.For granular synthesis in synchronous mode, a marker track is required that marks the elementary waveforms of

    the audio stream.

    ArgumentsArguments

    Name Type Opt Description

    MuBu name symbol opt Name of MuBu container

    Marker track id atom opt marker track index or name (for synchronous mode)

    MessagesMessages

    refer MuBu container

    name [symbol]

    track index or name

    [atom]

    set MuBu container and track id

    resetoutputs clear internal output buffers

    bang trigger grain/segement or synchronize periodic playing

    position position [float]

    transition time

    (optional) [float]

    set grain/segement position

    list position [float]

    transition time

    (optional) [float]

    play until position and stop at end

    int set position

    float set position

    stop stop playing

    AttributesAttributes

    Name Type g/s Description

    mubuname symbol MuBu Container Name

    markers unknown Marker Track Id

    audio unknown Audio Track Id

    bufferindex int Buffer Index

    cyclic int Cyclic Audio

    microtiming int Micro timing

    minmaxperiod float Minimum Maximum Period

    maxduration float Maximum Duration

    maxdelay float Maximum Duration

    maxresampling float Maximum Resampling

    advance float Scheduling Advance

    delay float Scheduling Delay

    play int Enable Periodic Playing

    period float Period (Abs/Rel)

  • 8/11/2019 MuBu for Max Reference

    31/33

    periodvar float Period Random Variation (Abs/Rel)positionvar float Position Random Variation

    centered int Position Refers to Grain Center

    duration float Duration (Abs/Rel)

    durationvar float Duration Random Variation (Abs/Rel)

    attack float Attack Time (Abs/Rel)

    release float Release Time (Abs/Rel)

    window symbol Window Function

    level float Level

    levelvar float Level Random Variation

    resampling float Resampling

    resamplingvar float Resampling Random Variation

    filtermode int Filter Mode

    filterfreq float Filter Cutoff/Center Frequency

    filterfreqvar float Filter Frequency Random Variation (Abs/Rel)

    filterq float Filter Q-Factor

    filterqvar float Filter Q-Factor Random Variation (Abs/Rel)

    filtergain float Filter Gain

    duplicatechannels int Duplicate Grain Channels

    channeloffset int Output Channel Offset

    outputgains float Output Gains

    outputdelays float Output Delays

    voicedcol unknown Voiced Coeff Marker Column

    voicedminmax float Voiced Coeff Min/Max

    vuoverlap float Voiced/Unvoiced Waveform Overlap

    unvoicedlevel float Unvoiced Level

    minsourcefreq int Minimum Source Frequency

    tdi int Time Domain Waveform Interpolation

    Information for box attributes common to all objectsInformation for box attributes common to all objects

    ExamplesExamples

    See AlsoSee Also

    Name Description

    mubu.concat~ MuBu concatenative synthesis engine

    http://applications/Max5/patches/docs/refpages/mubu-ref/mubu.concat~.maxref.xmlhttp://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xml
  • 8/11/2019 MuBu for Max Reference

    32/33

    mubu.concat~mubu.concat~MuBu concatenative synthesis engine

    DescriptionDescription

    This external synthesizes entire segments of a given audio track. The segments are defined by a given marker track.In addition to the segment onset times, the marker track can define a duration and offset for each segment.

    ArgumentsArguments

    Name Type Opt Description

    MuBu name symbol opt Name of MuBu container

    Marker track id atom opt marker track index or name

    MessagesMessages

    refer MuBu container

    name [symbol]

    track index or name

    [atom]

    set MuBu container and track id

    resetoutputs clear internal output buffers

    bang trigger grain/segement or synchronize periodic playing

    position position [float]

    transition time

    (optional) [float]

    set grain/segement position

    list position [float]

    transition time

    (optional) [float]

    play until position and stop at end

    int set position

    float set position

    stop stop playing

    markerindex merker index [int] set marker index

    AttributesAttributes

    Name Type g/s Description

    mubuname symbol MuBu Container Name

    audio unknown Audio Track Id

    markers unknown Marker Track Id

    bufferindex int Buffer Index

    markerchange int Don't Repeat Marker Index

    outputmarkers int Output Markers

    aligned int Aligned Playing

    cyclic int Cyclic Audio

    microtiming int Micro timing

    minmaxperiod float Minimum Maximum Period

    maxduration float Maximum Duration

    maxdelay float Maximum Duration

    maxresampling float Maximum Resampling

    advance float Scheduling Advance

  • 8/11/2019 MuBu for Max Reference

    33/33

    delay float Scheduling Delay

    play int Enable Periodic Playing

    period float Period (Abs/Rel)

    periodvar float Period Random Variation (Abs/Rel)

    positionvar float Position Random Variation

    duration float Duration (Abs/Rel)

    durationcol unknown Duration Marker Column

    durationvar float Duration Random Variation (Abs/Rel)

    offset float Offset

    offsetcol unknown Offset Marker Column

    attack float Attack Time (Abs/Rel)

    release float Release Time (Abs/Rel)

    window symbol Window Function

    level float Level

    levelvar float Level Random Variation

    resampling float Resampling

    resamplingvar float Resampling Random Variation

    filterqvar float Filter Q-Factor Random Variation (Abs/Rel)

    outputdelays float Output Delays

    filtermode int Filter Mode

    filterfreq float Filter Cutoff/Center Frequency

    filterfreqvar float Filter Frequency Random Variation (Abs/Rel)

    filterq float Filter Q-Factor

    filtergain float Filter Gain

    duplicatechannels int Duplicate Grain Channels

    channeloffset int Output Channel Offset

    outputgains float Output Gains

    Information for box attributes common to all objectsInformation for box attributes common to all objects

    ExamplesExamples

    See AlsoSee Also

    Name Description

    MuBu concatenative synthesis engine

    http://applications/Max5/patches/docs/refpages/max-ref/jbox.maxref.xml