Debian Codegraph @

examples/chuap.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;RT 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 chuap.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 gibuzztable ftgen 1, 0, 16384, 10, 1
17
18 instr 1
19
20 istep_size = p4
21 iL = p5
22 iR0 = p6
23 iC2 = p7
24 iG = p8
25 iGa = p9
26 iGb = p10
27 iE = p11
28 iC1 = p12
29 iI3 = p13
30 iV2 = p14
31 iV1 = p15
32
33 iattack = 0.02
34 isustain = p3
35 irelease = 0.02
36 p3 = iattack + isustain + irelease
37 iscale = 1.0
38 adamping linseg 0.0, iattack, iscale, isustain, iscale, irelease, 0.0
39 aguide buzz 0.5, 440, sr/440, gibuzztable
40 aI3, aV2, aV1 chuap iL, iR0, iC2, iG, iGa, iGb, iE, iC1, iI3, iV2, iV1, istep_size
41 asignal balance aV2, aguide
42
43 outs asignal*adamping, asignal*adamping
44 endin
45
46 </CsInstruments>
47 <CsScore>
48 ; Adapted from ABC++ MATLAB example data.
49 // time_step kL kR0 kC2 kG kGa kGb kE kC1 iI3 iV2 iV1
50 ; torus attractor ( gallery of attractors )
51 i 1 0 20 .1 -0.00707925 0.00001647 100 1 -.99955324 -1.00028375 1 -.00222159 -2.36201596260071 3.08917625807226e-03 3.87075614929199
52 ; heteroclinic orbit
53 i 1 + 20 .425 1.3506168 0 -4.50746268737 -1 2.4924 .93 1 1 -22.28662665 .009506608 -22.2861576
54 ; periodic attractor (torus breakdown route)
55 i 1 + 20 .05 0.00667 0.000651 10 -1 .856 1.1 1 .06 -20.200590133667 .172539323568344 -4.07686233520508
56 ; torus attractor (torus breakdown route)'
57 i 1 + 20 0.05 0.00667 0.000651 10 -1 0.856 1.1 1 0.1 21.12496758 0.03001749 0.515828669
58
59 </CsScore>
60 </CsoundSynthesizer>