Debian Codegraph @

examples/port.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 port.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 aout diskin2 "fox.wav",1, 0, 1
19 kf,ka ptrack aout, 512 ; pitch track with winsize=1024
20 kcps port kf, 0.01 ; smooth freq
21 kamp port ka, 0.01 ; smooth amp
22 ; drive an oscillator
23 asig poscil ampdb(kamp)*0dbfs, kcps, 1
24 outs asig, asig
25
26 endin
27 </CsInstruments>
28 <CsScore>
29 ; simple sine wave
30 f 1 0 4096 10 1
31
32 i 1 0 5
33 e
34 </CsScore>
35 </CsoundSynthesizer>