Debian Codegraph @

examples/pvsfwrite.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 pvsfwrite.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 ;By Victor Lazzarini 2008
17
18 instr 1
19
20 asig oscili .5, 440, 1
21 fss pvsanal asig, 1024,256,1024,0
22 pvsfwrite fss, "mypvs.pvx"
23 ase pvsynth fss
24 outs ase,ase
25 endin
26
27 instr 2 ; must be called after instr 1 finishes
28
29 ktim timeinsts
30 fss pvsfread ktim, "mypvs.pvx"
31 asig pvsynth fss
32 outs asig, asig
33
34 endin
35 </CsInstruments>
36 <CsScore>
37 f1 0 16384 10 1
38
39 i1 0 1
40 i2 1 1
41 e
42 </CsScore>
43 </CsoundSynthesizer>