Documents
Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

max()

Returns the maximum value of the passed two value arguments. That means, it compares the two passed values with each other and returns the one which is larger.

Function Prototype

max(number1,number2)

Arguments

Argument Name Data Type Description
number1 Integer Number One of the two numbers to compare with.
[required]
number2 Integer Number One of the two numbers to compare with.
[required]

Return Value

Description Data Type
Largest number of the passed two values. Integer Number

Examples

The following example prints the result of some example argument values to the terminal as soon as the script is loaded.

See also

min()

Availability

Since LinuxSampler 2.0.0.svn23.

Document Updated:  2017-05-28  |  Author:  Christian Schoenebeck