Debian Codegraph @

examples/opa.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 a.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; hear the difference between instr.1 and 2
12 sr = 44100
13 ksmps = 32
14 nchnls = 2
15 0dbfs = 1
16
17 instr 1 ;sine wave at k-rate
18
19 ksig oscil 0.8, 440, 1
20 ; k-rate to the audio-rate conversion
21 asig = a(ksig)
22 outs asig, asig
23
24 endin
25
26 instr 2 ;sine wave at a-rate
27
28 asig oscil 0.8, 440, 1
29 outs asig, asig
30
31 endin
32
33 </CsInstruments>
34 <CsScore>
35 ; sine wave.
36 f 1 0 16384 10 1
37
38 i 1 0 2
39 i 2 2 2
40 e
41
42 </CsScore>
43 </CsoundSynthesizer>