aboutsummaryrefslogtreecommitdiff
path: root/example/fileplayer.sc
diff options
context:
space:
mode:
Diffstat (limited to 'example/fileplayer.sc')
-rw-r--r--example/fileplayer.sc18
1 files changed, 18 insertions, 0 deletions
diff --git a/example/fileplayer.sc b/example/fileplayer.sc
new file mode 100644
index 0000000..f8e880c
--- /dev/null
+++ b/example/fileplayer.sc
@@ -0,0 +1,18 @@
+
+/*
+ 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)
+)
+