/*

 *  BASICS

 *

 *  

 *  To get the "Schisms" environment up and running,

 *  and to close the environment once the piece is over,

 *  you have to understand a few basics about the

 *  SuperCollider environment.

 *

 *  0.  EXECUTING SUPERCOLLIDER CODE

 *

 *      To execute a line of SuperCollider code,

 *      click on the line, then press enter (or fn-return

 *      if you don't have an enter key).  Give it a try with

 *      the line of code below:

 */

 

"PLOrk"; // You should see the word "PLOrk" appear in the "post" window


/*

 *  To execute a block of code, select it and press enter

 *  (or fn-return).  You can execute each of the following

 *  three lines individually, or you can select them all together

 *  to execute them at once.  Try it both ways:

 */


x = 2;

y = 4;

x + y;


/*

 *  If a block of code is parenthesized, you can select all of it

 *  by double-clicking to the right of the open parenthesis:

 *  

 */

 

(

x = 2;

y = 4;

x + y;

)




/*

 *  1.  STOPPING PROCESSES WITH COMMAND-PERIOD

 *

 *      Hit command-period to stop a process.  For example:

 *      every second, the following block of code posts x's value,

 *      then increments it:

 */


(

x = 0;

c = SystemClock.sched(0, {x.postln; x = x + 1; 1}) 

)


/*      Hit command-period and the process stops.

 *

 *

 *  You now know everything you need to know to get the "Schisms" objects

 *  and environment working, and to shut them down when you've had enough.

 *

 */