aboutsummaryrefslogtreecommitdiff
path: root/supercollider/example
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-02-08 13:52:00 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-02-08 13:52:00 +0000
commit49bb1446e386fe7afa4675ccec6fb81b4d9e33f6 (patch)
treeed877814fb8606ff9c283377df99e83e10259bb9 /supercollider/example
parent4d84d14ac1aa13958eaa2971b03f7f929a519105 (diff)
moved supercollider to externals/
svn path=/trunk/; revision=9414
Diffstat (limited to 'supercollider/example')
-rw-r--r--supercollider/example/fileplayer.sc18
-rw-r--r--supercollider/example/help-sc.pd33
-rw-r--r--supercollider/example/supertest.py47
3 files changed, 0 insertions, 98 deletions
diff --git a/supercollider/example/fileplayer.sc b/supercollider/example/fileplayer.sc
deleted file mode 100644
index f8e880c4..00000000
--- a/supercollider/example/fileplayer.sc
+++ /dev/null
@@ -1,18 +0,0 @@
-
-/*
- Short example of a supercollider3 synth.
- -Kjetil S. Matheussen, 2004.
-
- To load this one from inside PD, call:'
-
- server.evalSynth("fileplayer")
-
-*/
-
-
-arg out=0,bufnum,rate=100,pan=0;
-
-Out.ar( out,
- Pan2.ar(PlayBuf.ar(1,bufnum,rate/100,0,0,1),pan/100,0.8)
-)
-
diff --git a/supercollider/example/help-sc.pd b/supercollider/example/help-sc.pd
deleted file mode 100644
index 994e3067..00000000
--- a/supercollider/example/help-sc.pd
+++ /dev/null
@@ -1,33 +0,0 @@
-#N canvas 447 151 646 543 10;
-#X obj 366 242 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
--262144 -1 -1 -68 256;
-#X obj 455 237 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
--262144 -1 -1 -57.4803 256;
-#X obj 458 207 hsl 128 15 -100 100 0 0 empty empty empty -2 -6 0 8
--262144 -1 -1 2700 1;
-#X msg 366 218 -120;
-#X obj 273 110 dac~;
-#X msg 50 274 reload;
-#X msg 109 171 start /home/kjetil/mus2840/hh1.wav;
-#X msg 288 265 stop;
-#X msg 365 267 rate \$1;
-#X msg 455 264 pan \$1;
-#X obj 260 66 k_jack~ supercollider;
-#X obj 71 325 pyext supertest supertest;
-#X text 15 15 Play a soundfile on the supercollider server.;
-#X text 333 67 <- We get the supercollider sound here.;
-#X text 432 503 -Kjetil S. Matheussen \, 2004;
-#X msg 28 487 \; pd dsp 1;
-#X obj 28 456 loadbang;
-#X connect 0 0 8 0;
-#X connect 1 0 9 0;
-#X connect 2 0 1 0;
-#X connect 3 0 0 0;
-#X connect 5 0 11 0;
-#X connect 6 0 11 1;
-#X connect 7 0 11 1;
-#X connect 8 0 11 1;
-#X connect 9 0 11 1;
-#X connect 10 0 4 0;
-#X connect 10 1 4 1;
-#X connect 16 0 15 0;
diff --git a/supercollider/example/supertest.py b/supercollider/example/supertest.py
deleted file mode 100644
index 5c1a3172..00000000
--- a/supercollider/example/supertest.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env python
-
-
-import pyext,os,traceback
-import supercollider
-
-sc=supercollider
-
-
-class supertest(pyext._class):
- _inlets=1
- _outlets=0
-
- def start_1(self,arg):
- try:
- self.buffer=sc.BufferRead(arg)
- self.bsynth=sc.Synth("fileplayer",["bufnum",self.buffer.id])
- except:
- traceback.print_exc()
-
- def stop_1(self):
- try:
- del self.bsynth
- except:
- traceback.print_exc()
-
- def pan_1(self,val):
- try:
- self.bsynth.set("pan",val)
- except:
- traceback.print_exc()
-
- def rate_1(self,rate):
- try:
- self.bsynth.set("rate",rate)
- except:
- traceback.print_exc()
-
- def __init__(self):
- try:
- server=sc.localServer
- server.dumpOSC(3)
- server.evalSynth("fileplayer");
- except:
- traceback.print_exc()
-
-