Debian Codegraph @

examples/v.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 RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o v.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 aenv expseg .01, p3*0.25, 1, p3*0.75, 0.01
19 asig poscil3 .4*aenv, p4, 1
20 outs asig, asig
21
22 endin
23 </CsInstruments>
24 <CsScore>
25 f 1 0 16384 10 1 ;sine wave
26 ;because note 3 and 5 are played simultaneously and are nearly of the same frequency,
27 ;played together they will create a "beating" sound.
28
29 i 1 0 2 110 ; note1
30 v2
31 i 1 3 . 220 ; note2
32 i 1 6 . 110 ; note3
33 v1
34 i 1 9 . 880 ; note4
35 i 1 12 . 100 ; note5
36 e
37 </CsScore>
38 </CsoundSynthesizer>
39