Debian Codegraph @

examples/follow2.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o follow2.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 instr 1
17
18 asig soundin "drumsMlp.wav"
19 outs asig, asig
20 endin
21
22 instr 2 ;using follow2
23
24 as soundin "drumsMlp.wav"
25 af follow2 as, p4, p5
26 ar rand 44100 ;noise
27 ; "drumsMlp.wav" provides amplitude for noise
28 asig balance ar, af
29 outs asig, asig
30
31 endin
32 </CsInstruments>
33 <CsScore>
34
35 i 1 0 2
36 i 2 2 2 0.001 0.01 ;quick attack & deacy
37 i 2 5 2 0.1 0.5 ;slow attack & deacy
38
39 e
40 </CsScore>
41 </CsoundSynthesizer>