Debian Codegraph @

examples/distort1.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;RT audio out
5 ;-iadc ;;;uncomment -iadc if RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o distort1.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16
17 gadist init 0
18
19 instr 1
20 iamp = p4
21 ifqc = cpspch(p5)
22 asig pluck iamp, ifqc, ifqc, 0, 1
23 gadist = gadist + asig
24 endin
25
26 instr 50
27 kpre init p4
28 kpost init p5
29 kshap1 init p6
30 kshap2 init p7
31 aout distort1 gadist, kpre, kpost, kshap1, kshap2, 1
32
33 outs aout, aout
34
35 gadist = 0
36 endin
37
38
39 </CsInstruments>
40 <CsScore>
41
42 ; Sta Dur Amp Pitch
43 i1 0.0 3.0 0.5 6.00
44 i1 0.5 2.5 0.5 7.00
45 i1 1.0 2.0 0.5 7.07
46 i1 1.5 1.5 0.5 8.00
47
48 ; Sta Dur PreGain PostGain Shape1 Shape2
49 i50 0 4 2 .5 0 0
50 e
51
52 </CsScore>
53 </CsoundSynthesizer>