Debian Codegraph @

examples/gen27.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 gen27.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 gisin ftgen 1, 0, 32768, 10, 1
17 gienv ftgen 2, 0, 1025, 27, 0, 0,200, 1, 400, -1, 513, 0
18
19 instr 1
20
21 kcps init 3/p3 ;play 3x over duration of note
22 kndx phasor kcps
23 ixmode = 1 ;normalize to 0-1
24 kval table kndx, gienv, ixmode
25 kval = kval*100 ;scale 0-100
26 asig poscil 1, 220+kval, 1 ;add to 220 Hz
27 outs asig, asig
28
29 endin
30 </CsInstruments>
31 <CsScore>
32
33 i 1 0 4
34
35 e
36 </CsScore>
37 </CsoundSynthesizer>
38
39