/[svn]/doc/docbase/instrument_scripts/nksp/reference/functions/nksp_same_region_function.html
ViewVC logotype

Diff of /doc/docbase/instrument_scripts/nksp/reference/functions/nksp_same_region_function.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3229 by schoenebeck, Sun May 28 15:22:55 2017 UTC revision 3230 by schoenebeck, Sun May 28 15:29:35 2017 UTC
# Line 8  Line 8 
8      <h1>same_region()</h1>      <h1>same_region()</h1>
9      <p>      <p>
10        The key range (or note range if you will) of instruments is assigned to        The key range (or note range if you will) of instruments is assigned to
11        one more multiple keyboard regions. So each "region" is responsible for        one or more keyboard regions. So each "region" is responsible for
12        mapping audio samples and synthesis parameters for a certain key range.        mapping audio samples and synthesis parameters for a certain key range.
13        This function takes two keys on the keyboard (as MIDI note numbers) as        This function takes two keys on the keyboard (as MIDI note number) as
14        arguments and checks the region relationship of the two keys, that is if the two        arguments and checks the region relationship of the two keys, that is if the two
15        keys have a region mapped each, and if yes how the relationship of those two        keys have a region mapped each, and if yes how the relationship of those two
16        regions exactly is. So the result value of this function depends on the        regions exactly is. So the result value of this function depends on the
# Line 31  same_region(??key1??, ??key2??) Line 31  same_region(??key1??, ??key2??)
31        <tr>        <tr>
32          <td><code>??key1??</code></td>          <td><code>??key1??</code></td>
33          <td>Integer Number</td>          <td>Integer Number</td>
34          <td>Note number.<br>          <td>Note number of 1st key to be checked.<br>
35              [required]</td>              [required]</td>
36        </tr>        </tr>
37        <tr>        <tr>
38          <td><code>??key2??</code></td>          <td><code>??key2??</code></td>
39          <td>Integer Number</td>          <td>Integer Number</td>
40          <td>Note number.<br>          <td>Note number of 2nd key to be checked.<br>
41              [required]</td>              [required]</td>
42        </tr>        </tr>
43      </table>      </table>
# Line 49  same_region(??key1??, ??key2??) Line 49  same_region(??key1??, ??key2??)
49        </tr>        </tr>
50        <tr>        <tr>
51          <td>Relationship of the two keys:<br>          <td>Relationship of the two keys:<br>
52              0: Both keys have a region, however they are two different              <code>0</code>: Both keys have a region, however they are two different
53                 regions, which also and don't overlap each other.<br>                 regions, which also and don't overlap each other.<br>
54              1: Both keys have a region and it is exactly the same region.<br>              <code>1</code>: Both keys have a region and it is exactly the same region.<br>
55              2: Both keys have a region, which are two different regions, they are overlapping each other though.<br>              <code>2</code>: Both keys have a region, which are two different regions, and which are overlapping each other though.<br>
56              3: <code>??key1??</code> has a region, <code>??key2??</code> does not have any region.<br>              <code>3</code>: <code>??key1??</code> has a region, <code>??key2??</code> does not have any region.<br>
57              4: <code>??key1??</code> does not have any region, <code>??key2??</code> has a region.<br>              <code>4</code>: <code>??key1??</code> does not have any region, <code>??key2??</code> has a region.<br>
58              5: <code>??key1??</code> and <code>??key2??</code> both don't have any region.              <code>5</code>: <code>??key1??</code> and <code>??key2??</code> both don't have any region.
59          </td>          </td>
60          <td>Integer Number</td>          <td>Integer Number</td>
61        </tr>        </tr>

Legend:
Removed from v.3229  
changed lines
  Added in v.3230

  ViewVC Help
Powered by ViewVC