--> ap/xxxxx

__

quick SuperCollider on GNU/Linux installation/getting started reminder: (tech_notes2)

for Gentoo... with GNU Emacs...

1] emerge scons

2] svn co https://svn.sourceforge.net/svnroot/supercollider/trunk SuperCollider3

3] cd SuperCollider3

4] scons PREFIX=/usr X11=no SCEL=yes LID=yes

5] scons install

6] in my .emacs:

(add-to-list 'load-path "/root/SuperCollider3/linux/scel/el")
(require 'sclang)

7] in my .bash_profile:

export SC_LIB_DIR=/usr/share/SuperCollider/SCClassLibrary
export SC_JACK_DEFAULT_INPUTS="alsa_pcm:capture_1,alsa_pcm:capture_2"
export SC_JACK_DEFAULT_OUTPUTS="alsa_pcm:playback_1,alsa_pcm:playback_2"
export SC_SYNTHDEF_PATH="./synthdefs"

8] start Emacs with emacs -sclang

9] sclang should be initialised and we see:

// =====================================================================                                                                                                  
// SuperCollider Workspace                                                                                                                                                
// =====================================================================                                                                                                  

in the buffer and:

----:---F1  *SCLang:Workspace*   All L5      (SCLang)------------------------------------

in the minibuffer. In this mode we can get help with C-x C-h m

10] change [ C-x C-b ] to scratch buffer and evaluate (C-x C-e after each line - the following):

   (sclang-start)
    (sclang-eval-expression "EvalListener.init")
    (sclang-server-boot)

first may not be necessary but...

11] switch back to our Sclang buffer and to test:

s = Server.local;

SynthDef("mysynth", { Out.ar(0, PinkNoise.ar(0.25)) }).play(s);

s.freeAll

Using C-c C-c to evaluate each line in turn...