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

log~

Logarithm of a signal

Description

log~ outputs a signal logarithm of its input according to a specified logarithmic base.

Arguments

Name Type Opt Description
logarithmic-base float or int opt Sets the base of the logarithm. The default value is 0.

Messages

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.

Information for box attributes common to all objects

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.

Examples

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

See Also

Name Description
pow~ Signal power function
curve~ Exponential ramp generator
sqrt~ Square root of a signal