Debian Codegraph @

examples/ins.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac -iadc ;;;realtime audio I/O
5 ; For Non-realtime ouput leave only the line below:
6 ; ins.wav -W ;;; for file output any platform
7 </CsOptions>
8 <CsInstruments>
9
10 sr = 44100
11 ksmps = 32
12 nchnls = 2 ;two channels out
13 0dbfs = 1
14
15 instr 1
16
17 ain1, ainr ins ;grab your mic and sing
18 adel linseg 0, p3*.5, 0.02, p3*.5, 0 ;max delay time = 20ms
19 aoutl flanger ain1, adel, .7
20 aoutr flanger ain1, adel*2, .8
21 fout "in_s.wav", 14, aoutl, aoutr ;write to stereo file,
22 outs aoutl, aoutr ;16 bits with header
23
24 endin
25 </CsInstruments>
26 <CsScore>
27
28 i 1 0 10
29 e
30 </CsScore>
31 </CsoundSynthesizer>