1 |
<html> |
2 |
<head> |
3 |
<meta name="author" content="Christian Schoenebeck"> |
4 |
<title>sample opcode</title> |
5 |
<meta name="description" content="Loads and assigns an audio sample file."> |
6 |
</head> |
7 |
<body> |
8 |
<h1>sample Opcode</h1> |
9 |
<p> |
10 |
This is the most fundamental opcode of the SFZ file format. It allows you |
11 |
to load and assign a certain audio instrument file. |
12 |
</p> |
13 |
|
14 |
<h3>Opcode Prototype</h3> |
15 |
<p/> |
16 |
<code lang="sfz"> |
17 |
sample=??path?? |
18 |
</code> |
19 |
|
20 |
<h3>Parameter</h3> |
21 |
<p>The mandatory <code>??path??</code> parameter defines the file system |
22 |
path of the sample file that shall be loaded and assigned, which may |
23 |
either be an absolute path or a relative path. A relative path is |
24 |
always interpreted relative to the sfz file's location.</p> |
25 |
|
26 |
<h3>Allowed Sections</h3> |
27 |
<p>May be used in sections <code><global></code>, <code><region></code>, ... TODO. |
28 |
|
29 |
<h3>Examples</h3> |
30 |
<p> |
31 |
Loads the WAV file "organ_c3.wav" from the subdirectory "mysamples" |
32 |
and assigns it to the entire key range of the instrument. |
33 |
<p/> |
34 |
<code lang="sfz"> |
35 |
<global> |
36 |
sample=mysamples/organ_c3.wav |
37 |
</code> |
38 |
|
39 |
<h3>Availabilty</h3> |
40 |
<p>Since LinuxSampler 2.0.0<p> |
41 |
<p>Conforms to SFZ v1 Standard.<p> |
42 |
|
43 |
</body> |
44 |
</html> |