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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3135 - (hide annotations) (download) (as text)
Fri Apr 28 14:40:54 2017 UTC (6 years, 11 months ago) by pandini
File MIME type: text/html
File size: 2586 byte(s)
* SFZ: added tune,transpose,lo-hibend,lo-hivel,lo-hichan,lo-hikey,key
1 pandini 3135 <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>??note value??</code>.<br/>
12     If you want your region to be triggered by a range of notes, please see <code>lokey</code> and <code>hikey</code> opcodes.</p>
13    
14     <h3>Opcode Prototype</h3>
15     <p/>
16     <code lang="sfz">
17     key=??note value??
18     </code>
19    
20     <h3>Parameter</h3>
21     <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>
22     <p>
23     <table>
24     <tr>
25     <th>Note Numbers</th> <th>Note Names</th> <th>Octave</th>
26     </tr>
27     <tr>
28     <td>0 to 11</td> <td>C-1 to B-1</td> <td>-1</td>
29     </tr>
30     <tr>
31     <td>12 to 23</td> <td>C0 to B0</td> <td>0</td>
32     </tr>
33     <tr>
34     <td>24 to 35</td> <td>C1 to B1</td> <td>1</td>
35     </tr>
36     <tr>
37     <td>36 to 47</td> <td>C2 to B2</td> <td>2</td>
38     </tr>
39     <tr>
40     <td>48 to 59</td> <td>C3 to B3</td> <td>3</td>
41     </tr>
42     <tr>
43     <td>60 to 71</td> <td>C4 to B4</td> <td>4</td>
44     </tr>
45     <tr>
46     <td>72 to 83</td> <td>C5 to B5</td> <td>5</td>
47     </tr>
48     <tr>
49     <td>84 to 95</td> <td>C6 to B6</td> <td>6</td>
50     </tr>
51     <tr>
52     <td>96 to 107</td> <td>C7 to B7</td> <td>7</td>
53     </tr>
54     <tr>
55     <td>108 to 119</td> <td>C8 to B8</td> <td>8</td>
56     </tr>
57     <tr>
58     <td>120 to 127</td> <td>C9 to G9</td> <td>9</td>
59     </tr>
60     </table>
61     </p>
62    
63     <h3>Allowed Sections</h3>
64     <p>May be used in sections <code>&lt;global&gt;</code> and <code>&lt;region&gt;</code>.</p>
65    
66     <h3>Examples</h3>
67     <p>Defines one different note for every region.</p>
68     <code>
69     &lt;region&gt;
70     sample=mysamples/piano-c1.wav
71     key=24
72     &lt;region&gt;
73     sample=mysamples/piano-c#1.wav
74     key=25
75     &lt;region&gt;
76     sample=mysamples/piano-d1.wav
77     key=26
78     &lt;region&gt;
79     sample=kmysamples/piano-d#1.wav
80     key=d#1
81     </code>
82    
83     <h3>Availabilty</h3>
84     <p>Since LinuxSampler 2.0.0</p>
85     <p>Conforms to SFZ v1 Standard.</p>
86    
87     </body>
88     </html>

  ViewVC Help
Powered by ViewVC