Debian Codegraph @

examples/lphasor.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac -iadc ;;;RT audio I/O
6 ; For Non-realtime ouput leave only the line below:
7 ; -o lphashor.wav -W ;;; for file output any platform
8 </CsOptions>
9
10 <CsInstruments>
11 ; Example by Jonathan Murphy Dec 2006
12
13 sr = 44100
14 ksmps = 10
15 nchnls = 1
16
17 instr 1
18
19 ifn = 1 ; table number
20 ilen = nsamp(ifn) ; return actual number of samples in table
21 itrns = 1 ; no transposition
22 ilps = 0 ; loop starts at index 0
23 ilpe = ilen ; ends at value returned by nsamp above
24 imode = 3 ; loop forwards & backwards
25 istrt = 10000 ; commence playback at index 10000 samples
26 ; lphasor provides index into f1
27 alphs lphasor itrns, ilps, ilpe, imode, istrt
28 atab tablei alphs, ifn
29 ; amplify signal
30 atab = atab * 10000
31
32 out atab
33
34 endin
35
36 </CsInstruments>
37
38 <CsScore>
39 f 1 0 262144 1 "drumsMlp.wav" 0 4 1
40 i1 0 60
41 e
42 </CsScore>
43
44 </CsoundSynthesizer>