Debian Codegraph @

src/Examples/McCurdy Collection/AdditiveSynthesis/HarmonicAdditiveSynthesis1.csd

raw
1 ; Written by Iain McCurdy, 2006
2 ; Modified for QuteCsound by René, September 2010
3 ; Tested on Ubuntu 10.04 with csound-double cvs August 2010 and QuteCsound svn rev 733
4
5 ;Notes on modifications from original csd:
6 ; Add table(s) for exp slider
7 ; Instrument 1 is activated by MIDI and by the GUI
8
9 ;my flags on Ubuntu: -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=alsa -Ma -m0 --midi-key-oct=4 --midi-velocity-amp=5
10 <CsoundSynthesizer>
11 <CsOptions>
12
13 </CsOptions>
14 <CsInstruments>
15 sr = 48000 ;SAMPLE RATE
16 ksmps = 64 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE
17 nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)
18 0dbfs = 1 ;MAXIMUM SOUND INTENSITY LEVEL REGARDLESS OF BIT DEPTH
19
20
21 gisine ftgen 0, 0, 4096, 10, 1 ;A SINE WAVE
22 giExp10000 ftgen 0, 0, 129, -25, 0, 20, 128, 10000 ;TABLE FOR EXP SLIDER
23
24
25 instr 10 ;GUI
26 ktrig metro 10
27 if (ktrig == 1) then
28 gkPartAmp1 invalue "PartAmp1"
29 gkPartAmp2 invalue "PartAmp2"
30 gkPartAmp3 invalue "PartAmp3"
31 gkPartAmp4 invalue "PartAmp4"
32 gkPartAmp5 invalue "PartAmp5"
33 gkPartAmp6 invalue "PartAmp6"
34 gkPartAmp7 invalue "PartAmp7"
35 gkPartAmp8 invalue "PartAmp8"
36 gkPartAmp9 invalue "PartAmp9"
37 gkPartAmp10 invalue "PartAmp10"
38 gkfund invalue "Fund_Freq"
39 gkfund tablei gkfund, giExp10000, 1
40 outvalue "Fund_Freq_Value", gkfund
41 gkamp invalue "Amplitude"
42 gkwarp invalue "Warp"
43 gkrnd invalue "Rnd"
44 endif
45 endin
46
47 instr 2 ;PARTIAL SPACINGS RANDOM FACTORS (ALWAYS ON)
48 irnd1 gauss 1 ;RANDOM FACTORS
49 irnd2 gauss 1 ;RANDOM FACTORS
50 irnd3 gauss 1 ;RANDOM FACTORS
51 irnd4 gauss 1 ;RANDOM FACTORS
52 irnd5 gauss 1 ;RANDOM FACTORS
53 irnd6 gauss 1 ;RANDOM FACTORS
54 irnd7 gauss 1 ;RANDOM FACTORS
55 irnd8 gauss 1 ;RANDOM FACTORS
56 irnd9 gauss 1 ;RANDOM FACTORS
57 irnd10 gauss 1 ;RANDOM FACTORS
58
59 gkrnd1 = 1+(irnd1*gkrnd)
60 gkrnd2 = 1+(irnd2*gkrnd)
61 gkrnd3 = 1+(irnd3*gkrnd)
62 gkrnd4 = 1+(irnd4*gkrnd)
63 gkrnd5 = 1+(irnd5*gkrnd)
64 gkrnd6 = 1+(irnd6*gkrnd)
65 gkrnd7 = 1+(irnd7*gkrnd)
66 gkrnd8 = 1+(irnd8*gkrnd)
67 gkrnd9 = 1+(irnd9*gkrnd)
68 gkrnd10 = 1+(irnd10*gkrnd)
69 endin
70
71 instr 1 ;SYNTHESIS INSTRUMENT
72 if p4!=0 then ;MIDI
73 ioct = p4 ;READ OCT VALUE FROM MIDI INPUT
74 iamp = p5 * 0.5 ;READ IN A NOTE VELOCITY VALUE FROM THE MIDI INPUT
75 kamp = iamp * gkamp ;SET kamp TO MIDI KEY VELOCITY MULTIPLIED BY SLIDER VALUE gkamp
76
77 ;PITCH BEND===========================================================================================================================================================
78 iSemitoneBendRange = 2 ;PITCH BEND RANGE IN SEMITONES (WILL BE DEFINED FURTHER LATER) - SUGGESTION - THIS COULD BE CONTROLLED BY A COUNTER
79 imin = 0 ;EQUILIBRIUM POSITION
80 imax = iSemitoneBendRange * .0833333 ;MAX PITCH DISPLACEMENT (IN oct FORMAT)
81 kbend pchbend imin, imax ;PITCH BEND VARIABLE (IN oct FORMAT)
82 kfund = cpsoct(ioct + kbend)
83 ;=====================================================================================================================================================================
84 else ;GUI
85 iporttime = 0.05 ;PORTAMENTO TIME VARIABLE
86 kporttime linseg 0,0.001,iporttime,1,iporttime ;CREATE A RAMPING UP FUNCTION TO REPRESENT PORTAMENTO TIME
87 kfund portk gkfund, kporttime ;APPLY PORTAMENTO SMOOTHING
88 kamp portk gkamp, kporttime ;APPLY PORTAMENTO SMOOTHING
89 endif
90
91 ;SEPARATE OSCILLATORS CREATE EACH OF THE PARTIALS. EACH PARTIAL FOLLOWS THE HARMONIC SERIES
92 ;OUTPUT OPCODE AMPLITUDE | FREQUENCY | FUNCTION_TABLE
93 apart1 oscili kamp*gkPartAmp1, kfund * gkrnd1, gisine ;FUNDEMENTAL
94 apart2 oscili kamp*gkPartAmp2, (kfund+(kfund*gkwarp)) * gkrnd2, gisine ;1ST HARMONIC
95 apart3 oscili kamp*gkPartAmp3, (kfund+(kfund*2*gkwarp)) * gkrnd3, gisine ;2ND HARMONIC
96 apart4 oscili kamp*gkPartAmp4, (kfund+(kfund*3*gkwarp)) * gkrnd4, gisine ;3RD HARMONIC
97 apart5 oscili kamp*gkPartAmp5, (kfund+(kfund*4*gkwarp)) * gkrnd5, gisine ;4TH HARMONIC
98 apart6 oscili kamp*gkPartAmp6, (kfund+(kfund*5*gkwarp)) * gkrnd6, gisine ;5TH HARMONIC
99 apart7 oscili kamp*gkPartAmp7, (kfund+(kfund*6*gkwarp)) * gkrnd7, gisine ;6TH HARMONIC
100 apart8 oscili kamp*gkPartAmp8, (kfund+(kfund*7*gkwarp)) * gkrnd8, gisine ;7TH HARMONIC
101 apart9 oscili kamp*gkPartAmp9, (kfund+(kfund*8*gkwarp)) * gkrnd9, gisine ;8TH HARMONIC
102 apart10 oscili kamp*gkPartAmp10, (kfund+(kfund*9*gkwarp)) * gkrnd10, gisine ;9TH HARMONIC
103
104 ;SUM THE 10 OSCILLATORS:
105 amix sum apart1,\
106 apart2,\
107 apart3,\
108 apart4,\
109 apart5,\
110 apart6,\
111 apart7,\
112 apart8,\
113 apart9,\
114 apart10
115 aenv linsegr 0,0.01,1,0.1,0 ;CREATE AN AMPLITUDE ENVELOPE WITH 'ANTI CLICK' ATTACK AND A RELEASE SEGMENT
116 outs amix*aenv, amix*aenv ;SEND MIXED SIGNAL MULTIPLIED BY THE AMPLITUDE ENVELOPE TO THE OUTPUTS
117 endin
118
119 instr 4 ;SET WARP SLIDER TO '1'
120 outvalue "Warp", 1
121 endin
122 </CsInstruments>
123 <CsScore>
124 i 2 0 3600 ;PARTIAL SPACINGS RANDOM FACTORS INSTRUMENTS PLAY A NOTE FOR 1 HOUR (AND KEEPS PERFORMANCE GOING)
125 i 10 0 3600 ;GUI
126 </CsScore>
127 </CsoundSynthesizer>
128
129
130 <bsbPanel>
131 <label>Widgets</label>
132 <objectName/>
133 <x>0</x>
134 <y>0</y>
135 <width>1014</width>
136 <height>432</height>
137 <visible>true</visible>
138 <uuid/>
139 <bgcolor mode="background">
140 <r>241</r>
141 <g>226</g>
142 <b>185</b>
143 </bgcolor>
144 <bsbObject version="2" type="BSBLabel">
145 <objectName/>
146 <x>2</x>
147 <y>2</y>
148 <width>600</width>
149 <height>430</height>
150 <uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid>
151 <visible>true</visible>
152 <midichan>0</midichan>
153 <midicc>0</midicc>
154 <description/>
155 <label>Additive Synthesis 1</label>
156 <alignment>center</alignment>
157 <valignment>top</valignment>
158 <font>Arial Black</font>
159 <fontsize>18</fontsize>
160 <precision>3</precision>
161 <color>
162 <r>0</r>
163 <g>0</g>
164 <b>0</b>
165 </color>
166 <bgcolor mode="background">
167 <r>211</r>
168 <g>211</g>
169 <b>211</b>
170 </bgcolor>
171 <bordermode>border</bordermode>
172 <borderradius>5</borderradius>
173 <borderwidth>2</borderwidth>
174 </bsbObject>
175 <bsbObject version="2" type="BSBController">
176 <objectName/>
177 <x>9</x>
178 <y>94</y>
179 <width>20</width>
180 <height>250</height>
181 <uuid>{a2478686-0cb1-4081-896c-03397bd19331}</uuid>
182 <visible>true</visible>
183 <midichan>0</midichan>
184 <midicc>-3</midicc>
185 <description/>
186 <objectName2>PartAmp1</objectName2>
187 <xMin>0.00000000</xMin>
188 <xMax>1.00000000</xMax>
189 <yMin>0.00000000</yMin>
190 <yMax>1.00000000</yMax>
191 <xValue>0.00000000</xValue>
192 <yValue>0.59600000</yValue>
193 <type>llif</type>
194 <pointsize>1</pointsize>
195 <fadeSpeed>0.00000000</fadeSpeed>
196 <mouseControl act="press">jump</mouseControl>
197 <bordermode>noborder</bordermode>
198 <borderColor>#00FF00</borderColor>
199 <color>
200 <r>208</r>
201 <g>208</g>
202 <b>208</b>
203 </color>
204 <randomizable mode="both" group="0">false</randomizable>
205 <bgcolor>
206 <r>0</r>
207 <g>0</g>
208 <b>0</b>
209 </bgcolor>
210 <bgcolormode>true</bgcolormode>
211 </bsbObject>
212 <bsbObject version="2" type="BSBLabel">
213 <objectName/>
214 <x>9</x>
215 <y>347</y>
216 <width>276</width>
217 <height>31</height>
218 <uuid>{ab0e7272-d733-4ebb-bb0e-5be83cf2d34d}</uuid>
219 <visible>true</visible>
220 <midichan>0</midichan>
221 <midicc>0</midicc>
222 <description/>
223 <label>1 2 3 4 5 6 7 8 9 10 </label>
224 <alignment>left</alignment>
225 <valignment>top</valignment>
226 <font>Arial</font>
227 <fontsize>10</fontsize>
228 <precision>3</precision>
229 <color>
230 <r>0</r>
231 <g>0</g>
232 <b>0</b>
233 </color>
234 <bgcolor mode="nobackground">
235 <r>255</r>
236 <g>255</g>
237 <b>255</b>
238 </bgcolor>
239 <bordermode>noborder</bordermode>
240 <borderradius>1</borderradius>
241 <borderwidth>0</borderwidth>
242 </bsbObject>
243 <bsbObject version="2" type="BSBController">
244 <objectName/>
245 <x>33</x>
246 <y>94</y>
247 <width>20</width>
248 <height>250</height>
249 <uuid>{fdb44389-5b7d-408b-86f5-c6817a697505}</uuid>
250 <visible>true</visible>
251 <midichan>0</midichan>
252 <midicc>-3</midicc>
253 <description/>
254 <objectName2>PartAmp2</objectName2>
255 <xMin>0.00000000</xMin>
256 <xMax>1.00000000</xMax>
257 <yMin>0.00000000</yMin>
258 <yMax>1.00000000</yMax>
259 <xValue>0.00000000</xValue>
260 <yValue>0.31200000</yValue>
261 <type>llif</type>
262 <pointsize>1</pointsize>
263 <fadeSpeed>0.00000000</fadeSpeed>
264 <mouseControl act="press">jump</mouseControl>
265 <bordermode>noborder</bordermode>
266 <borderColor>#00FF00</borderColor>
267 <color>
268 <r>208</r>
269 <g>208</g>
270 <b>208</b>
271 </color>
272 <randomizable mode="both" group="0">false</randomizable>
273 <bgcolor>
274 <r>0</r>
275 <g>0</g>
276 <b>0</b>
277 </bgcolor>
278 <bgcolormode>true</bgcolormode>
279 </bsbObject>
280 <bsbObject version="2" type="BSBController">
281 <objectName/>
282 <x>57</x>
283 <y>94</y>
284 <width>20</width>
285 <height>250</height>
286 <uuid>{20a90144-827d-437e-8a8f-9c6cd9e2a87f}</uuid>
287 <visible>true</visible>
288 <midichan>0</midichan>
289 <midicc>-3</midicc>
290 <description/>
291 <objectName2>PartAmp3</objectName2>
292 <xMin>0.00000000</xMin>
293 <xMax>1.00000000</xMax>
294 <yMin>0.00000000</yMin>
295 <yMax>1.00000000</yMax>
296 <xValue>0.00000000</xValue>
297 <yValue>0.73600000</yValue>
298 <type>llif</type>
299 <pointsize>1</pointsize>
300 <fadeSpeed>0.00000000</fadeSpeed>
301 <mouseControl act="press">jump</mouseControl>
302 <bordermode>noborder</bordermode>
303 <borderColor>#00FF00</borderColor>
304 <color>
305 <r>208</r>
306 <g>208</g>
307 <b>208</b>
308 </color>
309 <randomizable mode="both" group="0">false</randomizable>
310 <bgcolor>
311 <r>0</r>
312 <g>0</g>
313 <b>0</b>
314 </bgcolor>
315 <bgcolormode>true</bgcolormode>
316 </bsbObject>
317 <bsbObject version="2" type="BSBController">
318 <objectName/>
319 <x>81</x>
320 <y>94</y>
321 <width>20</width>
322 <height>250</height>
323 <uuid>{92d15a4b-d582-4ae2-8fb2-c0993d808c34}</uuid>
324 <visible>true</visible>
325 <midichan>0</midichan>
326 <midicc>-3</midicc>
327 <description/>
328 <objectName2>PartAmp4</objectName2>
329 <xMin>0.00000000</xMin>
330 <xMax>1.00000000</xMax>
331 <yMin>0.00000000</yMin>
332 <yMax>1.00000000</yMax>
333 <xValue>0.00000000</xValue>
334 <yValue>0.41600000</yValue>
335 <type>llif</type>
336 <pointsize>1</pointsize>
337 <fadeSpeed>0.00000000</fadeSpeed>
338 <mouseControl act="press">jump</mouseControl>
339 <bordermode>noborder</bordermode>
340 <borderColor>#00FF00</borderColor>
341 <color>
342 <r>208</r>
343 <g>208</g>
344 <b>208</b>
345 </color>
346 <randomizable mode="both" group="0">false</randomizable>
347 <bgcolor>
348 <r>0</r>
349 <g>0</g>
350 <b>0</b>
351 </bgcolor>
352 <bgcolormode>true</bgcolormode>
353 </bsbObject>
354 <bsbObject version="2" type="BSBController">
355 <objectName/>
356 <x>105</x>
357 <y>94</y>
358 <width>20</width>
359 <height>250</height>
360 <uuid>{9a9e0651-0fc3-4772-ab39-364cac49aaae}</uuid>
361 <visible>true</visible>
362 <midichan>0</midichan>
363 <midicc>-3</midicc>
364 <description/>
365 <objectName2>PartAmp5</objectName2>
366 <xMin>0.00000000</xMin>
367 <xMax>1.00000000</xMax>
368 <yMin>0.00000000</yMin>
369 <yMax>1.00000000</yMax>
370 <xValue>0.00000000</xValue>
371 <yValue>0.76800000</yValue>
372 <type>llif</type>
373 <pointsize>1</pointsize>
374 <fadeSpeed>0.00000000</fadeSpeed>
375 <mouseControl act="press">jump</mouseControl>
376 <bordermode>noborder</bordermode>
377 <borderColor>#00FF00</borderColor>
378 <color>
379 <r>208</r>
380 <g>208</g>
381 <b>208</b>
382 </color>
383 <randomizable mode="both" group="0">false</randomizable>
384 <bgcolor>
385 <r>0</r>
386 <g>0</g>
387 <b>0</b>
388 </bgcolor>
389 <bgcolormode>true</bgcolormode>
390 </bsbObject>
391 <bsbObject version="2" type="BSBController">
392 <objectName/>
393 <x>129</x>
394 <y>94</y>
395 <width>20</width>
396 <height>250</height>
397 <uuid>{dec8a20a-eadd-4a93-a400-bcb352406930}</uuid>
398 <visible>true</visible>
399 <midichan>0</midichan>
400 <midicc>-3</midicc>
401 <description/>
402 <objectName2>PartAmp6</objectName2>
403 <xMin>0.00000000</xMin>
404 <xMax>1.00000000</xMax>
405 <yMin>0.00000000</yMin>
406 <yMax>1.00000000</yMax>
407 <xValue>0.00000000</xValue>
408 <yValue>0.28000000</yValue>
409 <type>llif</type>
410 <pointsize>1</pointsize>
411 <fadeSpeed>0.00000000</fadeSpeed>
412 <mouseControl act="press">jump</mouseControl>
413 <bordermode>noborder</bordermode>
414 <borderColor>#00FF00</borderColor>
415 <color>
416 <r>208</r>
417 <g>208</g>
418 <b>208</b>
419 </color>
420 <randomizable mode="both" group="0">false</randomizable>
421 <bgcolor>
422 <r>0</r>
423 <g>0</g>
424 <b>0</b>
425 </bgcolor>
426 <bgcolormode>true</bgcolormode>
427 </bsbObject>
428 <bsbObject version="2" type="BSBController">
429 <objectName/>
430 <x>153</x>
431 <y>94</y>
432 <width>20</width>
433 <height>250</height>
434 <uuid>{821ddbec-2c2c-418b-bef2-233c1c69fb97}</uuid>
435 <visible>true</visible>
436 <midichan>0</midichan>
437 <midicc>-3</midicc>
438 <description/>
439 <objectName2>PartAmp7</objectName2>
440 <xMin>0.00000000</xMin>
441 <xMax>1.00000000</xMax>
442 <yMin>0.00000000</yMin>
443 <yMax>1.00000000</yMax>
444 <xValue>0.00000000</xValue>
445 <yValue>0.83600000</yValue>
446 <type>llif</type>
447 <pointsize>1</pointsize>
448 <fadeSpeed>0.00000000</fadeSpeed>
449 <mouseControl act="press">jump</mouseControl>
450 <bordermode>noborder</bordermode>
451 <borderColor>#00FF00</borderColor>
452 <color>
453 <r>208</r>
454 <g>208</g>
455 <b>208</b>
456 </color>
457 <randomizable mode="both" group="0">false</randomizable>
458 <bgcolor>
459 <r>0</r>
460 <g>0</g>
461 <b>0</b>
462 </bgcolor>
463 <bgcolormode>true</bgcolormode>
464 </bsbObject>
465 <bsbObject version="2" type="BSBController">
466 <objectName/>
467 <x>177</x>
468 <y>94</y>
469 <width>20</width>
470 <height>250</height>
471 <uuid>{238d4c2c-a4cd-4595-bfed-328db8c4bddf}</uuid>
472 <visible>true</visible>
473 <midichan>0</midichan>
474 <midicc>-3</midicc>
475 <description/>
476 <objectName2>PartAmp8</objectName2>
477 <xMin>0.00000000</xMin>
478 <xMax>1.00000000</xMax>
479 <yMin>0.00000000</yMin>
480 <yMax>1.00000000</yMax>
481 <xValue>0.00000000</xValue>
482 <yValue>0.00000000</yValue>
483 <type>llif</type>
484 <pointsize>1</pointsize>
485 <fadeSpeed>0.00000000</fadeSpeed>
486 <mouseControl act="press">jump</mouseControl>
487 <bordermode>noborder</bordermode>
488 <borderColor>#00FF00</borderColor>
489 <color>
490 <r>208</r>
491 <g>208</g>
492 <b>208</b>
493 </color>
494 <randomizable mode="both" group="0">false</randomizable>
495 <bgcolor>
496 <r>0</r>
497 <g>0</g>
498 <b>0</b>
499 </bgcolor>
500 <bgcolormode>true</bgcolormode>
501 </bsbObject>
502 <bsbObject version="2" type="BSBController">
503 <objectName/>
504 <x>201</x>
505 <y>94</y>
506 <width>20</width>
507 <height>250</height>
508 <uuid>{90c161db-14bf-4937-b50b-44a6002eb02b}</uuid>
509 <visible>true</visible>
510 <midichan>0</midichan>
511 <midicc>-3</midicc>
512 <description/>
513 <objectName2>PartAmp9</objectName2>
514 <xMin>0.00000000</xMin>
515 <xMax>1.00000000</xMax>
516 <yMin>0.00000000</yMin>
517 <yMax>1.00000000</yMax>
518 <xValue>0.00000000</xValue>
519 <yValue>0.79600000</yValue>
520 <type>llif</type>
521 <pointsize>1</pointsize>
522 <fadeSpeed>0.00000000</fadeSpeed>
523 <mouseControl act="press">jump</mouseControl>
524 <bordermode>noborder</bordermode>
525 <borderColor>#00FF00</borderColor>
526 <color>
527 <r>208</r>
528 <g>208</g>
529 <b>208</b>
530 </color>
531 <randomizable mode="both" group="0">false</randomizable>
532 <bgcolor>
533 <r>0</r>
534 <g>0</g>
535 <b>0</b>
536 </bgcolor>
537 <bgcolormode>true</bgcolormode>
538 </bsbObject>
539 <bsbObject version="2" type="BSBController">
540 <objectName/>
541 <x>225</x>
542 <y>94</y>
543 <width>20</width>
544 <height>250</height>
545 <uuid>{95e1897f-d796-4dba-8b9c-f382985a0a57}</uuid>
546 <visible>true</visible>
547 <midichan>0</midichan>
548 <midicc>-3</midicc>
549 <description/>
550 <objectName2>PartAmp10</objectName2>
551 <xMin>0.00000000</xMin>
552 <xMax>1.00000000</xMax>
553 <yMin>0.00000000</yMin>
554 <yMax>1.00000000</yMax>
555 <xValue>0.00000000</xValue>
556 <yValue>0.00000000</yValue>
557 <type>llif</type>
558 <pointsize>1</pointsize>
559 <fadeSpeed>0.00000000</fadeSpeed>
560 <mouseControl act="press">jump</mouseControl>
561 <bordermode>noborder</bordermode>
562 <borderColor>#00FF00</borderColor>
563 <color>
564 <r>208</r>
565 <g>208</g>
566 <b>208</b>
567 </color>
568 <randomizable mode="both" group="0">false</randomizable>
569 <bgcolor>
570 <r>0</r>
571 <g>0</g>
572 <b>0</b>
573 </bgcolor>
574 <bgcolormode>true</bgcolormode>
575 </bsbObject>
576 <bsbObject version="2" type="BSBButton">
577 <objectName/>
578 <x>8</x>
579 <y>8</y>
580 <width>176</width>
581 <height>55</height>
582 <uuid>{487d5181-d838-4cce-9628-317fefc350cb}</uuid>
583 <visible>true</visible>
584 <midichan>0</midichan>
585 <midicc>0</midicc>
586 <description/>
587 <type>event</type>
588 <pressedValue>1.00000000</pressedValue>
589 <stringvalue/>
590 <text> ON : GUI
591 OFF : MIDI</text>
592 <image>/</image>
593 <eventLine>i 1 0 -1</eventLine>
594 <latch>true</latch>
595 <momentaryMidiButton>false</momentaryMidiButton>
596 <latched>true</latched>
597 <fontsize>10</fontsize>
598 </bsbObject>
599 <bsbObject version="2" type="BSBHSlider">
600 <objectName>Fund_Freq</objectName>
601 <x>254</x>
602 <y>107</y>
603 <width>341</width>
604 <height>27</height>
605 <uuid>{086a860c-b45b-47f3-978f-2f6daac6338b}</uuid>
606 <visible>true</visible>
607 <midichan>0</midichan>
608 <midicc>0</midicc>
609 <description/>
610 <minimum>0.00000000</minimum>
611 <maximum>1.00000000</maximum>
612 <value>0.18181818</value>
613 <mode>lin</mode>
614 <mouseControl act="jump">continuous</mouseControl>
615 <resolution>-1.00000000</resolution>
616 <randomizable group="0">false</randomizable>
617 </bsbObject>
618 <bsbObject version="2" type="BSBLabel">
619 <objectName/>
620 <x>254</x>
621 <y>129</y>
622 <width>298</width>
623 <height>29</height>
624 <uuid>{109a592d-ca0d-4b82-bf17-3b42c0ff503a}</uuid>
625 <visible>true</visible>
626 <midichan>0</midichan>
627 <midicc>0</midicc>
628 <description/>
629 <label>Fundamental (Hertz)</label>
630 <alignment>left</alignment>
631 <valignment>top</valignment>
632 <font>Arial</font>
633 <fontsize>10</fontsize>
634 <precision>3</precision>
635 <color>
636 <r>0</r>
637 <g>0</g>
638 <b>0</b>
639 </color>
640 <bgcolor mode="nobackground">
641 <r>255</r>
642 <g>255</g>
643 <b>255</b>
644 </bgcolor>
645 <bordermode>noborder</bordermode>
646 <borderradius>1</borderradius>
647 <borderwidth>0</borderwidth>
648 </bsbObject>
649 <bsbObject version="2" type="BSBDisplay">
650 <objectName>Fund_Freq_Value</objectName>
651 <x>515</x>
652 <y>129</y>
653 <width>80</width>
654 <height>23</height>
655 <uuid>{30f36f54-9085-46d0-8f1f-4a4b89881919}</uuid>
656 <visible>true</visible>
657 <midichan>0</midichan>
658 <midicc>0</midicc>
659 <description/>
660 <label>61.923</label>
661 <alignment>right</alignment>
662 <valignment>top</valignment>
663 <font>Arial</font>
664 <fontsize>9</fontsize>
665 <precision>3</precision>
666 <color>
667 <r>0</r>
668 <g>0</g>
669 <b>0</b>
670 </color>
671 <bgcolor mode="nobackground">
672 <r>255</r>
673 <g>255</g>
674 <b>255</b>
675 </bgcolor>
676 <bordermode>noborder</bordermode>
677 <borderradius>1</borderradius>
678 <borderwidth>0</borderwidth>
679 </bsbObject>
680 <bsbObject version="2" type="BSBHSlider">
681 <objectName>Amplitude</objectName>
682 <x>254</x>
683 <y>163</y>
684 <width>341</width>
685 <height>27</height>
686 <uuid>{de47f47d-bcea-4c1c-ab4b-a323452b1f7e}</uuid>
687 <visible>true</visible>
688 <midichan>0</midichan>
689 <midicc>0</midicc>
690 <description/>
691 <minimum>0.00000000</minimum>
692 <maximum>1.00000000</maximum>
693 <value>0.31671554</value>
694 <mode>lin</mode>
695 <mouseControl act="jump">continuous</mouseControl>
696 <resolution>-1.00000000</resolution>
697 <randomizable group="0">false</randomizable>
698 </bsbObject>
699 <bsbObject version="2" type="BSBLabel">
700 <objectName/>
701 <x>254</x>
702 <y>185</y>
703 <width>298</width>
704 <height>29</height>
705 <uuid>{0200a063-5db8-4668-bc2d-2d989a083f6e}</uuid>
706 <visible>true</visible>
707 <midichan>0</midichan>
708 <midicc>0</midicc>
709 <description/>
710 <label>Global Amplitude</label>
711 <alignment>left</alignment>
712 <valignment>top</valignment>
713 <font>Arial</font>
714 <fontsize>10</fontsize>
715 <precision>3</precision>
716 <color>
717 <r>0</r>
718 <g>0</g>
719 <b>0</b>
720 </color>
721 <bgcolor mode="nobackground">
722 <r>255</r>
723 <g>255</g>
724 <b>255</b>
725 </bgcolor>
726 <bordermode>noborder</bordermode>
727 <borderradius>1</borderradius>
728 <borderwidth>0</borderwidth>
729 </bsbObject>
730 <bsbObject version="2" type="BSBDisplay">
731 <objectName>Amplitude</objectName>
732 <x>515</x>
733 <y>185</y>
734 <width>80</width>
735 <height>23</height>
736 <uuid>{ab191e3a-430d-4f1d-88aa-9840342cd2d3}</uuid>
737 <visible>true</visible>
738 <midichan>0</midichan>
739 <midicc>0</midicc>
740 <description/>
741 <label>0.317</label>
742 <alignment>right</alignment>
743 <valignment>top</valignment>
744 <font>Arial</font>
745 <fontsize>9</fontsize>
746 <precision>3</precision>
747 <color>
748 <r>0</r>
749 <g>0</g>
750 <b>0</b>
751 </color>
752 <bgcolor mode="nobackground">
753 <r>255</r>
754 <g>255</g>
755 <b>255</b>
756 </bgcolor>
757 <bordermode>noborder</bordermode>
758 <borderradius>1</borderradius>
759 <borderwidth>0</borderwidth>
760 </bsbObject>
761 <bsbObject version="2" type="BSBHSlider">
762 <objectName>Warp</objectName>
763 <x>254</x>
764 <y>218</y>
765 <width>341</width>
766 <height>27</height>
767 <uuid>{e4300af9-24c6-4b70-93ab-c970819d2c35}</uuid>
768 <visible>true</visible>
769 <midichan>0</midichan>
770 <midicc>0</midicc>
771 <description/>
772 <minimum>0.00000000</minimum>
773 <maximum>2.00000000</maximum>
774 <value>1.00000000</value>
775 <mode>lin</mode>
776 <mouseControl act="jump">continuous</mouseControl>
777 <resolution>-1.00000000</resolution>
778 <randomizable group="0">false</randomizable>
779 </bsbObject>
780 <bsbObject version="2" type="BSBLabel">
781 <objectName/>
782 <x>254</x>
783 <y>240</y>
784 <width>298</width>
785 <height>29</height>
786 <uuid>{34370953-ce7f-4ce0-a30a-87b8ad5b8d34}</uuid>
787 <visible>true</visible>
788 <midichan>0</midichan>
789 <midicc>0</midicc>
790 <description/>
791 <label>Warp Partial Spacings</label>
792 <alignment>left</alignment>
793 <valignment>top</valignment>
794 <font>Arial</font>
795 <fontsize>12</fontsize>
796 <precision>3</precision>
797 <color>
798 <r>0</r>
799 <g>0</g>
800 <b>0</b>
801 </color>
802 <bgcolor mode="nobackground">
803 <r>255</r>
804 <g>255</g>
805 <b>255</b>
806 </bgcolor>
807 <bordermode>noborder</bordermode>
808 <borderradius>1</borderradius>
809 <borderwidth>0</borderwidth>
810 </bsbObject>
811 <bsbObject version="2" type="BSBDisplay">
812 <objectName>Warp</objectName>
813 <x>515</x>
814 <y>240</y>
815 <width>80</width>
816 <height>23</height>
817 <uuid>{9df2c1be-0396-40aa-bcb5-aae3a5654e10}</uuid>
818 <visible>true</visible>
819 <midichan>0</midichan>
820 <midicc>0</midicc>
821 <description/>
822 <label>1.000</label>
823 <alignment>right</alignment>
824 <valignment>top</valignment>
825 <font>Arial</font>
826 <fontsize>9</fontsize>
827 <precision>3</precision>
828 <color>
829 <r>0</r>
830 <g>0</g>
831 <b>0</b>
832 </color>
833 <bgcolor mode="nobackground">
834 <r>255</r>
835 <g>255</g>
836 <b>255</b>
837 </bgcolor>
838 <bordermode>noborder</bordermode>
839 <borderradius>1</borderradius>
840 <borderwidth>0</borderwidth>
841 </bsbObject>
842 <bsbObject version="2" type="BSBHSlider">
843 <objectName>Rnd</objectName>
844 <x>254</x>
845 <y>273</y>
846 <width>341</width>
847 <height>27</height>
848 <uuid>{3fe7d249-f69e-4927-b101-437a44586552}</uuid>
849 <visible>true</visible>
850 <midichan>0</midichan>
851 <midicc>0</midicc>
852 <description/>
853 <minimum>0.00000000</minimum>
854 <maximum>1.00000000</maximum>
855 <value>0.00000000</value>
856 <mode>lin</mode>
857 <mouseControl act="jump">continuous</mouseControl>
858 <resolution>-1.00000000</resolution>
859 <randomizable group="0">false</randomizable>
860 </bsbObject>
861 <bsbObject version="2" type="BSBLabel">
862 <objectName/>
863 <x>254</x>
864 <y>295</y>
865 <width>298</width>
866 <height>29</height>
867 <uuid>{3d3bb9bb-d39c-49de-b313-7cd9e38557ef}</uuid>
868 <visible>true</visible>
869 <midichan>0</midichan>
870 <midicc>0</midicc>
871 <description/>
872 <label>Partial Spacings Random Factor</label>
873 <alignment>left</alignment>
874 <valignment>top</valignment>
875 <font>Arial</font>
876 <fontsize>10</fontsize>
877 <precision>3</precision>
878 <color>
879 <r>0</r>
880 <g>0</g>
881 <b>0</b>
882 </color>
883 <bgcolor mode="nobackground">
884 <r>255</r>
885 <g>255</g>
886 <b>255</b>
887 </bgcolor>
888 <bordermode>noborder</bordermode>
889 <borderradius>1</borderradius>
890 <borderwidth>0</borderwidth>
891 </bsbObject>
892 <bsbObject version="2" type="BSBDisplay">
893 <objectName>Rnd</objectName>
894 <x>515</x>
895 <y>295</y>
896 <width>80</width>
897 <height>23</height>
898 <uuid>{604955bd-5b1c-457a-95ac-ff9bc1d7aaa0}</uuid>
899 <visible>true</visible>
900 <midichan>0</midichan>
901 <midicc>0</midicc>
902 <description/>
903 <label>0.000</label>
904 <alignment>right</alignment>
905 <valignment>top</valignment>
906 <font>Arial</font>
907 <fontsize>9</fontsize>
908 <precision>3</precision>
909 <color>
910 <r>0</r>
911 <g>0</g>
912 <b>0</b>
913 </color>
914 <bgcolor mode="nobackground">
915 <r>255</r>
916 <g>255</g>
917 <b>255</b>
918 </bgcolor>
919 <bordermode>noborder</bordermode>
920 <borderradius>1</borderradius>
921 <borderwidth>0</borderwidth>
922 </bsbObject>
923 <bsbObject version="2" type="BSBButton">
924 <objectName>Reset</objectName>
925 <x>461</x>
926 <y>239</y>
927 <width>63</width>
928 <height>23</height>
929 <uuid>{4bc80b9f-1a71-44f0-8669-5905e6cbda94}</uuid>
930 <visible>true</visible>
931 <midichan>0</midichan>
932 <midicc>0</midicc>
933 <description/>
934 <type>event</type>
935 <pressedValue>1.00000000</pressedValue>
936 <stringvalue/>
937 <text>Reset</text>
938 <image>/</image>
939 <eventLine>i 4 0 0</eventLine>
940 <latch>false</latch>
941 <momentaryMidiButton>false</momentaryMidiButton>
942 <latched>false</latched>
943 <fontsize>10</fontsize>
944 </bsbObject>
945 <bsbObject version="2" type="BSBLabel">
946 <objectName/>
947 <x>603</x>
948 <y>2</y>
949 <width>404</width>
950 <height>430</height>
951 <uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid>
952 <visible>true</visible>
953 <midichan>0</midichan>
954 <midicc>0</midicc>
955 <description/>
956 <label>Additive Synthesis 1 - 10 Harmonics</label>
957 <alignment>center</alignment>
958 <valignment>top</valignment>
959 <font>Arial Black</font>
960 <fontsize>18</fontsize>
961 <precision>3</precision>
962 <color>
963 <r>0</r>
964 <g>0</g>
965 <b>0</b>
966 </color>
967 <bgcolor mode="background">
968 <r>211</r>
969 <g>211</g>
970 <b>211</b>
971 </bgcolor>
972 <bordermode>border</bordermode>
973 <borderradius>5</borderradius>
974 <borderwidth>2</borderwidth>
975 </bsbObject>
976 <bsbObject version="2" type="BSBLabel">
977 <objectName/>
978 <x>606</x>
979 <y>17</y>
980 <width>408</width>
981 <height>411</height>
982 <uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid>
983 <visible>true</visible>
984 <midichan>0</midichan>
985 <midicc>0</midicc>
986 <description/>
987 <label>-------------------------------------------------------------------------------------------------
988 Additive synthesis is the technique whereby sine waves of different frequencies are mixed and manipulated in such a way that they are perceived fused and seem to form a new, more complex tone. The inspiration for additive synthesis comes from Fourier theory that states that any sound can be replicated as a composite of sine waves of various frequencies and phases. In harmonic additive synthesis the sequence of frequencies followed by the different sine wave oscillators follows that of the harmonic series in that each harmonic is a product of the fundemental. For example: if the fundemental of a harmonic tone is 100 Hz. then its 1st harmonic will be at 200 Hz. its 2nd at 300 Hz and so on. This example offers the user manipulation of the first 10 harmonics but to synthesize bright timbres rich in higher harmonics such as a violin this number will be insufficient. The next example which utilises more partials, demonstrates ways in which the fusion of partials can be enhanced but also draws attention to the shortcomings of additive synthesis. Note that the fundemental can also be referred to as the 1st partial, the 1 harmonic as the 2nd partial and so on. Partial spacings can be modified in two ways. 'Warp Partial Spacings' compresses or expands partials spacings depending upon whether its value is less than or greater than 1. 'Partial Spacings Random Factor' multiplies a unique random value to each partial frequency. </label>
989 <alignment>left</alignment>
990 <valignment>top</valignment>
991 <font>Arial</font>
992 <fontsize>14</fontsize>
993 <precision>3</precision>
994 <color>
995 <r>0</r>
996 <g>0</g>
997 <b>0</b>
998 </color>
999 <bgcolor mode="nobackground">
1000 <r>255</r>
1001 <g>255</g>
1002 <b>255</b>
1003 </bgcolor>
1004 <bordermode>noborder</bordermode>
1005 <borderradius>1</borderradius>
1006 <borderwidth>0</borderwidth>
1007 </bsbObject>
1008 <bsbObject version="2" type="BSBLabel">
1009 <objectName/>
1010 <x>80</x>
1011 <y>365</y>
1012 <width>156</width>
1013 <height>31</height>
1014 <uuid>{495f1d8a-abb5-49dc-89af-5d52dc31b75f}</uuid>
1015 <visible>true</visible>
1016 <midichan>0</midichan>
1017 <midicc>0</midicc>
1018 <description/>
1019 <label>Partial Strength</label>
1020 <alignment>left</alignment>
1021 <valignment>top</valignment>
1022 <font>Arial</font>
1023 <fontsize>10</fontsize>
1024 <precision>3</precision>
1025 <color>
1026 <r>0</r>
1027 <g>0</g>
1028 <b>0</b>
1029 </color>
1030 <bgcolor mode="nobackground">
1031 <r>255</r>
1032 <g>255</g>
1033 <b>255</b>
1034 </bgcolor>
1035 <bordermode>noborder</bordermode>
1036 <borderradius>1</borderradius>
1037 <borderwidth>0</borderwidth>
1038 </bsbObject>
1039 </bsbPanel>
1040 <bsbPresets>
1041 </bsbPresets>