Debian Codegraph @

examples/tone.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 tone.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 0dbfs = 1
14 nchnls = 2
15
16 instr 1
17
18 asig diskin2 "drumsMlp.wav", 1
19 outs asig, asig
20 endin
21
22 instr 2
23
24 kton line 10000, p3, 0 ;all the way down to 0 Hz
25 asig diskin2 "drumsMlp.wav", 1
26 asig tone asig, kton ;half-power point at 500 Hz
27 outs asig, asig
28 endin
29
30 </CsInstruments>
31 <CsScore>
32
33 i 1 0 2
34 i 2 2 2
35
36 e
37
38 </CsScore>
39 </CsoundSynthesizer>