hirand Opcode
Causes the associated region to play when generated random number is between a defined range. Used in conjunction with lorand, 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
hirand=[upper limit]
Parameter
The mandatory [upper limit] parameter defines the range's upper limit. The accepted values for this parameter are in the 0-1 range.
Allowed Sections
May be used in section <region
>.
Examples
Sets a pool of four clap samples, one of them is randomly choosen at every note-on event.
<region
>
sample=mysamples/clap_01.wav
lorand=0
hirand=0.250
<region
>
sample=mysamples/clap_02.wav
lorand=0.250
hirand=0.500
<region
>
sample=mysamples/clap_03.wav
lorand=0.500
hirand=0.750
<region
>
sample=mysamples/clap_04.wav
lorand=0.750
hirand=1
Availability
Since LinuxSampler 2.0.0
Conforms to SFZ v1 Standard.