Debian Codegraph @

iOS/Csound iOS Obj-C Examples/Csound iOS Examples/ViewControllers/ConsoleOutput/csdStorage/Peduto - csScelsi.csd

raw
1 ;Csound_Scelsi
2 ;Alfonso Peduto 2012
3
4 <CsoundSynthesizer>
5
6 <CsOptions>
7 -d -g
8 </CsOptions>
9
10 <CsInstruments>
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 iwave ftgen 1, 0, 4096, 10, 1, .5, .33, .25, .0, .1, .1, .1
17
18 gasendL init 0
19 gasendR init 0
20
21 turnon "reverber"
22 turnon "generate1"
23 turnon "generate2"
24 turnon "generate3"
25 turnon "generate4"
26
27
28 seed 0
29
30 ;3-notes, medium-low velocity, low to medium frequencies
31 instr generate1
32
33 ininstr = 3
34 indx = 0
35
36 loop:
37 ivel random 30, 50
38 ifreq random 48, 80
39 idur random 30, 40
40
41 event_i "i", "strings", 0+rnd(6), idur, ifreq, ivel
42 event_i "i", "strings", 60+rnd(10), idur, ifreq, ivel
43 loop_lt indx, 1, ininstr, loop
44
45 endin
46
47
48 ;6-note cluster background, low velocity, low frequencies
49 instr generate2
50
51 ininstr = 6
52 indx = 0
53
54 loop:
55 ivel random 0, 30
56 ifreq random 30, 60
57 idur random 60, 100
58
59 event_i "i", "strings", 20+rnd(12), idur, ifreq, ivel
60 event_i "i", "strings", 90+rnd(12), idur, ifreq, ivel
61 event_i "i", "strings", 225+rnd(12), idur, ifreq, ivel
62 loop_lt indx, 1, ininstr, loop
63
64 endin
65
66
67 ;sharp attacks, high velocity, short durations
68 instr generate3
69
70 ininstr = 15
71 indx = 0
72
73 loop:
74 ivel random 90, 110
75 ifreq random 48, 80
76 idur random 0.07, 0.6
77
78 event_i "i", "strings", 120+rnd(50), idur, ifreq, ivel
79 loop_lt indx, 1, ininstr, loop
80
81 endin
82
83
84 ;7-notes cluster background, high frequency, low velocity
85 instr generate4
86
87 ininstr = 7
88 indx = 0
89
90 loop:
91 ivel random 0, 35
92 ifreq random 60, 90
93 idur random 40, 80
94
95 event_i "i", "strings", 180+rnd(8), idur, ifreq, ivel
96 loop_lt indx, 1, ininstr, loop
97
98 endin
99
100
101
102 instr strings
103 ;Main
104 kdtn jspline 0.05, 0.4, 0.8
105 inote = cpsmidinn(p4)
106 kcps transeg inote, p3*0.3, 2, inote -rnd(8) , p3*0.3 , 2 , inote +rnd(9), p3*0.4, 2, inote-rnd(2)
107 iamp = (p5/127)/4
108 kctrl linseg 0, p3*0.80, iamp, p3*0.20, 0
109 amain oscil kctrl, kcps*semitone(kdtn), 1
110 aflat oscil kctrl, kcps - .25, 1
111 asharp oscil kctrl, kcps + .25, 1
112 asig = amain + asharp + aflat
113
114 ;LPF
115 asig butterlp asig, (p5)*10
116
117 ;Panning
118 kpan rspline 0,1,0.01,2
119 a1, a2 pan2 asig, kpan
120 outs a1, a2
121
122 gasendL = gasendL+a1
123 gasendR = gasendR+a2
124 endin
125
126
127 instr reverber
128 aL, aR reverbsc gasendL,gasendR,0.85,10000
129 outs aL, aR
130 clear gasendL, gasendR
131 endin
132
133 </CsInstruments>
134
135 <CsScore>
136 f 0 4000
137 </CsScore>
138 </CsoundSynthesizer>
139 <bsbPanel>
140 <label>Widgets</label>
141 <objectName/>
142 <x>100</x>
143 <y>100</y>
144 <width>320</width>
145 <height>240</height>
146 <visible>true</visible>
147 <uuid/>
148 <bgcolor mode="nobackground">
149 <r>255</r>
150 <g>255</g>
151 <b>255</b>
152 </bgcolor>
153 </bsbPanel>
154 <bsbPresets>
155 </bsbPresets>