aboutsummaryrefslogtreecommitdiff
path: root/example/fileplayer.sc
blob: f8e880c4fd8be7ab11fe2dbd894c0caa57261bb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)
)