Debian Codegraph @

src/Examples/CsoundQt/Miscellaneous/Rms.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 </CsOptions>
4 <CsInstruments>
5
6 sr = 44100
7 ksmps = 128
8 nchnls = 2
9 0dbfs = 1
10
11 instr 1
12 kfreq invalue "freq"
13
14 outvalue "freq", kfreq
15 ainput inch 1
16 krms rms ainput
17 outvalue "rms", krms
18
19 alow butlp ainput, kfreq
20 krmslow rms alow
21 outvalue "low", krmslow
22
23 ahi buthp ainput, kfreq
24 krmshi rms ahi
25 outvalue "hi", krmshi
26 endin
27
28 </CsInstruments>
29 <CsScore>
30 i 1 0 9600
31 e
32 </CsScore>
33 </CsoundSynthesizer>
34 <bsbPanel>
35 <label>Widgets</label>
36 <objectName/>
37 <x>624</x>
38 <y>230</y>
39 <width>313</width>
40 <height>218</height>
41 <visible>true</visible>
42 <uuid/>
43 <bgcolor mode="background">
44 <r>195</r>
45 <g>198</g>
46 <b>199</b>
47 </bgcolor>
48 <bsbObject version="2" type="BSBLabel">
49 <objectName>chann</objectName>
50 <x>134</x>
51 <y>20</y>
52 <width>140</width>
53 <height>100</height>
54 <uuid>{c67c31d2-9e30-4092-bb24-a1a8b40b7528}</uuid>
55 <visible>true</visible>
56 <midichan>0</midichan>
57 <midicc>-3</midicc>
58 <label>Rms values for the complete signal and for two separate parts of the spectrum. Use the knob to select crossover frequency</label>
59 <alignment>left</alignment>
60 <font>DejaVu Sans</font>
61 <fontsize>10</fontsize>
62 <precision>3</precision>
63 <color>
64 <r>0</r>
65 <g>0</g>
66 <b>0</b>
67 </color>
68 <bgcolor mode="nobackground">
69 <r>255</r>
70 <g>255</g>
71 <b>255</b>
72 </bgcolor>
73 <bordermode>noborder</bordermode>
74 <borderradius>1</borderradius>
75 <borderwidth>1</borderwidth>
76 </bsbObject>
77 <bsbObject version="2" type="BSBController">
78 <objectName/>
79 <x>39</x>
80 <y>20</y>
81 <width>30</width>
82 <height>150</height>
83 <uuid>{19ad6187-b142-45ce-98fd-835004f905cd}</uuid>
84 <visible>true</visible>
85 <midichan>0</midichan>
86 <midicc>-3</midicc>
87 <objectName2>rms</objectName2>
88 <xMin>0.00000000</xMin>
89 <xMax>1.00000000</xMax>
90 <yMin>0.00000000</yMin>
91 <yMax>1.00000000</yMax>
92 <xValue>0.00000000</xValue>
93 <yValue>0.00003200</yValue>
94 <type>fill</type>
95 <pointsize>1</pointsize>
96 <fadeSpeed>0.00000000</fadeSpeed>
97 <mouseControl act="press">jump</mouseControl>
98 <color>
99 <r>234</r>
100 <g>71</g>
101 <b>128</b>
102 </color>
103 <randomizable mode="both" group="0">false</randomizable>
104 <bgcolor>
105 <r>0</r>
106 <g>0</g>
107 <b>0</b>
108 </bgcolor>
109 </bsbObject>
110 <bsbObject version="2" type="BSBLabel">
111 <objectName/>
112 <x>39</x>
113 <y>170</y>
114 <width>40</width>
115 <height>20</height>
116 <uuid>{3ba5f2aa-74d1-474a-b335-3eedf90b8c6e}</uuid>
117 <visible>true</visible>
118 <midichan>0</midichan>
119 <midicc>-3</midicc>
120 <label>Rms</label>
121 <alignment>left</alignment>
122 <font>DejaVu Sans</font>
123 <fontsize>10</fontsize>
124 <precision>3</precision>
125 <color>
126 <r>0</r>
127 <g>0</g>
128 <b>0</b>
129 </color>
130 <bgcolor mode="nobackground">
131 <r>255</r>
132 <g>255</g>
133 <b>255</b>
134 </bgcolor>
135 <bordermode>noborder</bordermode>
136 <borderradius>1</borderradius>
137 <borderwidth>1</borderwidth>
138 </bsbObject>
139 <bsbObject version="2" type="BSBController">
140 <objectName/>
141 <x>79</x>
142 <y>20</y>
143 <width>15</width>
144 <height>150</height>
145 <uuid>{dabef942-d7a0-4f55-ad58-27c248892842}</uuid>
146 <visible>true</visible>
147 <midichan>0</midichan>
148 <midicc>-3</midicc>
149 <objectName2>low</objectName2>
150 <xMin>0.00000000</xMin>
151 <xMax>1.00000000</xMax>
152 <yMin>0.00000000</yMin>
153 <yMax>1.00000000</yMax>
154 <xValue>0.00000000</xValue>
155 <yValue>0.00001900</yValue>
156 <type>fill</type>
157 <pointsize>1</pointsize>
158 <fadeSpeed>0.00000000</fadeSpeed>
159 <mouseControl act="press">jump</mouseControl>
160 <color>
161 <r>170</r>
162 <g>85</g>
163 <b>255</b>
164 </color>
165 <randomizable mode="both" group="0">false</randomizable>
166 <bgcolor>
167 <r>0</r>
168 <g>0</g>
169 <b>0</b>
170 </bgcolor>
171 </bsbObject>
172 <bsbObject version="2" type="BSBController">
173 <objectName/>
174 <x>109</x>
175 <y>20</y>
176 <width>15</width>
177 <height>150</height>
178 <uuid>{a1e351b4-9225-48df-b2e0-4c305c5b5d3b}</uuid>
179 <visible>true</visible>
180 <midichan>0</midichan>
181 <midicc>-3</midicc>
182 <objectName2>hi</objectName2>
183 <xMin>0.00000000</xMin>
184 <xMax>1.00000000</xMax>
185 <yMin>0.00000000</yMin>
186 <yMax>1.00000000</yMax>
187 <xValue>0.00000000</xValue>
188 <yValue>0.00002600</yValue>
189 <type>fill</type>
190 <pointsize>1</pointsize>
191 <fadeSpeed>0.00000000</fadeSpeed>
192 <mouseControl act="press">jump</mouseControl>
193 <color>
194 <r>234</r>
195 <g>229</g>
196 <b>63</b>
197 </color>
198 <randomizable mode="both" group="0">false</randomizable>
199 <bgcolor>
200 <r>0</r>
201 <g>0</g>
202 <b>0</b>
203 </bgcolor>
204 </bsbObject>
205 <bsbObject version="2" type="BSBLabel">
206 <objectName/>
207 <x>79</x>
208 <y>170</y>
209 <width>25</width>
210 <height>20</height>
211 <uuid>{c26fc2d2-a713-4ece-b7c7-ee5251d46f78}</uuid>
212 <visible>true</visible>
213 <midichan>0</midichan>
214 <midicc>-3</midicc>
215 <label>Lo</label>
216 <alignment>left</alignment>
217 <font>DejaVu Sans</font>
218 <fontsize>10</fontsize>
219 <precision>3</precision>
220 <color>
221 <r>0</r>
222 <g>0</g>
223 <b>0</b>
224 </color>
225 <bgcolor mode="nobackground">
226 <r>255</r>
227 <g>255</g>
228 <b>255</b>
229 </bgcolor>
230 <bordermode>noborder</bordermode>
231 <borderradius>1</borderradius>
232 <borderwidth>1</borderwidth>
233 </bsbObject>
234 <bsbObject version="2" type="BSBLabel">
235 <objectName/>
236 <x>109</x>
237 <y>170</y>
238 <width>25</width>
239 <height>20</height>
240 <uuid>{d7b0a663-0979-4aaf-956b-6a947d25a3e1}</uuid>
241 <visible>true</visible>
242 <midichan>0</midichan>
243 <midicc>-3</midicc>
244 <label>Hi</label>
245 <alignment>left</alignment>
246 <font>DejaVu Sans</font>
247 <fontsize>10</fontsize>
248 <precision>3</precision>
249 <color>
250 <r>0</r>
251 <g>0</g>
252 <b>0</b>
253 </color>
254 <bgcolor mode="nobackground">
255 <r>255</r>
256 <g>255</g>
257 <b>255</b>
258 </bgcolor>
259 <bordermode>noborder</bordermode>
260 <borderradius>1</borderradius>
261 <borderwidth>1</borderwidth>
262 </bsbObject>
263 <bsbObject version="2" type="BSBKnob">
264 <objectName>freq</objectName>
265 <x>151</x>
266 <y>125</y>
267 <width>50</width>
268 <height>50</height>
269 <uuid>{0b3529e7-a1e7-4d37-8303-ff64b6e949e5}</uuid>
270 <visible>true</visible>
271 <midichan>0</midichan>
272 <midicc>-3</midicc>
273 <minimum>100.00000000</minimum>
274 <maximum>1000.00000000</maximum>
275 <value>600.00000000</value>
276 <mode>lin</mode>
277 <mouseControl act="jump">continuous</mouseControl>
278 <resolution>0.01000000</resolution>
279 <randomizable group="0">false</randomizable>
280 </bsbObject>
281 <bsbObject version="2" type="BSBLabel">
282 <objectName/>
283 <x>134</x>
284 <y>170</y>
285 <width>81</width>
286 <height>22</height>
287 <uuid>{9a777856-ad48-4915-a0a5-2650bf2f1e11}</uuid>
288 <visible>true</visible>
289 <midichan>0</midichan>
290 <midicc>-3</midicc>
291 <label>Crossover</label>
292 <alignment>left</alignment>
293 <font>DejaVu Sans</font>
294 <fontsize>10</fontsize>
295 <precision>3</precision>
296 <color>
297 <r>0</r>
298 <g>0</g>
299 <b>0</b>
300 </color>
301 <bgcolor mode="nobackground">
302 <r>255</r>
303 <g>255</g>
304 <b>255</b>
305 </bgcolor>
306 <bordermode>noborder</bordermode>
307 <borderradius>1</borderradius>
308 <borderwidth>1</borderwidth>
309 </bsbObject>
310 <bsbObject version="2" type="BSBDisplay">
311 <objectName>freq</objectName>
312 <x>207</x>
313 <y>136</y>
314 <width>70</width>
315 <height>26</height>
316 <uuid>{10aa0bfc-cc59-499e-9758-2f8eedff1a77}</uuid>
317 <visible>true</visible>
318 <midichan>0</midichan>
319 <midicc>-3</midicc>
320 <label>600.0000</label>
321 <alignment>left</alignment>
322 <font>Arial</font>
323 <fontsize>12</fontsize>
324 <precision>3</precision>
325 <color>
326 <r>0</r>
327 <g>0</g>
328 <b>0</b>
329 </color>
330 <bgcolor mode="background">
331 <r>255</r>
332 <g>255</g>
333 <b>255</b>
334 </bgcolor>
335 <bordermode>border</bordermode>
336 <borderradius>1</borderradius>
337 <borderwidth>1</borderwidth>
338 </bsbObject>
339 </bsbPanel>
340 <bsbPresets>
341 </bsbPresets>
342 <MacOptions>
343 Version: 3
344 Render: Real
345 Ask: Yes
346 Functions: ioObject
347 Listing: Window
348 WindowBounds: 624 230 313 218
349 CurrentView: io
350 IOViewEdit: On
351 Options: -b128 -A -s -m167 -R
352 </MacOptions>
353 <MacGUI>
354 ioView background {50115, 50886, 51143}
355 ioText {100, 5} {140, 100} label 0.000000 0.00100 "chann" left "DejaVu Sans" 10 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Rms values for the complete signal and for two separate parts of the spectrum. Use the knob to select crossover frequency
356 ioMeter {39, 20} {30, 150} {59904, 18176, 32768} "" 0.000000 "rms" 0.000032 fill 1 0 mouse
357 ioText {5, 155} {40, 20} label 0.000000 0.00100 "" left "DejaVu Sans" 10 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Rms
358 ioMeter {79, 20} {15, 150} {43520, 21760, 65280} "" 0.000000 "low" 0.000019 fill 1 0 mouse
359 ioMeter {109, 20} {15, 150} {59904, 58624, 16128} "" 0.000000 "hi" 0.000026 fill 1 0 mouse
360 ioText {45, 155} {25, 20} label 0.000000 0.00100 "" left "DejaVu Sans" 10 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Lo
361 ioText {75, 155} {25, 20} label 0.000000 0.00100 "" left "DejaVu Sans" 10 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Hi
362 ioKnob {151, 125} {50, 50} 1000.000000 100.000000 0.010000 600.000000 freq
363 ioText {100, 155} {60, 20} label 0.000000 0.00100 "" left "DejaVu Sans" 10 {0, 0, 0} {65280, 65280, 65280} nobackground noborder Crossover
364 ioText {160, 120} {80, 25} display 600.000000 0.00100 "freq" left "Arial" 12 {0, 0, 0} {65280, 65280, 65280} nobackground noborder 600.0000
365 </MacGUI>