A newer version of Max is available. Click here to access the latest version of the Max documentation

dim Reference

Output dimensions of a buffer.

dim

Examples

Arguments

buffername [symbol]

The named buffer~ to get the dimensions from.

Inlets

input [bang]

A bang to the dim objects' inlet triggers the dimension outputs of the named buffer~ .

Outlets

out [number]

The left outlet outputs the dimensions of the named buffer~ as a sample value.

outms [number]

The right outlet outputs the dimensions of the named buffer~ as a millisecond value.

Fixed Attributes

These attributes must be set in the object box and determine the behavior of the object at runtime.

buffername [symbol]

The named buffer~ to get the dimensions from.

Dynamic Attributes

These attributes can be modified in the code during execution using the set object

buffer [number] (default: 0)

If multiple buffer names are declared to be used, this sets the currently active buffer using an index [0 based].

input [bang]

A bang to the dim objects' inlet triggers the dimension outputs of the named buffer~ .

See Also

Name Description
buffer~ A data buffer for holding audio (or potentially some other) data.
lookup~ Index a buffer object using a signal, for waveshaping.
channels Output channel count of a buffer.