Writing Docs Gigedit SFZ Instrument Scripts NKSP Language NKSP Reference

lorand Opcode

Causes the associated region to play when a generated random number is between a defined range. Used in conjunction with hirand, it makes the region play when the value of a random number generated by a note-on event is equal to or higher than lorand and lower than hirand.

Opcode Prototype

lorand=lower limit


The mandatory lower limit parameter defines the range's lower limit. The accepted values for this parameter are in the 0-1 range.

Allowed Sections

May be used in section <region>.


Sets a pool of four clap samples, one of them is randomly choosen at every note-on event.


Since LinuxSampler 2.0.0

Conforms to SFZ v1 Standard.

Document Updated:  2017-05-20  |  Author:  Nicola Pandini