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

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

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

revision 2742 by schoenebeck, Wed Apr 29 00:22:59 2015 UTC revision 3278 by schoenebeck, Mon Jun 5 19:02:59 2017 UTC
# Line 29  exit() Line 29  exit()
29      <p>None.</p>      <p>None.</p>
30            
31      <h3>Examples</h3>      <h3>Examples</h3>
32      <p/>      <p>
33          The following example prints a different message to the sampler's
34          terminal, depending on how many notes were triggered so far.
35        </p>
36      <code>      <code>
37  on init  on init
38    declare $numberOfNotes    declare $numberOfNotes
# Line 40  on note Line 43  on note
43    
44    select $numberOfNotes    select $numberOfNotes
45      case 1      case 1
46        message("First note was triggered!") { Will never be printed ! }        message("First note was triggered!")
47        exit        exit
48      case 2      case 2
49        message("Second note was triggered!") { Will never be printed ! }        message("Second note was triggered!")
50        exit        exit
51      case 3      case 3
52        message("Third note was triggered!") { Will never be printed ! }        message("Third note was triggered!")
53        exit        exit
54    end if    end select
55    
56    message("The " & $numberOfNotes & "th note triggered.")    message("The " & $numberOfNotes & "th note triggered.")
57  end on  end on
58      </code>      </code>
59    
60        <h3>See also</h3>
61        <p><code>abort()</code>, <code>wait()</code><p>
62    
63        <h3>Availability</h3>
64        <p>Since LinuxSampler 2.0.0<p>
65    
66    </body>    </body>
67  </html>  </html>

Legend:
Removed from v.2742  
changed lines
  Added in v.3278

  ViewVC Help
Powered by ViewVC