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

log2 Reference

The logarithm base 2 of the input

log2

Inlets

Input [number]

Input value to be processed.

Outlets

Log Output [number]

The log base 2 of the input.

Fixed Attributes

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

hot [bool] (default: 0)

All inlets trigger calculation.

Dynamic Attributes

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

in1 [number]

Input value to be processed.

reset [bang] (default: 0)

Reset inlets to default values.

See Also

Name Description
exp Raise e to a power
log The natural logarithm of the input (log base e)
log10 The logarithm base 10 of the input
e The constant value of e