Debian Codegraph @

examples/oscili.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 oscili.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 = .6
19 kcps = 440
20 ifn = p4
21
22 asig oscil kamp, kcps, ifn
23 outs asig,asig
24
25 endin
26
27 instr 2
28
29 kamp = .6
30 kcps = 440
31 ifn = p4
32
33 asig oscili kamp, kcps, ifn
34 outs asig,asig
35
36 endin
37 </CsInstruments>
38 <CsScore>
39 f1 0 128 10 1 ; Sine with a small amount of data
40 f2 0 128 10 1 0.5 0.3 0.25 0.2 0.167 0.14 0.125 .111 ; Sawtooth with a small amount of data
41 f3 0 128 10 1 0 0.3 0 0.2 0 0.14 0 .111 ; Square with a small amount of data
42 f4 0 128 10 1 1 1 1 0.7 0.5 0.3 0.1 ; Pulse with a small amount of data
43
44 i 1 0 2 1
45 i 2 3 2 1
46 i 1 6 2 2
47 i 2 9 2 2
48 i 1 12 2 3
49 i 2 15 2 3
50 i 1 18 2 4
51 i 2 21 2 4
52
53 e
54 </CsScore>
55 </CsoundSynthesizer>