Debian Codegraph @

examples/vco.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 vco.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 instr 1
17
18 kamp = .4
19 kcps = cpspch(p4)
20 iwave = p5 ; Select the wave form
21 kpw init 0.5 ; Set the pulse-width/saw-ramp character.
22 ifn = 1
23 asig vco kamp, kcps, iwave, kpw, ifn
24 outs asig, asig
25 endin
26
27
28 </CsInstruments>
29 <CsScore>
30 f 1 0 65536 10 1 ; a sine wave.
31
32 ; pitch-class waveform
33 i 1 00 02 05.00 1 ; saw
34 i 1 02 02 05.00 2 ; square
35 i 1 04 02 05.00 3 ; tri/saw/ramp
36
37 i 1 06 02 07.00 1
38 i 1 08 02 07.00 2
39 i 1 10 02 07.00 3
40
41 i 1 12 02 09.00 1
42 i 1 14 02 09.00 2
43 i 1 16 02 09.00 3
44
45 i 1 18 02 11.00 1
46 i 1 20 02 11.00 2
47 i 1 22 02 11.00 3
48 e
49 </CsScore>
50 </CsoundSynthesizer>