1 |
<html> |
2 |
<head> |
3 |
<title>lorand Opcode</title> |
4 |
<meta name="author" content="Nicola Pandini"> |
5 |
<meta name="description" content="Causes the associated region to play when a generated random number is between a defined range: lower limit."> |
6 |
<link rel="stylesheet" href="http://doc.linuxsampler.org/css/preview.css"> |
7 |
<script type="text/javascript" src="http://doc.linuxsampler.org/js/preview.js"></script> |
8 |
</head> |
9 |
<body> |
10 |
<h1>lorand Opcode</h1> |
11 |
<p>Causes the associated region to play when a generated random number is between a defined range. Used in conjunction with <code lang="sfz">hirand</code>, it makes the region play when the value of a random number generated by a note-on event is equal to or higher than <code>lorand</code> and lower than <code>hirand</code>.</p> |
12 |
|
13 |
<h3>Opcode Prototype</h3> |
14 |
<p/> |
15 |
<code lang="sfz"> |
16 |
lorand=??lower limit?? |
17 |
</code> |
18 |
|
19 |
<h3>Parameter</h3> |
20 |
<p>The mandatory <code>??lower limit??</code> parameter defines the range's lower limit. The accepted values for that parameter are in the 0-1 range.</p> |
21 |
|
22 |
<h3>Allowed Sections</h3> |
23 |
<p>May be used in section <code><region></code>.</p> |
24 |
|
25 |
<h3>Examples</h3> |
26 |
<p>Sets a pool of four clap samples, one of them is randomly choosen at every note-on event.</p> |
27 |
<code> |
28 |
<region> |
29 |
sample=mysamples/clap_01.wav |
30 |
lorand=0 |
31 |
hirand=0.250 |
32 |
<region> |
33 |
sample=mysamples/clap_02.wav |
34 |
lorand=0.250 |
35 |
hirand=0.500 |
36 |
<region> |
37 |
sample=mysamples/clap_03.wav |
38 |
lorand=0.500 |
39 |
hirand=0.750 |
40 |
<region> |
41 |
sample=mysamples/clap_04.wav |
42 |
lorand=0.750 |
43 |
hirand=1 |
44 |
</code> |
45 |
|
46 |
<h3>Availabilty</h3> |
47 |
<p>Since LinuxSampler 2.0.0</p> |
48 |
<p>Conforms to SFZ v1 Standard.</p> |
49 |
|
50 |
</body> |
51 |
</html> |