/[svn]/doc/docbase/instrument_scripts/nksp/01_nksp.html
ViewVC logotype

Diff of /doc/docbase/instrument_scripts/nksp/01_nksp.html

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

revision 3063 by schoenebeck, Fri Dec 16 18:26:26 2016 UTC revision 3064 by schoenebeck, Fri Dec 16 18:30:25 2016 UTC
# Line 970  end on Line 970  end on
970      </code>      </code>
971      <p>      <p>
972        This script will run an endless loop for each note being triggered.        This script will run an endless loop for each note being triggered.
973        Every <code lang="none">200ms</code>. It will turn the volume alternatingly down and        Every <code lang="none">200ms</code> it will turn the volume alternatingly down and
974        up to create the audible stuttering effect. After each <code lang="nksp">wait()</code>        up to create the audible stuttering effect. After each <code lang="nksp">wait()</code>
975        call it calls <code>event_status($EVENT_ID)</code> to check whether        call it calls <code>event_status($EVENT_ID)</code> to check whether
976        this note is still alive, and as soon as the note died, it will stop        this note is still alive, and as soon as the note died, it will stop
977        execution of the script instance by calling <code>exit()</code>. The latter        execution of the script instance by calling <code>exit()</code>. The latter
978        is important in this example, because otherwise the script instances would        is important in this example, because otherwise the script execution instances would
979        continue to run in this endless loop forever, even after the respectives        continue to run in this endless loop forever, even after the respectives
980        notes are gone. Which would let your CPU usage to increase with every new note.        notes are gone. Which would let your CPU usage to increase with every new note
981          and would never decrease again.
982        This behavior of the sampler is not a bug, it is intended, since there may        This behavior of the sampler is not a bug, it is intended, since there may
983        also be cases where you want to do certain things by script even after the        also be cases where you want to do certain things by script even after the
984        respective notes are dead and gone. However as you can see, that script is        respective notes are dead and gone. However as you can see, that script is

Legend:
Removed from v.3063  
changed lines
  Added in v.3064

  ViewVC Help
Powered by ViewVC