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

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

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

revision 3208 by schoenebeck, Tue Apr 19 16:14:30 2016 UTC revision 3209 by schoenebeck, Thu May 25 12:08:04 2017 UTC
# Line 45  ignore_event(??event-id??) Line 45  ignore_event(??event-id??)
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>
# Line 54  ignore_event(??event-id??) Line 54  ignore_event(??event-id??)
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 &lt; $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

Legend:
Removed from v.3208  
changed lines
  Added in v.3209

  ViewVC Help
Powered by ViewVC