22 |
<img src="nksp_file.png" style="height:111px; margin-right:12px;"> |
<img src="nksp_file.png" style="height:111px; margin-right:12px;"> |
23 |
NKSP stands for "is <b>N</b>ot <b>KSP</b>", which denotes its distinction |
NKSP stands for "is <b>N</b>ot <b>KSP</b>", which denotes its distinction |
24 |
to an existing proprietary language called <i>KSP</i>. |
to an existing proprietary language called <i>KSP</i>. |
25 |
NSKP is a script language specifically designed to write real-time capable |
NKSP is a script language specifically designed to write real-time capable |
26 |
software extensions to LinuxSampler's sampler engines that can be bundled |
software extensions to LinuxSampler's sampler engines that can be bundled |
27 |
individually with sounds by sound designers themselves. |
individually with sounds by sound designers themselves. |
28 |
|
|
194 |
value use <code>%CC[$VCC_PITCH_BEND]</code>. |
value use <code>%CC[$VCC_PITCH_BEND]</code>. |
195 |
</p> |
</p> |
196 |
|
|
197 |
<h3>RPN / NRPN Events</h3> |
<h3 id="rpn_event">RPN / NRPN Events</h3> |
198 |
<p> |
<p> |
199 |
There are also dedicated event handlers for |
There are also dedicated event handlers for |
200 |
MIDI <i title="Registered Parameter Number">RPN</i> and |
MIDI <i title="Registered Parameter Number">RPN</i> and |
355 |
|
|
356 |
<h3>Variable Types</h3> |
<h3>Variable Types</h3> |
357 |
<p> |
<p> |
358 |
There are currently three different variable types, which you can easily |
There are currently five different variable types, which you can easily |
359 |
recognize upon their first character. |
recognize upon their first character. |
360 |
</p> |
</p> |
361 |
<table> |
<table> |
369 |
<td><code>%??variable-name??</code></td> <td>Integer Array</td> <td>Stores a certain amount of integer number values.</td> |
<td><code>%??variable-name??</code></td> <td>Integer Array</td> <td>Stores a certain amount of integer number values.</td> |
370 |
</tr> |
</tr> |
371 |
<tr> |
<tr> |
372 |
|
<td><code>~??variable-name??</code></td> <td>Real Number Scalar</td> <td>Stores one single real (floating point) number value.</td> |
373 |
|
</tr> |
374 |
|
<tr> |
375 |
|
<td><code>???variable-name??</code></td> <td>Real Number Array</td> <td>Stores a certain amount of real (floating point) number values.</td> |
376 |
|
</tr> |
377 |
|
<tr> |
378 |
<td><code>@??variable-name??</code></td> <td>String</td> <td>Stores one text string.</td> |
<td><code>@??variable-name??</code></td> <td>String</td> <td>Stores one text string.</td> |
379 |
</tr> |
</tr> |
380 |
</table> |
</table> |
623 |
</p> |
</p> |
624 |
<p> |
<p> |
625 |
Please note that the <i>polyphonic</i> qualifier only exists for integer |
Please note that the <i>polyphonic</i> qualifier only exists for integer |
626 |
variables. So you cannot declare polyphonic string variables, nor can you |
variables and real number variables (scalars). |
627 |
|
So you cannot declare polyphonic string variables, nor can you |
628 |
declare polyphonic array variables. Like in the previous explanation, |
declare polyphonic array variables. Like in the previous explanation, |
629 |
this is due to the fact that it would consume a huge amount of memory |
this is due to the fact that it would consume a huge amount of memory |
630 |
for such variables. And with string variables and array variables, the |
for such variables. And with string variables and array variables, the |
631 |
required amount of memory would be much higher than with simple integer |
required amount of memory would be much higher than with simple integer or |
632 |
variables. |
real number variables. |
633 |
</p> |
</p> |
634 |
<p> |
<p> |
635 |
As summary, the following are guideline rules describing when you should |
As summary, the following are guideline rules describing when you should |