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

log~ Reference

Logarithm of a signal

log~

Description

Use the log~ object to output a signal composed of the logarithms of its input values. You can specify the logarithmic base.

Examples

Logarithm of a signal, to a specified base can be used for creating curves

Arguments

logarithmic-base [number]

Optional

Sets the base of the logarithm. The default value is 0.

Attributes

Common Box Attributes

Messages

float

Arguments

logarithmic-base [float]
In right inlet: Sets the base of the logarithm. The default is 0, which is equivalent to the natural logarithm (log to the base e, or 2.71828182). log to the base of 1 is always 0.

signal

In left inlet: log~ sends out a signal that is the logarithm of the input signal, to the base specified by the typed-in argument or the value most recently received in the right inlet. If a value in the signal is less than or equal to 0, log~ sends out a value of 0.00000001.

Output

signal

The logarithm of the input signal to the base specified by the initial argument or the value most recently received in the right inlet.

See Also

Name Description
pow~
curve~
sqrt~