Documents
Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

log2()

Calculates and returns logarithm to base 2 of the passed number.

Function Prototype

log2(number)

Arguments

Argument Name Data Type Description
number Real Number Input value.
[required]

Return Value

Data Type Description
Real Number Logarithm to base 2 of originally passed number.

Remarks

This functions accepts any standard unit and finalness for its argument number. The return value's standard unit and finalness is identical to the passed number's one.

Examples

None yet.

See also

log(), log10(), round(), sqrt(), exp(), pow(), sin()

Availability

Since LinuxSampler 2.1.1.svn14.

This function exists only with NKSP, it is not available with KSP.

Document Updated:  2019-09-18  |  Author:  Christian Schoenebeck