--> ap/xxxxx

* __

VLF receiver version 2: (2008.07.10:1 vlf#1 tech_notes2#41)

Based on the Nasa INSPIRE VLF-3 receiver. All Gerber files, schematic and Kicad files:


Parts list:

C1         24pF        
C10        10uF        
C11        .1uF        
C12        1uF         
C13        10uF        
C14        330uF       
C15        10uF        
C16        100uF       
C17        1uF         
C18        .1uF        
C19        330uF       
C2         .01uF       
C3         .1uF        
C4         0.01uF      
C5         0.01uF      
C6         .1uF        
C7         .001uF      
C8         .001uF      
C9         .1uF        
D1         3v zener DIODE       
D2         3v zener DIODE       
K1         CONN_3 [headphone out]      
L1         3.9mH       
L2         150mH       
P1         CONN_1 [antenna]      
P2         CONN_2 [power]     
Q1         FET_N (2SK170)       
Q2         NPN (2N2222)         
R1         22M         
R10        20K         
R11        10K         
R12        15K         
R13        270K        
R14        1K          
R15        10          
R16        100         
R17        100         
R18        470         
R19        220         
R2         220         
R20        10k         
R3         220         
R4         43K         
R5         100         
R6         2.2K        
R7         2.2K        
R8         100K        
R9         20K         
RV1        10K         
U1         LM358       
U2         LM386       
Recordings to follow. Also to be filed under EM resources.

Further ELF/VLF links:

VLF audio stream: http://www.spaceweather.com/glossary/inspire.html

VLF listener's handbook: http://www.auroralchorus.com/vlfhndbk.htm







Software defined radio/ITC/Baudline notes and references: (2008.06.20:1 tech_notes2#40 scrying_tech_notes#51)

1] Building and testing GNU Radio (Debian testing):

svn co http://gnuradio.org/svn/gnuradio/trunk gnuradio

apt-get install libtool portaudio19-dev alsa-dev alsa-source python-wxgtk2.6 python-numpy

export PYTHONPATH=/usr/local/lib/python2.4/site-packages/



make install


cd ~/gnuradio/gnuradio-examples/python/audio

./audio_fft.py -I hw:0,0 -S


GNU Radio tutorials: http://www.nd.edu/~jnl/sdr/docs/tutorials/1.pdf



SDR: http://f4dan.free.fr/sdr_eng.html

2] Demodulation using Baudline:

Ref: http://www.domenech.org/homebrew-sdr/receiver-3.htm




Use of decimate and down-mixer:

Down-mixer allows us to move across frequency range down-sampling.

What is decimation?

"a technique for reducing the number of samples in a discrete-time signal."

Play deck window - advanced features: high pass and low pass filters, use of shift for demodulation.

3] ITC/EVP ref:

EM related: http://members.tripod.com/:/Article1.htm

RF signal strength meter 100 MHz-2.5GHz (2008.05.22:1 tech_notes2#39 ad8313#1)

Simple design based on Analog Device's AD8313 chip, providing visual display of broadband signal strength and audio level output of demodulated signal.

The circuit detects, demodulates the amplitude and amplifies high frequency electromagnetic emissions (100 MHz to 2.5 GHz approx) for audio frequency output. The main component is the Analog Devices AD8313 IC: RF logarithmic detector and controller, whose output is further amplified by the TL082 op-amp.

Circuit diagram:

Or: http://1010.co.uk/images/rssi_strength.pdf

PCB and all Kicad/GERBER files:







avrdude oneliner: (2008.04.25:2)

avrdude -c avrusb500 -p m8 -P /dev/ttyUSB0 -U lfuse:w:0xFF:m -U hfuse:w:0xDF:m -U flash:w:main.hex

A more compact hardware RNG: (2008.04.21:1)

PCB: http://1010.co.uk/images/noise2-smaller-Component.pdf


Examining binary files using octave: (2008.04.15:1)

In GNU Emacs:

1] M-x octave mode

2] Use C-c TAB C-l to evaluate the last Octave statement (eg. help)

[also used to start the inferior Octave process which we can interact with in the other window/frame.]

3] Ctrl-up-arrow/down-arrow to cycle through history at Octave prompt.

4] Opening a file as raw 8 bit character (unsigned) and plotting a histogram of values:

myfile = fopen("testrnd_delay_none", "r+")

x =fread(myfile, "uchar");





3] Help/info issues:

At first there were some problems with help/GNU info in Emacs with Octave. These were solved with:

(require 'octave-hlp) (in Emacs)


apt-get install octave3.0-info

transparent version control, GNU Emacsery: (2008.04.01:2 emacs#64 tech_notes2#35)

1] Remembrance engine revisited:


ra-index -v ~/experiment/RA-indexes/svn ~/svn_test/trunk

;; in .emacs:

(load "remem.el")
(setq remem-prog-dir "/usr/bin")
(setq remem-database-dir "~/experiment/RA-indexes")
(setq remem-scopes-list '(("svn" 6 5 500) ("experiment" 6 5 500)))
;;(setq remem-terminal-mode t)
(setq remem-load-original-suggestion  nil)

C-c r t - toggle

C-c r [number] see numbered suggestion

C-c r 

2] Transparent version control using SVNAutoversioning and davfs// simple recipe:

In httpd.conf:

<Location /repos>
  DAV svn
  SVNPath /root/svnrepo
  SVNAutoversioning on

Making sure that we link:

ln -s ../mods-available/dav_fs.load .

and other dav stuff into mods-enabled

// restart apache and test access in browser

Some play with repo permissions and finally:

mount.davfs -o uid=xxxxx,gid=users,rw,no_netdev /dav

More hardware RNG: (2008.03.14:1)

Code updated (bug in serial code produced extra carriage returns 0x0d.


and a different scheme for unbiasing (for the moment without XOR of alternate ones and zeroes).

Using baudline for quick histogram and raw file analysis:


1] input -> open file -> format raw

2] set options and make use of option

Test results under ent:


Entropy = 7.997799 bits per byte.

Optimum compression would reduce the size
of this 84058 byte file by 0 percent.

Chi square distribution for 84058 samples is 257.79, and randomly
would exceed this value 43.93 percent of the times.

Arithmetic mean value of data bytes is 127.5481 (127.5 = random).
Monte Carlo value for Pi is 3.127132558 (error 0.46 percent).
Serial correlation coefficient is -0.000152 (totally uncorrelated =

Further Links:






USB-interfaced Hardware RNG with avalanche noise transistor: (2008.03.11:1)

Based on designs in white noise workshops and on:









[Also as reference for avr-gcc/ATmega8 analogue signal input and serial R/TX]



Reverse-biasing of a 2n3904 transistor across 20V (produced by MAX232), generates avalanche noise which is amplified by one more transistor and further amplified and transformed into a square wave by Schmitt trigger 74HC14. This signal is sampled as a 1 or 0 by the digital input of an ATmega8. The sample is unbiased after Von Neuman and accumulated towards a single byte which is transmitted to the PC by way of USB/serial interface (FT232RL).


Using dieharder from:


cat /dev/ttyUSB1 > testrnd

dieharder -a -f testrnd -g 66

AVR and HID: (2008.03.03:1)

Simple HID using the ATmega8:

1] After:




quick graphviz for simple stack/protocol diagram: (2008.02.26:1)

digraph stack {
        label="Life coding and encapsulation...";

        node [shape=plaintext, fontsize=16];


	W[label="1] W.A.S.T.E - an appearance", shape=box, style=filled, color=crimson, width=4]
	A[label="2] ALICE - the obvious", shape=box, style=filled, color=pink, width=5]
	F[label="3] FOREST - CPU/bound", shape=box, style=filled, color=goldenrod2, width=6]
	C[label="4] CHICKEN - self reference", shape=box, style=filled, color=lemonchiffon1, width=7]
	I[label="5] ISLAND - sheep", shape=box, style=filled, color=green2, width=8]
	V[label="6] VACUUM - transport layer", shape=box, style=filled, color=green4, width=9]

W -> A -> F -> C -> I -> V


Text-based steganography for IRC: (2008.02.14:2)

Using ERC: http://savannah.gnu.org/projects/erc/

[with erc-fill indentation set to 0]



[patched to prevent entry of newlines]

and the following code:


stego - encode binary file as text (2008.02.14:1)


./stego -e -t ~/experiment/crying/crying testfile testout ;; encode

./stego -d -t ~/experiment/crying/crying testout ;; decode

./stego -t ~/experiment/crying/crying -w dict ;; make dictionary

echo "waiting for rabbits" | ./stego -e -f dict - testout ;; encode with dictionary

Source: http://www.fourmilab.ch/stego/

tcpdump -i eth0 -s 1500 -w -

devdisplay 1500 100 (2008.02.12:1)

HIVE settings: (2008.01.10:1)

NOW: pass: admin. openwrt port 8080:


// essid: 10100 mode ad-hoc (not to use: xxxxx)

ipkg install kmod-usb-serial-ftdi

ipkg install kmod-usb-serial

insmod usbserial

insmod ftdi_sio

ls /dev/usb/tts/0


wl0_infra=0 for Ad Hoc

nvram showgrep wifi
vram showgrep wl0

nvram set key=value

nvram commit

use orinoco card is best for adhoc


put software in /home

Our script runs on boot if we make script:

#!/bin/sh /etc/rc.common
# Example script
# Copyright (C) 2007 OpenWrt.org


start() {        
echo start
# commands to launch application
/home/mysendOSC -h 9999 &


stop() {          
echo stop
# commands to kill application 

as /etc/init.d/myosc

and then invoke:

/etc/init.d/myosc enable

[in]tolerance materials research collected sources: (2007.12.27:1)

The road to the transistor: http://www.jmargolin.com/history/trans.htm

Make a solar cell in your kitchen: http://scitoys.com/scitoys/scitoys/echem/echem2.html

Home-made SSI chips: http://www.velocityreviews.com/forums/t21718-homemade-ssi-chips.html

THE TRANSISTOR or SERENDIPITY and the SPACE AGE: http://www.smecc.org/cullen_moore.htm

How Do Transistors Work? http://amasci.com/amateur/transis.html

A Home-made Transistor: http://ourworld.compuserve.com/homepages/Andrew_Wylie/homemade.HTM

Point contact transistor: http://www.pbs.org/transistor/science/events/pointctrans.html

MOSIS IC fabrication: http://www.mosis.com/

Steganography practice for PM project: (2007.11.29:1)

1] StegFS (filesystem): http://www.mcdonald.org.uk/StegFS/

[ wbStego: http://wbstego.wbailer.com/ ]

Stepic (Python image steganography): http://domnit.org/2007/02/stepic

Forensic tools: http://unixsadm.blogspot.com/2007/10/digital-forensic-tools-imaging.html

Text-based steganography: http://www.siefkes.net/software/nlstego/

Steghide: http://steghide.sourceforge.net/

2] Using NLstego to embed text in another (generated according to the -m= model text) text (to encode and to decode):

Example encode:

cat svn_test/trunk/ludics_secret | java -Xmx400M -jar nlstego-0.9-dev.jar -m=experiment/crying/crying e > steg_test

Example decode:

cat steg_test |  java -Xmx400M -jar nlstego-0.9-dev.jar -m=experiment/crying/crying d

3] Using steghide to embed text in a bmp image:

steghide embed -cf conspire81bw.bmp -ef conspire.txt

and to decode:

steghide extract -sf conspire81bw.bmp

man page to pdf: (2007.11.28:1)

par example: man -T steghideps2pdf - steghide.2.pdf

Analog Device AD8318: (2007.11.12:1)

1 Mhz to 8 Ghz Log Detector

Thanks to: http://f6bon.albert.free.fr/Milliwattmetre.html

8 channel audio, RME Hammerfall and cat: (2007.10.15:2)

1] On Debian Testing/Lenny:

apt-get install alsa-firmware-loaders

[also alsa-tools, lots of jack stuff]

... and compile firmware also by hand:

./configure --prefix=/usr

2] Jack and cat?

To be able to cat to each channel of soundcard:

PD: perhaps use piperead~ and pipewrite~ with jackd and adc~/dac~ 1 2 usw. TO TEST

Jack: apt-get install jack-tools from Rohan Drape: use perhaps of jack.plumbing

alsaplayer can be used to play to a certain channel but doesn't accept STDIN


cat /dev/hda1ecasound -i stdin -o jack

and then use jack_connect to assign. See for example:


wrap this up for Emacs Lisp functionality

GNEVE and DV (2007.10.10:2 tech_notes2#21 gneve#10)

1] export from Kino as MPEG4 AVI single pass [btw. have to edit appropriate script in: /usr/share/kino/scripts/exports/ so that mp3 is libmp3lame to avoid halting at: "unknown encoder mp3"]

2] potentially use --force-smart on avidemux2_cli (in gneve.el)

ULF/ELF/VLF receiver and antenna (2007.10.09:2 tech_notes2#20 maxwell_notes#9)



receiving ELF waves in a frequency range between zero and approximately 25 Hz

various VLF receivers/EM sniffers:

Installing Rohan Drape's rsc3 Scheme Supercollider: (2007.10.09:1)

1] Installation:

apt-get install mzscheme

darcs get http://www.slavepianos.org/rd/sw/rsc3/

cd rsc3; setup-plt; make; cd ..

cp -R rsc3 /usr/lib/plt/collects

2] in .emacs:

(add-to-list 'load-path "/root/rsc3/emacs")
(require 'rsc3)
3] in .rsc3.scm

(require (lib "rsc3.ss" "rsc3")
         (only (lib "process.ss") system))

(define s (open-udp* "" 57110))

(define (boot*)
    (putenv "SC_PLUGIN_PATH"
      (putenv "SC_SYNTHDEF_PATH"
        (system "scsynth -u 57110 &")
          (sleep 0.5)
            (reset s))

(define (draw* g)
    (draw g "/tmp" "dotty"))

4] M-x rsc3-boot-scsynth [having started jackd as in previous post]

5] Testing:

;; (DiskIn numChannels rate bufnum)

;; Continously play a soundfile from disk. This requires a buffer to
;; be preloaded with one buffer size of sound.  The buffer size must
;; be a multiple of twice the synth block size. The default block size
;; is 64.

;; Note that DiskIn reads the number of outputs to create from what
;; looks like an input, but it is not an input, and cannot be set
;; using a control.

(let ((f "/root/testantenna.wav")
      (n 1))
  (->< s (/b_alloc 0 8192 n))
  (->< s (/b_read 0 f 0 -1 0 1))
  (play s (DiskIn n ar 0)))

(reset s)

(begin (->< s (/b_close 0))
       (->< s (/b_free 0)))

 (define analog-bubbles
      (let* ((a (MulAdd (LFSaw kr (Mce 8 7.23) 0) 3 80))
                       (b (MulAdd (LFSaw kr 0.4 0) 24 a)))
             (CombN (Mul (SinOsc ar (MIDICPS b) 0) 0.1) 0.2
                    0.2 4)))

 (play s analog-bubbles)
after: http://www.cs.brown.edu/pipermail/plt-scheme/2007-January/015947.html

SuperCollider yet again (Emacs/svn sc/Debian testing): (2007.10.08:2)

1] jackd -Rv -d alsa 48000

2] emacs -nw

3] M-x sclang-start

3] evaluate:

(sclang-eval-expression "EvalListener.init")


4] test in // SuperCollider Workspace:

s = Server.local;

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


with C-c C-c after each expression

// no xruns

Coil for VLF receiver: (2007.10.08:1 maxwell_notes#8 tech_notes2#17)

For the following: http://www.vlf.it/kurt/elf.html

40cm diameter. 1000 winds of 0.6mmm wire

Palm Pilot coding toolkit: (2007.10.04:3)

1] Prc-tools:




2] SDK:


moved directory:

mv sdk-5r3 /usr/local/share/palmdev/

3] Resource editor/compiler:

apt-get install pilrc

OpenWRT/Hive networks notes [on WL-HDD2.5]: (2007.09.30:1)

1] Default/factory IP address is: is address after flashing with Alexei's image

Also note:

Asus products do not revert to a default IP address when in Failsafe Mode, but will instead use the address stored in NVRAM.

[see: http://wiki.openwrt.org/:/Hardware/Asus/Flashing ]

2] Flashing according to manual TFTP method [also pinging unit throughout seems to maintain connectivity]

3] Set wireless and wired details after notes on this page:


(Common Lisp-based) stumpwm as window manager (2007.09.28:1)

Fully featured, minimally decorated Emacs style window manager


1] Installed by way of instructions at:


2] Customised with C-z as main modifier keystrokes as per included ~/.stumpwmrc

3] Key bindings documented in bundled info file

//a selection

C-z ; - command mode (can TAB here)

C-z o - move between frames

C-z s - split horizontally (C-z Q - mazimize)

C-z C-s - open xterm

C-z n // p - cycle through windows

C-z w - show windows available

C-z number - goto window number x

C-z e - open GNU Emacs (graphical)

C-z k - kill window

... and many more

back to Debian [ Lenny//testing ] (2007.09.26:1)

1] Using with Emacs from CVS. Current w3m-el is not functioning so installed also from CVS.

2] Keystroke problems with Alt/Meta key and Delete key fixed respectively with:

XTerm.vt100.metaSendsEscape: true in ~/.Xdefaults


(normal-erase-is-backspace-mode 0)

in .emacs

3] For CVS-Emacs to use Debian packages we use code as recommended on:


4] For some reason we have to explicitly set background in X rather than evilwm:

xsetroot -solid pink // in .xinitrc

5] zsh we set as default shell with chsh

KiCad: (2007.09.24:3 pcb#14 schematics#11 tech_notes2#12)

1] Plot -> PDF route sometimes chops board - simply reposition on grid

2] Remember to mark tracks/pads which should be attached to the (GROUND) fill before filling the zone

scrying-serial-palm: (2007.09.24:2 atmegascheme#12 tech_notes2#11)

1] code and board mistakes. remember - 22 is AGND, 21 AREF by 10 nF tied to GND, and 20 aVCC

see http://tuxgraphics.org/electronics/200705/article07051.shtml

Example code:


rough atmega-palm connection notes (2007.09.24:1 atmegascheme#11 tech_notes2#10)

[primarily for debugging scrying boards]

1] Using standard ATmega8 breadboarded (runs at 8MHz with external crystal) connected to Palm Pilot by way of DIY serial level convertor (MAX3232 - white cable here to pin3 (TXD)

2] Set fuse for external oscillator using the prg_fusebit_uc shell script - option -w 0 for external crystal

3] project home is ~/projects/scryer/avrscheme

4] swop over TX and RX as null modem for Palm - achieved in home-made gender changer!

TinyOS brief notes: (2007.06.26:1 scrying_tech_notes#18 tech_notes2#9)

Installation: http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html

Tutorial: http://www.tinyos.net/tinyos-2.x/doc/html/tutorial/lesson1.html

Note source is in /opt/tinyos-2.x

Kicad shortcuts: (2007.06.12:1 scrying_tech_notes#16 schematics#10 tech_notes2#8)


PgUp and PgDn or Shift V to switch component/copper side when laying tracks and vias (to place via start on component side, drag track, right click to place via and then track continues on copper side)

F1 zoom in

F2 zoom out

F3 redraw (across also all kicad apps)

F4 centre at cursor

and further see also: http://xtronics.com/reference/kicad.html

TODO: check SMD sizes and quartz surface mount footprint

Kicad/scrying boards... (2007.06.11:1 scrying_tech_notes#13 schematics#8 tech_notes2#7)


1] Plenty of very useful libraries inc. for ATmega128 and the Hitachi 32Kx8 Static RAM: 62256 (also from Reichelt) at:


The ATmega128 at: http://library.oshec.org/library/avr.lib

62256: http://library.oshec.org/library/memory-hitachi.lib

2] Making and connecting buses:

From Kicad online help:

In fact, due to the repetition command (Insert key), connections can be very quickly made in the following way, if component pins are aligned in increasing order (a common case in practice on components such as memories, microprocessors…):

Place the first label (for example PCA0)

Use the repetition command as much as needed to place members. EESchema will automatically create the next labels (PCA1, PCA2…) vertically aligned, theorycally on the position of the other pins.

Draw the wire under the first label. Then use the repetition command to place the other wires under the labels.

If needed, place the bus entries by the same way (Place the first entry, then use the repetition command).

Which boils down to:

1] Using foggy/tracing paper (Artoz Perga Pastel) gives better results than Folie 3562 Overhead transparency when printed with laser printer (600 dpi) though latter can be used if fill in gaps. (SMD/T fine with five minutes below).

2] Warm-up UV lights (see pcb below) for two minutes. Switch off briefly and line up with ink facing PCB (in dim daylight is fine). Expose tracing paper for five minutes/ overhead transparency for two and a half to three minutes (heavy books on scanner/UV box lid). Develop for three to five in the Natriumhydroxid (Sodium Hydroxide I think (10g in 1000ml)). Wash in cold water. (above in dull light).

3] Now etching in Natriumpersulphat (Sodium Persulphate) which is faster, cleaner and more accurate. Dissolve 120g in 600ml water. Heat up in bath to 40 degrees or more. Etch board for around 15 minutes until copper vanishes - agitating as much as possible. Wash and dry boards and save solvent removal of UV paint until just before soldering.

KiCad/GIMP printing: (2007.05.09:1 pcb#6 tech_notes2#5 schematics#7)

1] When we export by way of plot option and then ps2pdf and then into GIMP the image is too small. We need to scale X and Y in the plot option to 1.08.

2] To test boards with three options:

a) latest foggy transparency paper

b) clear OHP film

c) foggy as diffuser and then with clear OHP film

... for SMT, double-sided, new VLF design, spectral boards (inc. TV transmitter)

Pure:dyne customisation - in preparation for this weeks workshop: (2007.04.24:1)

Added data radio (encoder and decoder), osctrans/oscdump (making use of libOSC, dumpOSC and sendOSC) and devdisplay as an xxxxx module to pure:dyne:


see software for descriptions of these commandline applications.

Module is:

http://1010.co.uk/xxxxx.dyne (to add to a pure:dyne distribution mount -o loop the current iso, copy to a new directory the resulting directories, insert xxxxx.dyne into dyne/modules, mkisofs using the invocation of:

https://devel.goto10.org/puredyne/wiki/ - or just add to docked system)

Module was created at speed and with few problems (Fedora Core system unusable for dev system due to LVM/GRUB mismatch).

1] Set up development system according to:


except refs to: mkdir cd /vol/hd1/puredyne-svn


ln -s /vol/hd1/puredyne-svn/puredyne $DYNE_SYS_MNT/SDK/modules/pure

don't make sense but make the repository on the mounted drive and link accordingly to the right path

2] Create a new module and add software to the module according to:


3] Create the ISO WITHOUT using dynesdk mkiso but manually using mount and mkisofs by way of customiso link above

4] xxxxx ISO is at: http://plot.bek.no/~crash2005/puredynexxxxx_april2007.iso

5] Module will be updated soon for xxxxx workflow: ATmega8/Atmel development apps, GNU Emacs extensions, promiscuOS, cur-rme usw.

Printing for PCB machen - foto resist using the Gimp: (2007.04.23:2 pcb#5 tech_notes2#3)

1) Import the PDF into the Gimp (open and set resolution to 600). Manipulate and copy as required as a layer.

2) Print settings: Set Image to line and output to Black and White

Etching PCBs using photo-resist method: (2007.04.23:1 pcb#4 tech_notes2#1)

Light documentation from workshop 21.04.07: workshops

1) UV apparatus constructed using gutted scanner with three 8W UV lights/lampe (Ersatz-UV-Roehren) from reichelt.de, three starters (from junked fluorescent tubes) and three 8W transformers from ebay.de.

useful link (see also below):


2) Design laser photocopied from software-created original in this case onto diffuse transparent paper (milky). Completely transparent OHP material to be tested: (Avery Folie 3562 Reichelt again)

3) Design is placed with ink in contact with photo-sensitive (fotopositiv) PCB material from Conrad. Plastic protection is first peeled off - all of this process in near darkness. PCB is exposed for three minutes to UV light using a darkroom timer to time this.

4) Pre-mixed developer/entwickler (Natriumhydroxid from Conrad - 10g to 1 litre of 20 degree C water. Development time varies from three to five minutes as developer ages.

5) After development rinse in cold water and develop in etch solution (see: simple_pcb_guide for this part of the process.

6) Scrub off the yellow photo-resist with water and a brillo-pad and clean a bit with alcohol. The results:

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

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-eval-expression "EvalListener.init")

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);


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