Debian Codegraph @

examples/ampdbfs.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 ampdbfs.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14
15
16 instr 1
17
18 idb = p4
19 iamp = ampdbfs(idb)
20 asig oscil iamp, 220, 1
21 print iamp
22 outs asig, asig
23 endin
24
25
26 </CsInstruments>
27 <CsScore>
28 ;sine wave.
29 f 1 0 16384 10 1
30
31 i 1 0 1 -1
32 i 1 + 1 -5
33 i 1 + 1 -6
34 i 1 + 1 -20
35 e
36
37 </CsScore>
38 </CsoundSynthesizer>