Debian Codegraph @

examples/divides.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 /.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 idiv = 1/p3 * p4
19 ktrm oscil 1, idiv, 1 ;use oscil as an envelope
20 printf "retrigger rate per note duration = %f\n",1, idiv
21 kndx line 5, p3, 1 ;vary index of FM
22 asig foscil ktrm, 200, 1, 1.4, kndx, 1
23 outs asig, asig
24
25 endin
26 </CsInstruments>
27 <CsScore>
28 f 1 0 4096 10 1 ;sine wave
29
30 i 1 0 3 10
31 i 1 4 3 15
32 i 1 8 3 2
33
34 e
35 </CsScore>
36 </CsoundSynthesizer>
37