418 |
triggered on a MIDI keyboard. The following example demonstrates how that |
triggered on a MIDI keyboard. The following example demonstrates how that |
419 |
could be achieved. |
could be achieved. |
420 |
</p> |
</p> |
|
<note> |
|
|
You need at least LinuxSampler 2.0.0.svn2 or higher for the following |
|
|
example to work as described and as expected. Refer to the notes of the |
|
|
<code>wait()</code> function reference documentation for more |
|
|
informations about this issue. |
|
|
</note> |
|
421 |
<code> |
<code> |
422 |
on init |
on init |
423 |
{ The amount of notes to play } |
{ The amount of notes to play } |
1098 |
</p> |
</p> |
1099 |
<note> |
<note> |
1100 |
Such <code>synchronized</code> blocks are a language extension which |
Such <code>synchronized</code> blocks are a language extension which |
1101 |
is only available with NKSP and requires at least LinuxSampler 2.0.0.svn60 |
is only available with NKSP. KSP does not support <code>synchronized</code> blocks. |
|
or higher. KSP does not support <code>synchronized</code> blocks. |
|
1102 |
</note> |
</note> |
1103 |
<p> |
<p> |
1104 |
So to make our previous example concurrency safe, we would |
So to make our previous example concurrency safe, we would |
1190 |
Keep in mind that with logical operators shown above, |
Keep in mind that with logical operators shown above, |
1191 |
all integer values other than <code>0</code> |
all integer values other than <code>0</code> |
1192 |
are interpreted as boolean <i>true</i> while an integer value of |
are interpreted as boolean <i>true</i> while an integer value of |
1193 |
precisely <code>0</code> is interpreted of being boolean <i>false</i>. |
precisely <code>0</code> is interpreted as being boolean <i>false</i>. |
1194 |
</p> |
</p> |
1195 |
<p> |
<p> |
1196 |
So the logical operators shown above always look at numbers at a whole. |
So the logical operators shown above always look at numbers at a whole. |
1237 |
</code> |
</code> |
1238 |
<p> |
<p> |
1239 |
All these operations yield in a <i>boolean</i> result which could then |
All these operations yield in a <i>boolean</i> result which could then |
1240 |
by used i.e. with <code>if</code> or <code>while</code> loop statements. |
be used i.e. with <code>if</code> or <code>while</code> loop statements. |
1241 |
</p> |
</p> |
1242 |
|
|
1243 |
<h3>String Operators</h3> |
<h3>String Operators</h3> |
1560 |
Which provides you an overview and quick access to the details of all |
Which provides you an overview and quick access to the details of all |
1561 |
built-in functions, built-in variables and more. |
built-in functions, built-in variables and more. |
1562 |
</p> |
</p> |
1563 |
|
<p> |
1564 |
|
You might also be interested to look at new <i>NKSP</i> core language |
1565 |
|
features being added to the latest development version of the sampler: |
1566 |
|
<a href="real_unit_final/01_nksp_real_unit_final.html"> |
1567 |
|
Real Numbers, Units and Finalness ... |
1568 |
|
</a> |
1569 |
|
</p> |
1570 |
|
|
1571 |
</body> |
</body> |
1572 |
</html> |
</html> |