Debian Codegraph @

src/Examples/CsoundQt/Synths/Waveform_Mix.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 --midi-key-cps=4 --midi-velocity-amp=5 -m128
4 </CsOptions>
5 <CsInstruments>
6 /*****WAVEFORM MIX*****/
7 ;example for CsoundQt
8 ;written by joachim heintz
9 ;feb 2010 / oct 2012
10
11 sr = 44100
12 ksmps = 128
13 nchnls = 2
14 0dbfs = 1
15
16 massign 0, 2; assigns all incoming MIDI to instr 2
17
18 opcode SinesToSSTI, i, pooo
19 ;produces the waveforms saw (iwf=1, which is also the default), square (iwf=2), triangle (3), impulse (4) by the addition of inparts sinusoides (default = 10) and returns the result in a function table of itabsiz length (must be a power-of-2 or a power-of-2 plus 1, the default is 1024 points) with number ifno (default = 0 which means the number is given automatically)
20 iwf, inparts, itabsiz, ifno xin
21 inparts = (inparts == 0 ? 10 : inparts)
22 itabsiz = (itabsiz == 0 ? 1024 : itabsiz)
23 iftemp ftgen 0, 0, -(inparts * 3), -2, 0;temp ftab for writing the str-pna-phas vals
24 indx = 1
25 loop:
26 if iwf == 1 then ; saw = 1, -1/2, 1/3, -1/4, ... as strength of partials
27 tabw_i 1/(indx % 2 == 0 ? -indx : indx), (indx-1)*3, iftemp; writes strength of partial
28 tabw_i indx, (indx-1)*3+1, iftemp; writes partial number
29 elseif iwf == 2 then ; square = 1, 1/3, 1/5, ... for odd partials
30 tabw_i 1/(indx*2-1), (indx-1)*3, iftemp; writes strength of partial
31 tabw_i indx*2-1, (indx-1)*3+1, iftemp; writes partial number
32 elseif iwf == 3 then ; triangle = 1, -1/9, 1/25, -1/49, 1/81, ... for odd partials
33 ieven = indx % 2; 0 = even index, 1 = odd index
34 istr = (ieven == 0 ? -1/(indx*2-1)^2 : 1/(indx*2-1)^2); results in 1, -1/9, 1/25, ...
35 tabw_i istr, (indx-1)*3, iftemp; writes strength of partial
36 tabw_i indx*2-1, (indx-1)*3+1, iftemp; writes partial number
37 elseif iwf == 4 then ; impulse = 1, 1, 1, ... for all partials
38 tabw_i 1, (indx-1)*3, iftemp; writes strength of partial (always 1)
39 tabw_i indx, (indx-1)*3+1, iftemp; writes partial number
40 endif
41
42 loop_le indx, 1, inparts, loop
43
44 iftout ftgen ifno, 0, itabsiz, 34, iftemp, inparts, 1; write table with GEN34
45 ftfree iftemp, 0; remove iftemp
46 xout iftout
47 endop
48
49 opcode ShowLED_a, 0, Sakkk
50 ;Shows an audio signal in an outvalue channel. You can choose to show the value in dB or in raw amplitudes.
51 ;;Input:
52 ;Soutchan: string with the name of the outvalue channel
53 ;asig: audio signal which is to displayed
54 ;kdispfreq: refresh frequency (Hz)
55 ;kdb: 1 = show in dB, 0 = show in raw amplitudes (both in the range 0-1)
56 ;kdbrange: if idb=1: how many db-steps are shown (e.g. if 36 you will not see anything from a signal below -36 dB)
57 Soutchan, asig, kdispfreq, kdb, kdbrange xin
58 kdispval max_k asig, kdispfreq, 1
59 if kdb != 0 then
60 kdb = dbfsamp(kdispval)
61 kval = (kdbrange + kdb) / kdbrange
62 else
63 kval = kdispval
64 endif
65 outvalue Soutchan, kval
66 endop
67
68 opcode ShowOver_a, 0, Sakk
69 ;Shows if the incoming audio signal was more than 1 and stays there for some time
70 ;;Input:
71 ;Soutchan: string with the name of the outvalue channel
72 ;asig: audio signal which is to displayed
73 ;kdispfreq: refresh frequency (Hz)
74 ;khold: time in seconds to "hold the red light"
75 Soutchan, asig, kdispfreq, khold xin
76 kon init 0
77 ktim times
78 kstart init 0
79 kend init 0
80 khold = (khold < .01 ? .01 : khold); avoiding too short hold times
81 kmax max_k asig, kdispfreq, 1
82 if kon == 0 && kmax > 1 then
83 kstart = ktim
84 kend = kstart + khold
85 outvalue Soutchan, kmax
86 kon = 1
87 endif
88 if kon == 1 && ktim > kend then
89 outvalue Soutchan, 0
90 kon = 0
91 endif
92 endop
93
94
95 instr 1;;RECEIVE GUI INPUT AND GENERATE WAVEFORMS
96 iftlen = 4097; length of a function table with the shape of a waveform
97 ;GENERATE SINE WAVEFORM
98 giftsin ftgen 1, 0, iftlen, 10, 1
99 ;RECEIVE NUMBER OF PARTIALS FOR SAW, SQUARE, TRIANGLE AN IMPULSE
100 knp_saw invalue "np_saw"
101 knp_squ invalue "np_squ"
102 knp_tri invalue "np_tri"
103 knp_imp invalue "np_imp"
104
105 ;LOOK IF AN OF THIS VALUES HAS CHANGED
106 knewsaw changed knp_saw
107 knewsqu changed knp_squ
108 knewtri changed knp_tri
109 knewimp changed knp_imp
110
111 ;IF YES GO AGAIN TO THE "new" BLOCK AND RECALCULATE THE WAVEFORMS
112 if knewsaw == 1 then
113 reinit newsaw
114 endif
115 if knewsqu == 1 then
116 reinit newsqu
117 endif
118 if knewtri == 1 then
119 reinit newtri
120 endif
121 if knewimp == 1 then
122 reinit newimp
123 endif
124 ;CALCULATION OF SAW, SQUARE, TRIANGLE AN IMPULSE ACCORDING TO THE DESIRED NUMBER OF PARTIALS
125 newsaw:
126 inp_saw = i(knp_saw)
127 giftsaw SinesToSSTI 1, inp_saw, iftlen, 2
128 event_i "i", "ShowTables", 0, 1
129 rireturn
130 newsqu:
131 inp_squ = i(knp_squ)
132 giftsqu SinesToSSTI 2, inp_squ, iftlen, 3
133 event_i "i", "ShowTables", 0, 1
134 rireturn
135 newtri:
136 inp_tri = i(knp_tri)
137 gifttri SinesToSSTI 3, inp_tri, iftlen, 4
138 event_i "i", "ShowTables", 0, 1
139 rireturn
140 newimp:
141 inp_imp = i(knp_imp)
142 giftimp SinesToSSTI 4, inp_imp, iftlen, 5
143 event_i "i", "ShowTables", 0, 1
144 rireturn
145
146 ;RECEIVE RELATIVE AMPLITUDES, AND MASTER VOLUME FROM THE GUI
147 gkamp_sin invalue "amp_sin"
148 gkamp_saw invalue "amp_saw"
149 gkamp_squ invalue "amp_squ"
150 gkamp_tri invalue "amp_tri"
151 gkamp_imp invalue "amp_imp"
152 gk_vol invalue "vol"; master volume
153 ;SMOOTH AMPLTUDE CHANGES
154 gkamp_sin port gkamp_sin, .1
155 gkamp_saw port gkamp_saw, .1
156 gkamp_squ port gkamp_squ, .1
157 gkamp_tri port gkamp_tri, .1
158 gkamp_imp port gkamp_imp, .1
159 gk_vol port gk_vol, .1
160 endin
161
162 instr 2;;PLAY ONE NOTE
163 ;GENERATE THE FIVE AUDIO SIGNALS
164 asin poscil p5, p4, giftsin
165 asaw poscil p5, p4, giftsaw
166 asqu poscil p5, p4, giftsqu
167 atri poscil p5, p4, gifttri
168 aimp poscil p5, p4, giftimp
169 ;MIX THEM, APPLY A SIMPLE ENVELOPE AND SEND THE MIX OUT
170 amix sum asin*gkamp_sin, asaw*gkamp_saw, asqu*gkamp_squ, atri*gkamp_tri, aimp*gkamp_imp
171 kenv linsegr 0, .1, 1, p3-.1, 1, .1, 0; simple envelope
172 aenv = amix*kenv*gk_vol; apply alo master volume
173 outs aenv, aenv
174 endin
175
176 instr 3; SHOW THE SUM OF ALL SINGLE NOTES TO SEE CLIPPING
177 aL,aR monitor
178 kTrigDisp metro 10
179 ShowLED_a "out", aL, kTrigDisp, 1, 50
180 ShowOver_a "outover", aL, kTrigDisp, 1
181 endin
182
183 instr ShowTables
184 outvalue "sine", -1
185 outvalue "saw", -2
186 outvalue "square", -3
187 outvalue "triangle", -4
188 outvalue "impulse", -5
189 turnoff
190 endin
191
192 </CsInstruments>
193 <CsScore>
194 i 1 0 36000; play 10 hours
195 i 3 0 36000
196 e
197 </CsScore>
198 </CsoundSynthesizer>
199
200
201
202 <bsbPanel>
203 <label>Widgets</label>
204 <objectName/>
205 <x>67</x>
206 <y>45</y>
207 <width>98</width>
208 <height>28</height>
209 <visible>true</visible>
210 <uuid/>
211 <bgcolor mode="background">
212 <r>170</r>
213 <g>170</g>
214 <b>127</b>
215 </bgcolor>
216 <bsbObject version="2" type="BSBLabel">
217 <objectName/>
218 <x>34</x>
219 <y>265</y>
220 <width>1028</width>
221 <height>44</height>
222 <uuid>{c78fe040-5e65-420d-b2e9-6a5a1c246a82}</uuid>
223 <visible>true</visible>
224 <midichan>0</midichan>
225 <midicc>-3</midicc>
226 <description/>
227 <label/>
228 <alignment>left</alignment>
229 <valignment>top</valignment>
230 <font>Lucida Grande</font>
231 <fontsize>14</fontsize>
232 <precision>3</precision>
233 <color>
234 <r>0</r>
235 <g>0</g>
236 <b>0</b>
237 </color>
238 <bgcolor mode="nobackground">
239 <r>255</r>
240 <g>255</g>
241 <b>255</b>
242 </bgcolor>
243 <bordermode>border</bordermode>
244 <borderradius>1</borderradius>
245 <borderwidth>1</borderwidth>
246 </bsbObject>
247 <bsbObject version="2" type="BSBLabel">
248 <objectName/>
249 <x>73</x>
250 <y>116</y>
251 <width>91</width>
252 <height>35</height>
253 <uuid>{88e79c48-0673-477d-a115-f7d04204ceed}</uuid>
254 <visible>true</visible>
255 <midichan>0</midichan>
256 <midicc>-3</midicc>
257 <description/>
258 <label>Sine</label>
259 <alignment>center</alignment>
260 <valignment>top</valignment>
261 <font>Lucida Grande</font>
262 <fontsize>18</fontsize>
263 <precision>3</precision>
264 <color>
265 <r>0</r>
266 <g>0</g>
267 <b>0</b>
268 </color>
269 <bgcolor mode="nobackground">
270 <r>255</r>
271 <g>255</g>
272 <b>255</b>
273 </bgcolor>
274 <bordermode>noborder</bordermode>
275 <borderradius>1</borderradius>
276 <borderwidth>0</borderwidth>
277 </bsbObject>
278 <bsbObject version="2" type="BSBGraph">
279 <objectName>sine</objectName>
280 <x>35</x>
281 <y>161</y>
282 <width>178</width>
283 <height>96</height>
284 <uuid>{68005a17-b635-4078-be03-673ffa62bade}</uuid>
285 <visible>true</visible>
286 <midichan>0</midichan>
287 <midicc>-3</midicc>
288 <description/>
289 <value>-1</value>
290 <objectName2/>
291 <zoomx>1.00000000</zoomx>
292 <zoomy>1.00000000</zoomy>
293 <dispx>1.00000000</dispx>
294 <dispy>1.00000000</dispy>
295 <modex>auto</modex>
296 <modey>auto</modey>
297 <showSelector>true</showSelector>
298 <showGrid>true</showGrid>
299 <showTableInfo>true</showTableInfo>
300 <showScrollbars>true</showScrollbars>
301 <enableTables>true</enableTables>
302 <enableDisplays>true</enableDisplays>
303 <all>true</all>
304 </bsbObject>
305 <bsbObject version="2" type="BSBLabel">
306 <objectName/>
307 <x>290</x>
308 <y>116</y>
309 <width>91</width>
310 <height>35</height>
311 <uuid>{91e8697e-5aaf-48d2-a95f-defaadd72ba2}</uuid>
312 <visible>true</visible>
313 <midichan>0</midichan>
314 <midicc>-3</midicc>
315 <description/>
316 <label>Saw</label>
317 <alignment>center</alignment>
318 <valignment>top</valignment>
319 <font>Lucida Grande</font>
320 <fontsize>18</fontsize>
321 <precision>3</precision>
322 <color>
323 <r>0</r>
324 <g>0</g>
325 <b>0</b>
326 </color>
327 <bgcolor mode="nobackground">
328 <r>255</r>
329 <g>255</g>
330 <b>255</b>
331 </bgcolor>
332 <bordermode>noborder</bordermode>
333 <borderradius>1</borderradius>
334 <borderwidth>0</borderwidth>
335 </bsbObject>
336 <bsbObject version="2" type="BSBGraph">
337 <objectName>saw</objectName>
338 <x>252</x>
339 <y>161</y>
340 <width>178</width>
341 <height>96</height>
342 <uuid>{3140cb8b-1f05-4840-8595-32029e2eca6c}</uuid>
343 <visible>true</visible>
344 <midichan>0</midichan>
345 <midicc>-3</midicc>
346 <description/>
347 <value>-2</value>
348 <objectName2/>
349 <zoomx>1.00000000</zoomx>
350 <zoomy>1.00000000</zoomy>
351 <dispx>1.00000000</dispx>
352 <dispy>1.00000000</dispy>
353 <modex>auto</modex>
354 <modey>auto</modey>
355 <showSelector>true</showSelector>
356 <showGrid>true</showGrid>
357 <showTableInfo>true</showTableInfo>
358 <showScrollbars>true</showScrollbars>
359 <enableTables>true</enableTables>
360 <enableDisplays>true</enableDisplays>
361 <all>true</all>
362 </bsbObject>
363 <bsbObject version="2" type="BSBLabel">
364 <objectName/>
365 <x>509</x>
366 <y>115</y>
367 <width>91</width>
368 <height>35</height>
369 <uuid>{56cf2d07-56f6-49fe-abc7-3ce66f6b2a83}</uuid>
370 <visible>true</visible>
371 <midichan>0</midichan>
372 <midicc>-3</midicc>
373 <description/>
374 <label>Square</label>
375 <alignment>center</alignment>
376 <valignment>top</valignment>
377 <font>Lucida Grande</font>
378 <fontsize>18</fontsize>
379 <precision>3</precision>
380 <color>
381 <r>0</r>
382 <g>0</g>
383 <b>0</b>
384 </color>
385 <bgcolor mode="nobackground">
386 <r>255</r>
387 <g>255</g>
388 <b>255</b>
389 </bgcolor>
390 <bordermode>noborder</bordermode>
391 <borderradius>1</borderradius>
392 <borderwidth>0</borderwidth>
393 </bsbObject>
394 <bsbObject version="2" type="BSBGraph">
395 <objectName>square</objectName>
396 <x>471</x>
397 <y>160</y>
398 <width>178</width>
399 <height>96</height>
400 <uuid>{60aff4f8-815b-4521-b4ae-2b319cb36061}</uuid>
401 <visible>true</visible>
402 <midichan>0</midichan>
403 <midicc>-3</midicc>
404 <description/>
405 <value>-3</value>
406 <objectName2/>
407 <zoomx>1.00000000</zoomx>
408 <zoomy>1.00000000</zoomy>
409 <dispx>1.00000000</dispx>
410 <dispy>1.00000000</dispy>
411 <modex>auto</modex>
412 <modey>auto</modey>
413 <showSelector>true</showSelector>
414 <showGrid>true</showGrid>
415 <showTableInfo>true</showTableInfo>
416 <showScrollbars>true</showScrollbars>
417 <enableTables>true</enableTables>
418 <enableDisplays>true</enableDisplays>
419 <all>true</all>
420 </bsbObject>
421 <bsbObject version="2" type="BSBLabel">
422 <objectName/>
423 <x>713</x>
424 <y>115</y>
425 <width>91</width>
426 <height>35</height>
427 <uuid>{e2f82f20-56ac-44a8-b4cc-45cffd649263}</uuid>
428 <visible>true</visible>
429 <midichan>0</midichan>
430 <midicc>-3</midicc>
431 <description/>
432 <label>Triangle</label>
433 <alignment>center</alignment>
434 <valignment>top</valignment>
435 <font>Lucida Grande</font>
436 <fontsize>18</fontsize>
437 <precision>3</precision>
438 <color>
439 <r>0</r>
440 <g>0</g>
441 <b>0</b>
442 </color>
443 <bgcolor mode="nobackground">
444 <r>255</r>
445 <g>255</g>
446 <b>255</b>
447 </bgcolor>
448 <bordermode>noborder</bordermode>
449 <borderradius>1</borderradius>
450 <borderwidth>0</borderwidth>
451 </bsbObject>
452 <bsbObject version="2" type="BSBGraph">
453 <objectName>triangle</objectName>
454 <x>675</x>
455 <y>160</y>
456 <width>178</width>
457 <height>96</height>
458 <uuid>{8f679e7c-bf7c-4f0d-b94a-8bf64810686d}</uuid>
459 <visible>true</visible>
460 <midichan>0</midichan>
461 <midicc>-3</midicc>
462 <description/>
463 <value>-4</value>
464 <objectName2/>
465 <zoomx>1.00000000</zoomx>
466 <zoomy>1.00000000</zoomy>
467 <dispx>1.00000000</dispx>
468 <dispy>1.00000000</dispy>
469 <modex>auto</modex>
470 <modey>auto</modey>
471 <showSelector>true</showSelector>
472 <showGrid>true</showGrid>
473 <showTableInfo>true</showTableInfo>
474 <showScrollbars>true</showScrollbars>
475 <enableTables>true</enableTables>
476 <enableDisplays>true</enableDisplays>
477 <all>true</all>
478 </bsbObject>
479 <bsbObject version="2" type="BSBLabel">
480 <objectName/>
481 <x>922</x>
482 <y>114</y>
483 <width>91</width>
484 <height>35</height>
485 <uuid>{1daab3c6-caf8-4eaa-91fe-870e8e734f92}</uuid>
486 <visible>true</visible>
487 <midichan>0</midichan>
488 <midicc>-3</midicc>
489 <description/>
490 <label>Impulse</label>
491 <alignment>center</alignment>
492 <valignment>top</valignment>
493 <font>Lucida Grande</font>
494 <fontsize>18</fontsize>
495 <precision>3</precision>
496 <color>
497 <r>0</r>
498 <g>0</g>
499 <b>0</b>
500 </color>
501 <bgcolor mode="nobackground">
502 <r>255</r>
503 <g>255</g>
504 <b>255</b>
505 </bgcolor>
506 <bordermode>noborder</bordermode>
507 <borderradius>1</borderradius>
508 <borderwidth>0</borderwidth>
509 </bsbObject>
510 <bsbObject version="2" type="BSBGraph">
511 <objectName>impulse</objectName>
512 <x>884</x>
513 <y>159</y>
514 <width>178</width>
515 <height>96</height>
516 <uuid>{32dc8bf3-b96c-49a8-8170-a598ba708d3d}</uuid>
517 <visible>true</visible>
518 <midichan>0</midichan>
519 <midicc>-3</midicc>
520 <description/>
521 <value>-5</value>
522 <objectName2/>
523 <zoomx>1.00000000</zoomx>
524 <zoomy>1.00000000</zoomy>
525 <dispx>1.00000000</dispx>
526 <dispy>1.00000000</dispy>
527 <modex>auto</modex>
528 <modey>auto</modey>
529 <showSelector>true</showSelector>
530 <showGrid>true</showGrid>
531 <showTableInfo>true</showTableInfo>
532 <showScrollbars>true</showScrollbars>
533 <enableTables>true</enableTables>
534 <enableDisplays>true</enableDisplays>
535 <all>true</all>
536 </bsbObject>
537 <bsbObject version="2" type="BSBSpinBox">
538 <objectName>np_saw</objectName>
539 <x>314</x>
540 <y>272</y>
541 <width>59</width>
542 <height>28</height>
543 <uuid>{ca28f6b6-0abe-49d3-8eda-2c18152c10da}</uuid>
544 <visible>true</visible>
545 <midichan>0</midichan>
546 <midicc>0</midicc>
547 <description/>
548 <alignment>right</alignment>
549 <font>Noto Sans</font>
550 <fontsize>10</fontsize>
551 <color>
552 <r>0</r>
553 <g>0</g>
554 <b>0</b>
555 </color>
556 <bgcolor mode="background">
557 <r>255</r>
558 <g>255</g>
559 <b>255</b>
560 </bgcolor>
561 <resolution>1.00000000</resolution>
562 <minimum>-1e+12</minimum>
563 <maximum>1e+12</maximum>
564 <randomizable group="0">false</randomizable>
565 <value>4</value>
566 </bsbObject>
567 <bsbObject version="2" type="BSBSpinBox">
568 <objectName>np_squ</objectName>
569 <x>533</x>
570 <y>271</y>
571 <width>59</width>
572 <height>28</height>
573 <uuid>{1c5e78fb-58f0-44c9-b827-d979c4f2a0fa}</uuid>
574 <visible>true</visible>
575 <midichan>0</midichan>
576 <midicc>0</midicc>
577 <description/>
578 <alignment>right</alignment>
579 <font>Noto Sans</font>
580 <fontsize>10</fontsize>
581 <color>
582 <r>0</r>
583 <g>0</g>
584 <b>0</b>
585 </color>
586 <bgcolor mode="background">
587 <r>255</r>
588 <g>255</g>
589 <b>255</b>
590 </bgcolor>
591 <resolution>1.00000000</resolution>
592 <minimum>-1e+12</minimum>
593 <maximum>1e+12</maximum>
594 <randomizable group="0">false</randomizable>
595 <value>4</value>
596 </bsbObject>
597 <bsbObject version="2" type="BSBSpinBox">
598 <objectName>np_tri</objectName>
599 <x>740</x>
600 <y>272</y>
601 <width>59</width>
602 <height>28</height>
603 <uuid>{07e0476d-82a2-43f1-b9e7-78fc4839c681}</uuid>
604 <visible>true</visible>
605 <midichan>0</midichan>
606 <midicc>0</midicc>
607 <description/>
608 <alignment>right</alignment>
609 <font>Noto Sans</font>
610 <fontsize>10</fontsize>
611 <color>
612 <r>0</r>
613 <g>0</g>
614 <b>0</b>
615 </color>
616 <bgcolor mode="background">
617 <r>255</r>
618 <g>255</g>
619 <b>255</b>
620 </bgcolor>
621 <resolution>1.00000000</resolution>
622 <minimum>-1e+12</minimum>
623 <maximum>1e+12</maximum>
624 <randomizable group="0">false</randomizable>
625 <value>4</value>
626 </bsbObject>
627 <bsbObject version="2" type="BSBSpinBox">
628 <objectName>np_imp</objectName>
629 <x>949</x>
630 <y>272</y>
631 <width>59</width>
632 <height>28</height>
633 <uuid>{792834f1-858e-4c59-8b6b-6098fdb9a549}</uuid>
634 <visible>true</visible>
635 <midichan>0</midichan>
636 <midicc>0</midicc>
637 <description/>
638 <alignment>right</alignment>
639 <font>Noto Sans</font>
640 <fontsize>10</fontsize>
641 <color>
642 <r>0</r>
643 <g>0</g>
644 <b>0</b>
645 </color>
646 <bgcolor mode="background">
647 <r>255</r>
648 <g>255</g>
649 <b>255</b>
650 </bgcolor>
651 <resolution>1.00000000</resolution>
652 <minimum>-1e+12</minimum>
653 <maximum>1e+12</maximum>
654 <randomizable group="0">false</randomizable>
655 <value>4</value>
656 </bsbObject>
657 <bsbObject version="2" type="BSBScope">
658 <objectName/>
659 <x>26</x>
660 <y>407</y>
661 <width>766</width>
662 <height>165</height>
663 <uuid>{d218dd29-950b-46e9-9fa4-dbe79b43364c}</uuid>
664 <visible>true</visible>
665 <midichan>0</midichan>
666 <midicc>-3</midicc>
667 <description/>
668 <value>-1.00000000</value>
669 <type>scope</type>
670 <zoomx>1.00000000</zoomx>
671 <zoomy>1.00000000</zoomy>
672 <dispx>1.00000000</dispx>
673 <dispy>1.00000000</dispy>
674 <mode>0.00000000</mode>
675 <triggermode>NoTrigger</triggermode>
676 </bsbObject>
677 <bsbObject version="2" type="BSBController">
678 <objectName>hor21</objectName>
679 <x>824</x>
680 <y>405</y>
681 <width>31</width>
682 <height>166</height>
683 <uuid>{529f7ef1-188b-4816-a742-a00eb9eb314b}</uuid>
684 <visible>true</visible>
685 <midichan>0</midichan>
686 <midicc>-3</midicc>
687 <description/>
688 <objectName2>amp_sin</objectName2>
689 <xMin>0.00000000</xMin>
690 <xMax>1.00000000</xMax>
691 <yMin>0.00000000</yMin>
692 <yMax>1.00000000</yMax>
693 <xValue>0.32258100</xValue>
694 <yValue>0.47590361</yValue>
695 <type>fill</type>
696 <pointsize>1</pointsize>
697 <fadeSpeed>0.00000000</fadeSpeed>
698 <mouseControl act="press">jump</mouseControl>
699 <bordermode>noborder</bordermode>
700 <borderColor>#00FF00</borderColor>
701 <color>
702 <r>0</r>
703 <g>234</g>
704 <b>0</b>
705 </color>
706 <randomizable mode="both" group="0">false</randomizable>
707 <bgcolor>
708 <r>0</r>
709 <g>0</g>
710 <b>0</b>
711 </bgcolor>
712 <bgcolormode>true</bgcolormode>
713 </bsbObject>
714 <bsbObject version="2" type="BSBController">
715 <objectName>hor21</objectName>
716 <x>855</x>
717 <y>405</y>
718 <width>31</width>
719 <height>166</height>
720 <uuid>{001606e5-a61c-4861-8d9b-8f2245e92778}</uuid>
721 <visible>true</visible>
722 <midichan>0</midichan>
723 <midicc>-3</midicc>
724 <description/>
725 <objectName2>amp_saw</objectName2>
726 <xMin>0.00000000</xMin>
727 <xMax>1.00000000</xMax>
728 <yMin>0.00000000</yMin>
729 <yMax>1.00000000</yMax>
730 <xValue>0.32258100</xValue>
731 <yValue>0.37349398</yValue>
732 <type>fill</type>
733 <pointsize>1</pointsize>
734 <fadeSpeed>0.00000000</fadeSpeed>
735 <mouseControl act="press">jump</mouseControl>
736 <bordermode>noborder</bordermode>
737 <borderColor>#00FF00</borderColor>
738 <color>
739 <r>0</r>
740 <g>234</g>
741 <b>0</b>
742 </color>
743 <randomizable mode="both" group="0">false</randomizable>
744 <bgcolor>
745 <r>0</r>
746 <g>0</g>
747 <b>0</b>
748 </bgcolor>
749 <bgcolormode>true</bgcolormode>
750 </bsbObject>
751 <bsbObject version="2" type="BSBController">
752 <objectName>hor21</objectName>
753 <x>886</x>
754 <y>405</y>
755 <width>31</width>
756 <height>166</height>
757 <uuid>{8df519d9-fceb-4bee-bab6-e8920dab3e9c}</uuid>
758 <visible>true</visible>
759 <midichan>0</midichan>
760 <midicc>-3</midicc>
761 <description/>
762 <objectName2>amp_squ</objectName2>
763 <xMin>0.00000000</xMin>
764 <xMax>1.00000000</xMax>
765 <yMin>0.00000000</yMin>
766 <yMax>1.00000000</yMax>
767 <xValue>0.32258100</xValue>
768 <yValue>0.26506024</yValue>
769 <type>fill</type>
770 <pointsize>1</pointsize>
771 <fadeSpeed>0.00000000</fadeSpeed>
772 <mouseControl act="press">jump</mouseControl>
773 <bordermode>noborder</bordermode>
774 <borderColor>#00FF00</borderColor>
775 <color>
776 <r>0</r>
777 <g>234</g>
778 <b>0</b>
779 </color>
780 <randomizable mode="both" group="0">false</randomizable>
781 <bgcolor>
782 <r>0</r>
783 <g>0</g>
784 <b>0</b>
785 </bgcolor>
786 <bgcolormode>true</bgcolormode>
787 </bsbObject>
788 <bsbObject version="2" type="BSBController">
789 <objectName>hor21</objectName>
790 <x>917</x>
791 <y>405</y>
792 <width>31</width>
793 <height>166</height>
794 <uuid>{45360760-17bc-4a53-904b-ea9039ce6540}</uuid>
795 <visible>true</visible>
796 <midichan>0</midichan>
797 <midicc>-3</midicc>
798 <description/>
799 <objectName2>amp_tri</objectName2>
800 <xMin>0.00000000</xMin>
801 <xMax>1.00000000</xMax>
802 <yMin>0.00000000</yMin>
803 <yMax>1.00000000</yMax>
804 <xValue>0.32258100</xValue>
805 <yValue>0.40963855</yValue>
806 <type>fill</type>
807 <pointsize>1</pointsize>
808 <fadeSpeed>0.00000000</fadeSpeed>
809 <mouseControl act="press">jump</mouseControl>
810 <bordermode>noborder</bordermode>
811 <borderColor>#00FF00</borderColor>
812 <color>
813 <r>0</r>
814 <g>234</g>
815 <b>0</b>
816 </color>
817 <randomizable mode="both" group="0">false</randomizable>
818 <bgcolor>
819 <r>0</r>
820 <g>0</g>
821 <b>0</b>
822 </bgcolor>
823 <bgcolormode>true</bgcolormode>
824 </bsbObject>
825 <bsbObject version="2" type="BSBController">
826 <objectName>hor21</objectName>
827 <x>947</x>
828 <y>405</y>
829 <width>31</width>
830 <height>166</height>
831 <uuid>{ec94c846-1373-4777-b0c6-74f7ce1c6855}</uuid>
832 <visible>true</visible>
833 <midichan>0</midichan>
834 <midicc>-3</midicc>
835 <description/>
836 <objectName2>amp_imp</objectName2>
837 <xMin>0.00000000</xMin>
838 <xMax>1.00000000</xMax>
839 <yMin>0.00000000</yMin>
840 <yMax>1.00000000</yMax>
841 <xValue>0.32258100</xValue>
842 <yValue>0.35542169</yValue>
843 <type>fill</type>
844 <pointsize>1</pointsize>
845 <fadeSpeed>0.00000000</fadeSpeed>
846 <mouseControl act="press">jump</mouseControl>
847 <bordermode>noborder</bordermode>
848 <borderColor>#00FF00</borderColor>
849 <color>
850 <r>0</r>
851 <g>234</g>
852 <b>0</b>
853 </color>
854 <randomizable mode="both" group="0">false</randomizable>
855 <bgcolor>
856 <r>0</r>
857 <g>0</g>
858 <b>0</b>
859 </bgcolor>
860 <bgcolormode>true</bgcolormode>
861 </bsbObject>
862 <bsbObject version="2" type="BSBLabel">
863 <objectName/>
864 <x>824</x>
865 <y>345</y>
866 <width>148</width>
867 <height>54</height>
868 <uuid>{30b21d15-4d8e-4a8a-b539-3c332d94cddb}</uuid>
869 <visible>true</visible>
870 <midichan>0</midichan>
871 <midicc>-3</midicc>
872 <description/>
873 <label>Relative Strength of the Five Waveforms</label>
874 <alignment>center</alignment>
875 <valignment>top</valignment>
876 <font>Lucida Grande</font>
877 <fontsize>14</fontsize>
878 <precision>3</precision>
879 <color>
880 <r>0</r>
881 <g>0</g>
882 <b>0</b>
883 </color>
884 <bgcolor mode="nobackground">
885 <r>255</r>
886 <g>255</g>
887 <b>255</b>
888 </bgcolor>
889 <bordermode>noborder</bordermode>
890 <borderradius>1</borderradius>
891 <borderwidth>0</borderwidth>
892 </bsbObject>
893 <bsbObject version="2" type="BSBVSlider">
894 <objectName>vol</objectName>
895 <x>1008</x>
896 <y>406</y>
897 <width>22</width>
898 <height>165</height>
899 <uuid>{0bd55494-42a9-46a4-b774-aaaa9267bd8b}</uuid>
900 <visible>true</visible>
901 <midichan>0</midichan>
902 <midicc>-3</midicc>
903 <description/>
904 <minimum>0.00000000</minimum>
905 <maximum>2.00000000</maximum>
906 <value>1.26060606</value>
907 <mode>lin</mode>
908 <mouseControl act="jump">continuous</mouseControl>
909 <resolution>-1.00000000</resolution>
910 <randomizable group="0">false</randomizable>
911 </bsbObject>
912 <bsbObject version="2" type="BSBController">
913 <objectName>out</objectName>
914 <x>1039</x>
915 <y>424</y>
916 <width>18</width>
917 <height>147</height>
918 <uuid>{adfe8e43-acf9-42b6-88ed-d02595ea2f7d}</uuid>
919 <visible>true</visible>
920 <midichan>0</midichan>
921 <midicc>0</midicc>
922 <description/>
923 <objectName2>out</objectName2>
924 <xMin>0.00000000</xMin>
925 <xMax>1.00000000</xMax>
926 <yMin>0.00000000</yMin>
927 <yMax>1.00000000</yMax>
928 <xValue>-inf</xValue>
929 <yValue>-inf</yValue>
930 <type>fill</type>
931 <pointsize>1</pointsize>
932 <fadeSpeed>0.00000000</fadeSpeed>
933 <mouseControl act="press">jump</mouseControl>
934 <bordermode>noborder</bordermode>
935 <borderColor>#00FF00</borderColor>
936 <color>
937 <r>0</r>
938 <g>234</g>
939 <b>0</b>
940 </color>
941 <randomizable mode="both" group="0">false</randomizable>
942 <bgcolor>
943 <r>0</r>
944 <g>0</g>
945 <b>0</b>
946 </bgcolor>
947 <bgcolormode>true</bgcolormode>
948 </bsbObject>
949 <bsbObject version="2" type="BSBController">
950 <objectName>outover</objectName>
951 <x>1039</x>
952 <y>406</y>
953 <width>18</width>
954 <height>23</height>
955 <uuid>{e4f880e1-6ed1-415f-bac9-bab6acafe0cf}</uuid>
956 <visible>true</visible>
957 <midichan>0</midichan>
958 <midicc>0</midicc>
959 <description/>
960 <objectName2>outover</objectName2>
961 <xMin>0.00000000</xMin>
962 <xMax>1.00000000</xMax>
963 <yMin>0.00000000</yMin>
964 <yMax>1.00000000</yMax>
965 <xValue>0.00000000</xValue>
966 <yValue>0.00000000</yValue>
967 <type>fill</type>
968 <pointsize>1</pointsize>
969 <fadeSpeed>0.00000000</fadeSpeed>
970 <mouseControl act="press">jump</mouseControl>
971 <bordermode>noborder</bordermode>
972 <borderColor>#00FF00</borderColor>
973 <color>
974 <r>196</r>
975 <g>14</g>
976 <b>12</b>
977 </color>
978 <randomizable mode="both" group="0">false</randomizable>
979 <bgcolor>
980 <r>0</r>
981 <g>0</g>
982 <b>0</b>
983 </bgcolor>
984 <bgcolormode>true</bgcolormode>
985 </bsbObject>
986 <bsbObject version="2" type="BSBLabel">
987 <objectName/>
988 <x>999</x>
989 <y>346</y>
990 <width>64</width>
991 <height>55</height>
992 <uuid>{844aa0e6-9920-48ca-98e9-0ea1a86a5053}</uuid>
993 <visible>true</visible>
994 <midichan>0</midichan>
995 <midicc>-3</midicc>
996 <description/>
997 <label>Master
998 Volume</label>
999 <alignment>center</alignment>
1000 <valignment>top</valignment>
1001 <font>Lucida Grande</font>
1002 <fontsize>14</fontsize>
1003 <precision>3</precision>
1004 <color>
1005 <r>0</r>
1006 <g>0</g>
1007 <b>0</b>
1008 </color>
1009 <bgcolor mode="nobackground">
1010 <r>255</r>
1011 <g>255</g>
1012 <b>255</b>
1013 </bgcolor>
1014 <bordermode>noborder</bordermode>
1015 <borderradius>1</borderradius>
1016 <borderwidth>0</borderwidth>
1017 </bsbObject>
1018 <bsbObject version="2" type="BSBLabel">
1019 <objectName/>
1020 <x>63</x>
1021 <y>368</y>
1022 <width>214</width>
1023 <height>33</height>
1024 <uuid>{4d4b0f09-79f1-4b34-a9ca-11c2330fb7ae}</uuid>
1025 <visible>true</visible>
1026 <midichan>0</midichan>
1027 <midicc>-3</midicc>
1028 <description/>
1029 <label>Scope Resulting Waveform</label>
1030 <alignment>center</alignment>
1031 <valignment>top</valignment>
1032 <font>Lucida Grande</font>
1033 <fontsize>14</fontsize>
1034 <precision>3</precision>
1035 <color>
1036 <r>0</r>
1037 <g>0</g>
1038 <b>0</b>
1039 </color>
1040 <bgcolor mode="nobackground">
1041 <r>255</r>
1042 <g>255</g>
1043 <b>255</b>
1044 </bgcolor>
1045 <bordermode>noborder</bordermode>
1046 <borderradius>1</borderradius>
1047 <borderwidth>0</borderwidth>
1048 </bsbObject>
1049 <bsbObject version="2" type="BSBButton">
1050 <objectName>_Play</objectName>
1051 <x>372</x>
1052 <y>363</y>
1053 <width>91</width>
1054 <height>27</height>
1055 <uuid>{56f09abb-7aea-4e8b-b0ad-277959bb0509}</uuid>
1056 <visible>true</visible>
1057 <midichan>0</midichan>
1058 <midicc>-3</midicc>
1059 <description/>
1060 <type>value</type>
1061 <pressedValue>1.00000000</pressedValue>
1062 <stringvalue/>
1063 <text>START</text>
1064 <image>/</image>
1065 <eventLine>i1 0 10</eventLine>
1066 <latch>false</latch>
1067 <momentaryMidiButton>false</momentaryMidiButton>
1068 <latched>false</latched>
1069 <fontsize>10</fontsize>
1070 </bsbObject>
1071 <bsbObject version="2" type="BSBButton">
1072 <objectName>_Stop</objectName>
1073 <x>486</x>
1074 <y>363</y>
1075 <width>91</width>
1076 <height>27</height>
1077 <uuid>{f614c0aa-47ce-4432-ae75-060ffcb50831}</uuid>
1078 <visible>true</visible>
1079 <midichan>0</midichan>
1080 <midicc>-3</midicc>
1081 <description/>
1082 <type>value</type>
1083 <pressedValue>1.00000000</pressedValue>
1084 <stringvalue/>
1085 <text>STOP</text>
1086 <image>/</image>
1087 <eventLine>i1 0 10</eventLine>
1088 <latch>false</latch>
1089 <momentaryMidiButton>false</momentaryMidiButton>
1090 <latched>false</latched>
1091 <fontsize>10</fontsize>
1092 </bsbObject>
1093 <bsbObject version="2" type="BSBLabel">
1094 <objectName/>
1095 <x>35</x>
1096 <y>273</y>
1097 <width>176</width>
1098 <height>29</height>
1099 <uuid>{a545b53f-b0fa-41b1-9ec1-779e5d7d29c5}</uuid>
1100 <visible>true</visible>
1101 <midichan>0</midichan>
1102 <midicc>-3</midicc>
1103 <description/>
1104 <label>Number of Harmonics:</label>
1105 <alignment>center</alignment>
1106 <valignment>top</valignment>
1107 <font>Lucida Grande</font>
1108 <fontsize>14</fontsize>
1109 <precision>3</precision>
1110 <color>
1111 <r>0</r>
1112 <g>0</g>
1113 <b>0</b>
1114 </color>
1115 <bgcolor mode="nobackground">
1116 <r>255</r>
1117 <g>255</g>
1118 <b>255</b>
1119 </bgcolor>
1120 <bordermode>noborder</bordermode>
1121 <borderradius>1</borderradius>
1122 <borderwidth>0</borderwidth>
1123 </bsbObject>
1124 <bsbObject version="2" type="BSBLabel">
1125 <objectName/>
1126 <x>91</x>
1127 <y>59</y>
1128 <width>903</width>
1129 <height>53</height>
1130 <uuid>{ecc85f21-bdeb-481a-b8d7-da7b9ac1a05b}</uuid>
1131 <visible>true</visible>
1132 <midichan>0</midichan>
1133 <midicc>-3</midicc>
1134 <description/>
1135 <label>Standard Waveforms are built here by superposition of harmonics. The higher the number of harmonics, the sharper the shape. You can change here in realtime the number of harmonics and the relative strength of the five shapes in the resulting mix.</label>
1136 <alignment>center</alignment>
1137 <valignment>top</valignment>
1138 <font>Lucida Grande</font>
1139 <fontsize>14</fontsize>
1140 <precision>3</precision>
1141 <color>
1142 <r>0</r>
1143 <g>0</g>
1144 <b>0</b>
1145 </color>
1146 <bgcolor mode="nobackground">
1147 <r>255</r>
1148 <g>255</g>
1149 <b>255</b>
1150 </bgcolor>
1151 <bordermode>noborder</bordermode>
1152 <borderradius>1</borderradius>
1153 <borderwidth>0</borderwidth>
1154 </bsbObject>
1155 <bsbObject version="2" type="BSBLabel">
1156 <objectName/>
1157 <x>190</x>
1158 <y>11</y>
1159 <width>712</width>
1160 <height>43</height>
1161 <uuid>{ca9a41af-9fb7-4c38-afab-561d2b5b88aa}</uuid>
1162 <visible>true</visible>
1163 <midichan>0</midichan>
1164 <midicc>-3</midicc>
1165 <description/>
1166 <label>Waveform Mix</label>
1167 <alignment>center</alignment>
1168 <valignment>top</valignment>
1169 <font>Lucida Grande</font>
1170 <fontsize>22</fontsize>
1171 <precision>3</precision>
1172 <color>
1173 <r>0</r>
1174 <g>0</g>
1175 <b>0</b>
1176 </color>
1177 <bgcolor mode="nobackground">
1178 <r>255</r>
1179 <g>255</g>
1180 <b>255</b>
1181 </bgcolor>
1182 <bordermode>noborder</bordermode>
1183 <borderradius>1</borderradius>
1184 <borderwidth>0</borderwidth>
1185 </bsbObject>
1186 <bsbObject version="2" type="BSBButton">
1187 <objectName/>
1188 <x>592</x>
1189 <y>363</y>
1190 <width>199</width>
1191 <height>28</height>
1192 <uuid>{fcd042ab-a450-40eb-a76c-b68af24c380d}</uuid>
1193 <visible>true</visible>
1194 <midichan>0</midichan>
1195 <midicc>-3</midicc>
1196 <description/>
1197 <type>event</type>
1198 <pressedValue>1.00000000</pressedValue>
1199 <stringvalue/>
1200 <text>MAKE AUDIO</text>
1201 <image>/</image>
1202 <eventLine>i2 0 3 440 0.2</eventLine>
1203 <latch>false</latch>
1204 <momentaryMidiButton>false</momentaryMidiButton>
1205 <latched>false</latched>
1206 <fontsize>10</fontsize>
1207 </bsbObject>
1208 </bsbPanel>
1209 <bsbPresets>
1210 </bsbPresets>
1211 <EventPanel name="" tempo="60.00000000" loop="8.00000000" x="543" y="318" width="614" height="322" visible="false" loopStart="0" loopEnd="0">i 1 0 3
1212
1213
1214
1215
1216
1217
1218
1219 </EventPanel>