[sc-users] getting started on linux

Atte André Jensen atte.jensen at gmail.com
Sun Dec 10 22:29:04 PST 2006


Joshua Parmenter wrote:
> I'm not on Linux, but I imagine part of the problem has to do with the 
> amount of time it takes for the server to boot.

I guess you're right!

> Once it is booted, you 
> want probably execute everything as you expect.

Well then the question is: How to boot it without having to type 
"s.boot;" in emacs. I imagine that I pretty soon want to save code in 
files and throw them at sclang for execution, right?

I found the following (slightly modified) on the wiki:
#!/bin/bash
sc_dir=$HOME/software/supercollider/
cd $sc_dir/SuperCollider3/build/
SCSYNTH=/usr/local/bin/scsynth
PORT=57110
export SC_JACK_INPUTS=2
export SC_JACK_OUTPUTS=2
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:/home/steve/lib/SuperCollider/synthdefs"
# like this it's not necessary to run this script as root
# and it shows you how the server is actually started
SCCMD="$SCSYNTH -i ${SC_JACK_INPUTS} -o ${SC_JACK_OUTPUTS} -u $PORT $@"
echo $SCCMD
nice -n -10 $SCCMD || $SCCMD

Running the script makes SuperCollider show up in jack, properly 
connected and everything looks fine. However running "sclang 
sine_test.sc" (where sine_test.sc contains only 
{SinOsc.ar(440,0,0.3)}.play") gives the following error (and no sound):

<snip>
numentries = 726684 / 7903854 = 0.092
         Method Table Size 4896928 bytes
         Number of Method Selectors 3789
         Number of Classes 2086
         big table size 31615416
         Number of Symbols 9069
         Byte Code Size 233149
         compiled 323 files in 0.66 seconds
compile done
Emacs: No communication FIFO available.
Class tree inited in 0.02 seconds
LID: event loop started
StartUp done.
WARNING:
server 'localhost' not running.

-- 
peace, love & harmony
Atte

http://www.atte.dk      | quintet:      http://www.anagrammer.dk
                         | compositions: http://www.atte.dk/compositions


More information about the sc-users mailing list