;; ssc3.help.ssc - (c) rohan drape, 2004-2008 ;; Before ssc will work the SuperCollider language must be running and ;; the EvalListener class must be initialized. Under Linux use the ;; 'Start SCL' (C-c!) Emacs command, under OSX start the SuperCollider ;; application and type 'EvalListener.init'. ;; Literals #(1 1.0 #\a "a") ;; Boot the server. The ssc Emacs command 'Start SC3' does this. (boot s) ;; The famous Analog Bubbles example. (play (lambda () (let ((freq (midicps (kr LFSaw 0.4 0 24 (kr LFSaw #(8 7.23) 0 3 80))))) (ar CombN (ar SinOsc freq 0 0.1) 0.2 0.2 4)))) ;; Stop the current process. The ssc Emacs command 'Clear SC3' ;; evaluates this. This is equivalent to typing Control-. in SC3. (stop thisProcess) ;; The ssc Emacs command 'Play' (C-cC-p) adds the appropriate ;; enclosure, so one can 'play' the expression below. (let ((freq (midicps (kr LFSaw 0.4 0 24 (kr LFSaw #(8 7.23) 0 3 80))))) (ar CombN (ar SinOsc freq 0 0.1) 0.2 0.2 4)) ;; Send an OSC message. (sendMsg s "/g_freeAll" 1) ;; Quit the SC server. (quit s) ;; Infix operators. (+ 4 5 6) ; => 15 (* 4 5 6) ; => 120 (++ "test" "-" "catenation") ; => "test-catenation"