Debian Codegraph @

src/Examples/FLOSS Manual Examples/04 Sound Synthesis/04H08_Scan_extreme_amplitude.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -o dac
4 </CsOptions>
5 <CsInstruments>
6
7 nchnls = 2
8 sr = 44100
9 ksmps = 32
10 0dbfs = 1
11 ;NOTE THIS CSD WILL NOT RUN UNLESS
12 ;IT IS IN THE SAME FOLDER AS THE FILE "STRING-128"
13 instr 1
14 ipos ftgen 1, 0, 128 , 10, 1
15 irate = .007
16 ifnvel ftgen 6, 0, 128 , -7, 0, 128, 0.1
17 ifnmass ftgen 2, 0, 128 , -7, 1, 128, 1
18 ifnstif ftgen 3, 0, 16384, -23, "string-128"
19 ifncentr ftgen 4, 0, 128 , -7, 1, 128, 2
20 ifndamp ftgen 5, 0, 128 , -7, 1, 128, 1
21 kmass = 1
22 kstif = 0.1
23 kcentr = .01
24 kdamp = 1
25 ileft = 0
26 iright = 1
27 kpos = 0
28 kstrngth = 0.
29 ain = 0
30 idisp = 1
31 id = 22
32 scanu ipos, irate, ifnvel, ifnmass, \
33 ifnstif, ifncentr, ifndamp, kmass, \
34 kstif, kcentr, kdamp, ileft, iright,\
35 kpos, kstrngth, ain, idisp, id
36 kamp = 0dbfs*.2
37 kfreq = 200
38 ifn ftgen 7, 0, 128, -5, .001, 128, 128.
39 a1 scans kamp, kfreq, ifn, id
40 a1 dcblock2 a1
41 iatt = .005
42 idec = 1
43 islev = 1
44 irel = 2
45 aenv adsr iatt, idec, islev, irel
46 ;outs a1*aenv,a1*aenv; Uncomment for speaker destruction;
47 endin
48 </CsInstruments>
49 <CsScore>
50 f8 0 8192 10 1;
51 i 1 0 5
52 </CsScore>
53 </CsoundSynthesizer>
54 ;example by Christopher Saunders