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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3137 - (show annotations) (download) (as text)
Fri Apr 28 15:26:26 2017 UTC (2 years, 11 months ago) by schoenebeck
File MIME type: text/html
File size: 2592 byte(s)
- SFZ: Minor optical corrections regarding opcodes "key", "transpose"
  and "tune".

1 <html>
2 <head>
3 <title>key Opcode</title>
4 <meta name="author" content="Nicola Pandini">
5 <meta name="description" content="Causes the associated region to play when incoming MIDI notes are equal to the value provided.">
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>key Opcode</h1>
11 <p>With this opcode you can cause a region to be played only when the incoming MIDI note is equal to <code lang="sfz">??note-value??</code>. If you want your region to be triggered by a range of notes, please see <code>lokey</code> and <code>hikey</code> opcodes.</p>
12
13 <h3>Opcode Prototype</h3>
14 <p/>
15 <code lang="sfz">
16 key=??note-value??
17 </code>
18
19 <h3>Parameter</h3>
20 <p>The mandatory <code>??note-value??</code> parameter defines the note assigned to the region. This parameter only accepts a valid MIDI note number (from 0 to 127) or name (from C-1 to G9):</p>
21 <p>
22 <table>
23 <tr>
24 <th>Note Numbers</th> <th>Note Names</th> <th>Octave</th>
25 </tr>
26 <tr>
27 <td>0 to 11</td> <td>C-1 to B-1</td> <td>-1</td>
28 </tr>
29 <tr>
30 <td>12 to 23</td> <td>C0 to B0</td> <td>0</td>
31 </tr>
32 <tr>
33 <td>24 to 35</td> <td>C1 to B1</td> <td>1</td>
34 </tr>
35 <tr>
36 <td>36 to 47</td> <td>C2 to B2</td> <td>2</td>
37 </tr>
38 <tr>
39 <td>48 to 59</td> <td>C3 to B3</td> <td>3</td>
40 </tr>
41 <tr>
42 <td>60 to 71</td> <td>C4 to B4</td> <td>4</td>
43 </tr>
44 <tr>
45 <td>72 to 83</td> <td>C5 to B5</td> <td>5</td>
46 </tr>
47 <tr>
48 <td>84 to 95</td> <td>C6 to B6</td> <td>6</td>
49 </tr>
50 <tr>
51 <td>96 to 107</td> <td>C7 to B7</td> <td>7</td>
52 </tr>
53 <tr>
54 <td>108 to 119</td> <td>C8 to B8</td> <td>8</td>
55 </tr>
56 <tr>
57 <td>120 to 127</td> <td>C9 to G9</td> <td>9</td>
58 </tr>
59 </table>
60 </p>
61
62 <h3>Allowed Sections</h3>
63 <p>May be used in sections <code>&lt;global&gt;</code> and <code>&lt;region&gt;</code>.</p>
64
65 <h3>Examples</h3>
66 <p>Defines one different note for every region.</p>
67 <code>
68 &lt;region&gt;
69 sample=mysamples/piano-c1.wav
70 key=24
71 &lt;region&gt;
72 sample=mysamples/piano-c#1.wav
73 key=25
74 &lt;region&gt;
75 sample=mysamples/piano-d1.wav
76 key=26
77 &lt;region&gt;
78 sample=kmysamples/piano-d#1.wav
79 key=d#1
80 </code>
81
82 <h3>Availabilty</h3>
83 <p>Since LinuxSampler 2.0.0</p>
84 <p>Conforms to SFZ v1 Standard.</p>
85
86 </body>
87 </html>

  ViewVC Help
Powered by ViewVC