Debian Codegraph @

src/Examples/FLOSS Manual Examples/14 Miscellanea/14B03_score_generated.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 </CsOptions>
4 <CsInstruments>
5 sr = 44100
6 ksmps = 32
7 0dbfs = 1
8 nchnls = 1
9
10 giSine ftgen 0, 0, 1024, 10, 1
11
12 instr 1
13 iOctStart = p4 ;pitch in octave notation at start
14 iOctEnd = p5 ;and end
15 iDbStart = p6 ;dB at start
16 iDbEnd = p7 ;and end
17 kPitch expseg cpsoct(iOctStart), p3, cpsoct(iOctEnd)
18 kEnv linseg iDbStart, p3, iDbEnd
19 aSine poscil ampdb(kEnv), kPitch, giSine
20 iFad random p3/20, p3/5
21 aOut linen aSine, iFad, p3, iFad
22 out aOut
23 endin
24 </CsInstruments>
25 <CsScore>
26 i 1 0 10 ;will be overwritten by the python score generator
27 </CsScore>
28 </CsoundSynthesizer>