/[svn]/doc/docbase/sfz/opcodes/sfz_lorand_opcode.html
ViewVC logotype

Contents of /doc/docbase/sfz/opcodes/sfz_lorand_opcode.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3129 - (show annotations) (download) (as text)
Thu Apr 27 14:56:19 2017 UTC (3 years, 1 month ago) by pandini
File MIME type: text/html
File size: 1714 byte(s)
* SFZ: added lorand and hirand opcodes
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>&lt;region&gt;</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 &lt;region&gt;
29 sample=mysamples/clap_01.wav
30 lorand=0
31 hirand=0.250
32 &lt;region&gt;
33 sample=mysamples/clap_02.wav
34 lorand=0.250
35 hirand=0.500
36 &lt;region&gt;
37 sample=mysamples/clap_03.wav
38 lorand=0.500
39 hirand=0.750
40 &lt;region&gt;
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>

  ViewVC Help
Powered by ViewVC