60 |
<td>Random number generator.</td> |
<td>Random number generator.</td> |
61 |
</tr> |
</tr> |
62 |
<tr> |
<tr> |
63 |
|
<td><code>min()</code></td> |
64 |
|
<td>Calculates the minimum value of two given values.</td> |
65 |
|
</tr> |
66 |
|
<tr> |
67 |
|
<td><code>max()</code></td> |
68 |
|
<td>Calculates the maximum value of two given values.</td> |
69 |
|
</tr> |
70 |
|
<tr> |
71 |
<td><code>num_elements()</code></td> |
<td><code>num_elements()</code></td> |
72 |
<td>Returns the size of the requested array variable.</td> |
<td>Returns the size of the requested array variable.</td> |
73 |
</tr> |
</tr> |
315 |
<th>Variable</th> <th>Description</th> |
<th>Variable</th> <th>Description</th> |
316 |
</tr> |
</tr> |
317 |
<tr> |
<tr> |
318 |
|
<td><code>%ALL_EVENTS</code></td> |
319 |
|
<td> |
320 |
|
Note IDs of all currently active notes of the current sampler part (a.k.a. sampler channel). |
321 |
|
This may be passed to many built-in functions like <code>note_off()</code>. |
322 |
|
<note> |
323 |
|
In contrast to KSP this variable is an integer array type, whereas KSP's |
324 |
|
pendent of this built-in variable is an integer constant (scalar) called |
325 |
|
<code>$ALL_EVENTS</code>. Using the latter with NKSP will cause a |
326 |
|
parser warning, the behavior will be the same though. |
327 |
|
</note> |
328 |
|
</td> |
329 |
|
</tr> |
330 |
|
<tr> |
331 |
<td><code>$CC_NUM</code></td> |
<td><code>$CC_NUM</code></td> |
332 |
<td>MIDI controller number that caused the <code>controller</code> |
<td>MIDI controller number that caused the <code>controller</code> |
333 |
handler to be executed (only useful in the context of a |
handler to be executed (only useful in the context of a |