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

live.thisdevice

Send a bang automatically when a Max Device is loaded, report device state

Description

live.thisdevice reports three pieces of information about your Max Device. A bang message is automatically sent from the left outlet when the Max Device is opened and completely initialized, or when the containing patcher is part of another file that is opened. Additionally, a bang will be reported every time a new preset is loaded or the device is saved (and thus reloaded within the Live application). A 1 or 0 will be sent from the middle outlet when the Device is enabled or disabled, respectively. A 1 or 0 will be sent from the right outlet when preview mode for the Device is enabled or disabled, respectively. Used within Max, live.thisdevice functions essentially like the loadbang object. The middle and right outlets are inactive in this case.

Arguments

None.

Messages

bang Sending a bang message to a live.thisdevice object causes it to output a bang message from the leftmost outlet.
(mouse) Double-clicking on a live.thisdevice object causes it to output a bang message from the leftmost outlet.
getstate Sending a getstate message to a live.thisdevice object causes it to output the Max Device state from the rightmost outlet.
loadbang Same as bang.

Information for box attributes common to all objects

Examples

See Also

Name Description
active Send 1 when patcher window is active, 0 when inactive
button Flash on any message, send a bang
closebang Send a bang when patcher window is closed
freebang Send a bang when patcher is freed
loadbang Send a bang automatically when a patcher is loaded
loadmess Send a message when a patch is loaded
thispatcher Send messages to a patcher