45 |
<tr> |
<tr> |
46 |
<td><code>??event-id??</code></td> |
<td><code>??event-id??</code></td> |
47 |
<td>Event ID Number or Event ID Array</td> |
<td>Event ID Number or Event ID Array</td> |
48 |
<td>MIDI event(s) to be dropped.<br> |
<td>Event ID(s) of the MIDI event(s) to be dropped.<br> |
49 |
[required]</td> |
[required]</td> |
50 |
</tr> |
</tr> |
51 |
</table> |
</table> |
54 |
<p>None.</p> |
<p>None.</p> |
55 |
|
|
56 |
<h3>Examples</h3> |
<h3>Examples</h3> |
57 |
<p>None yet.<p> |
<p> |
58 |
|
The following example implements a simple split point behavior for your sound. |
59 |
|
It only plays notes starting at C5, all note-on events below C5 will be dropped. |
60 |
|
<p> |
61 |
|
<code> |
62 |
|
on init |
63 |
|
{ MIDI note number for "C5" } |
64 |
|
declare const $splitPoint := 60 |
65 |
|
end on |
66 |
|
|
67 |
|
on note |
68 |
|
if ($EVENT_NOTE < $splitPoint) |
69 |
|
{ $EVENT_ID is a built-in variable which always reflects |
70 |
|
the ID of the event which caused the execution of this |
71 |
|
specific event handler instance, i.e. here it reflects |
72 |
|
the respective MIDI note-on event } |
73 |
|
ignore_event($EVENT_ID) |
74 |
|
end if |
75 |
|
end on |
76 |
|
</code> |
77 |
|
|
78 |
<note> |
<note> |
79 |
Passing an array of event IDs is only supported by NKSP. If you want |
Passing an array of event IDs is only supported by NKSP. If you want |