Debian Codegraph @

src/Examples/McCurdy Collection/FFT/pvadd.csd

raw
1 ;Written by Iain McCurdy, 2006
2
3 ;Modified for QuteCsound by René, October 2010, updated Feb 2011
4 ;Tested on Ubuntu 10.04 with csound-float 5.13.0 and QuteCsound svn rev 817
5
6 ;Notes on modifications from original csd:
7 ; Add table(s) for exp slider
8 ; Add Browser for analysis files
9
10
11 ;my flags on Ubuntu: -iadc -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=null -m0
12 <CsoundSynthesizer>
13 <CsOptions>
14 --env:SADIR+=../../SourceMaterials
15 </CsOptions>
16 <CsInstruments>
17 sr = 44100 ;SAMPLE RATE
18 ksmps = 32 ;NUMBER OF AUDIO SAMPLES IN EACH CONTROL CYCLE
19 nchnls = 2 ;NUMBER OF CHANNELS (2=STEREO)
20
21
22 giExp8 ftgen 1000, 0, 129, -25, 0, 0.125, 128, 8.0 ;TABLE FOR EXP SLIDER
23
24
25 instr 1 ;GUI AND CREATE A CONTINUOUS MOVING PHASE VALUE WITH A GLOBAL VARIABLE OUTPUT
26
27 Sfile_new strcpy "" ;INIT TO EMPTY STRING
28
29 ktrig metro 10
30 if (ktrig == 1) then
31 gkporttime invalue "Portamento_Amount"
32 kfmod invalue "Pitch"
33 gkfmod tablei kfmod, giExp8, 1
34 outvalue "Pitch_Value", gkfmod
35 gktimpnt invalue "Pointer"
36 gkspeed invalue "Speed"
37 gkampscale invalue "Amplitude"
38
39 gkptrswitch invalue "Pointer_Switch"
40 gkextractmode invalue "Extract_Mode"
41 gkfreqlim invalue "Frequency_Limit"
42 gkgatefn invalue "Gating_Function"
43 gkbins invalue "Number_Bins"
44 gkbinoffset invalue "Bin_Offset"
45 gkbinincr invalue "Bin_Increment"
46 gkfn invalue "Waveform"
47
48 gSfile invalue "_Browse"
49 Sfile_old strcpyk Sfile_new
50 Sfile_new strcpyk gSfile
51 kfile strcmpk Sfile_new, Sfile_old
52 gkfile = abs(kfile)
53 endif
54
55 if gkfile = 1 then
56 reinit NEW_FILE ;gkfile = 1 if the file have changed
57 endif
58 NEW_FILE:
59 gifilelen filelen gSfile
60 gkphs phasor gkspeed/gifilelen
61 rireturn
62 endin
63
64 instr 2 ;pvadd INSTRUMENT
65 iporttime = .1 ;DEFINE A VALUE FOR PORTAMENTO TIME (THIS WILL BE USED TO SMOOTH SLIDER MOVEMENTS)
66 kporttime linseg 0, .001, iporttime, 1, iporttime ;DEFINE A RAMPING UP, K-RATE FUNCTION THAT WILL BE USED FOR PORTAMENTO TIME (BASED ON THE I-RATE VALUE DEFINED IN THE PREVIOUS LINE). RAMPING UP THIS VALUE FROM ZERO PREVENTS VARIABLE FROM SLIDING UP TO THEIR REQUIRED INITIAL VALUES EACH TIME THE INSTRUMENT IS RESTARTED.
67 kporttime = kporttime * gkporttime ;SLIDER FOR PORTAMENTO TIME MULTIPLIED TO kporttime FUNCTION
68 ktimpnt portk gktimpnt, kporttime ;APPLY PORTAMENTO TO THE SLIDER DERIVED VAIABLE 'gkptr'. A NEW VARIABLE CALLED 'kptr' IS OUTPUTTED.
69 kfmod portk gkfmod, kporttime ;APPLY PORTAMENTO TO THE SLIDER DERIVED VAIABLE 'gkpch'. A NEW VARIABLE CALLED 'kpch' IS OUTPUTTED.
70
71 kSwitch changed gkptrswitch, gkextractmode, gkfreqlim, gkgatefn, gkfile, gkbins, gkbinoffset, gkbinincr, gkfn ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO)
72 if kSwitch=1 then ;IF I-RATE VARIABLE CHANGE TRIGGER IS '1'...
73 reinit START ;BEGIN A REINITIALISATION PASS FROM LABEL 'START'
74 endif
75
76 START:
77 ktimpnt = ktimpnt * gifilelen ;REDEFINE THE VARIABLE 'kptr' TAKING INTO ACCOUNT THE ACTUAL DURATION OF THE ORIGINAL SOUND FILE (ifilelen)
78 kphs = gkphs * gifilelen ;RESCALE THE AMPLITUDE OF THE MOVING PHASE VALUE ACCORDING TO THE DURATION OF THE ORIGINAL SOUND FILE
79 ktimpnt = (gkptrswitch == 0 ? ktimpnt : kphs) ;CHECK TO SEE WHICH POINTER MODE HAS BEEN SELECTED AND DEFINE THE FINAL VALUE OF 'kptr' ACCORDINGLY
80
81 ;OUTPUT OPCODE REQUIRED INPUT ARGS |OPTIONAL INPUT ARGS...
82 ares pvadd ktimpnt, kfmod, gSfile, i(gkfn)+99, i(gkbins), i(gkbinoffset), i(gkbinincr), i(gkextractmode), i(gkfreqlim), i(gkgatefn)
83 rireturn ;RETURN FROM REINITIALISATION PASS TO PERFORMANCE TIME PASSES
84 outs ares * gkampscale, ares * gkampscale ;SEND pvoc OUTPUT TO THE OUTPUTS
85 endin
86 </CsInstruments>
87 <CsScore>
88 ;GATING FUNCTIONS USED BY PVOC (OPTIONAL)
89 f 1 0 512 7 0 256 1 256 1 ;50% THRESHOLD SHARP GATING
90 f 2 0 512 5 1 512 .001 ;INVERT AMPLITUDES
91
92 ;FUNCTIONS USED BY PVADD IN THE RESYNTHESIS
93 f 99 0 1024 10 1 ;SINE
94 f 100 0 1024 7 1 512 1 0 -1 512 -1 ;SQUARE
95 f 101 0 1024 7 1 1024 -1 ;SAWTOOTH (UP)
96 f 102 0 1024 7 0 256 1 512 -1 256 0 ;TRIANGLE WAVE
97
98 ;INSTR | START | DURATION
99 i 1 0 3600 ;INSTRUMENT 1 PLAYS FOR 1 HOUR
100 </CsScore>
101 </CsoundSynthesizer>
102
103
104 <bsbPanel>
105 <label>Widgets</label>
106 <objectName/>
107 <x>320</x>
108 <y>254</y>
109 <width>1045</width>
110 <height>508</height>
111 <visible>true</visible>
112 <uuid/>
113 <bgcolor mode="background">
114 <r>241</r>
115 <g>226</g>
116 <b>185</b>
117 </bgcolor>
118 <bsbObject version="2" type="BSBLabel">
119 <objectName/>
120 <x>2</x>
121 <y>2</y>
122 <width>514</width>
123 <height>500</height>
124 <uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid>
125 <visible>true</visible>
126 <midichan>0</midichan>
127 <midicc>0</midicc>
128 <label>pvadd</label>
129 <alignment>center</alignment>
130 <font>Liberation Sans</font>
131 <fontsize>18</fontsize>
132 <precision>3</precision>
133 <color>
134 <r>0</r>
135 <g>0</g>
136 <b>0</b>
137 </color>
138 <bgcolor mode="background">
139 <r>181</r>
140 <g>199</g>
141 <b>255</b>
142 </bgcolor>
143 <bordermode>border</bordermode>
144 <borderradius>5</borderradius>
145 <borderwidth>2</borderwidth>
146 </bsbObject>
147 <bsbObject version="2" type="BSBLabel">
148 <objectName/>
149 <x>517</x>
150 <y>2</y>
151 <width>519</width>
152 <height>500</height>
153 <uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid>
154 <visible>true</visible>
155 <midichan>0</midichan>
156 <midicc>0</midicc>
157 <label>pvadd</label>
158 <alignment>center</alignment>
159 <font>Liberation Sans</font>
160 <fontsize>18</fontsize>
161 <precision>3</precision>
162 <color>
163 <r>0</r>
164 <g>0</g>
165 <b>0</b>
166 </color>
167 <bgcolor mode="background">
168 <r>181</r>
169 <g>199</g>
170 <b>255</b>
171 </bgcolor>
172 <bordermode>border</bordermode>
173 <borderradius>5</borderradius>
174 <borderwidth>2</borderwidth>
175 </bsbObject>
176 <bsbObject version="2" type="BSBLabel">
177 <objectName/>
178 <x>520</x>
179 <y>18</y>
180 <width>515</width>
181 <height>482</height>
182 <uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid>
183 <visible>true</visible>
184 <midichan>0</midichan>
185 <midicc>0</midicc>
186 <label>-----------------------------------------------------------------------------------------------------------------------------
187 pvadd performs FFT resynthesis on a analysis data file that has been created using the pvanal utility that comes with Csound. Pvadd is very similar to pvoc but offers some additional user control regarding precisely how the resynthesis will be carried out. Additionally it asks for the user to supply the waveform that will be used in the resynthesis. Normally this will be a sine wave but special effects are possible by using other waveforms. The input arguments required by the opcode include one for pitch ratio between the resynthesized sound and the original sound and for time location within the analysis file from which to resynthesise. This example offers two ways in which to control this variable according to how the 'Pointer Switch' is set. When in 'Pointer' mode the 'Pointer' slider is simply used to move the variable ('Speed Control' slider is ignored). When 'Pointer Switch' is set to 'Speed Control' then the 'Speed Control' slider is used to control the speed of the movement of the pointer through the analysis file. This value is given as a ratio between the resynthesized sound to the original sound ('Pointer' slider is ignored). Optional arguments are also used in this example. When 'Spec. Env.' (spectral enveloping) is on the opcode attempts to preserve the spectral envelope of the original sound. The audible upshot of this is most clearly heard when resynthesizing speech in which transpositions up or down are heard as the person speaking higher or lower rather than as a complete transformation of the character of the voice. 'Extract Mode' and 'Frequency Limit' are used in combination and can be set to filter either resonant components of the sound or noise based components of the sound. If 'Extract Mode' is set to '1' (greater than frequency limit) and 'Frequency Limit' is given a value grater than zero then noise aspects of the sound are favoured in the resynthesis and if 'Frequency Limit' is set to '2' (less than frequency limit) and 'Frequency Limit' is given a value greater than zero then resonant aspects of the sound will be favoured. Using a gating function (table) allows spectrally informed dynamic modification of the sound (akin to a complex multi-band compressor). Two function shapes are offered by this example.</label>
188 <alignment>left</alignment>
189 <font>Arial</font>
190 <fontsize>14</fontsize>
191 <precision>3</precision>
192 <color>
193 <r>0</r>
194 <g>0</g>
195 <b>0</b>
196 </color>
197 <bgcolor mode="nobackground">
198 <r>255</r>
199 <g>255</g>
200 <b>255</b>
201 </bgcolor>
202 <bordermode>noborder</bordermode>
203 <borderradius>1</borderradius>
204 <borderwidth>1</borderwidth>
205 </bsbObject>
206 <bsbObject version="2" type="BSBButton">
207 <objectName/>
208 <x>8</x>
209 <y>8</y>
210 <width>100</width>
211 <height>30</height>
212 <uuid>{24979132-c53f-4414-ac6b-6b4f503ecfe8}</uuid>
213 <visible>true</visible>
214 <midichan>0</midichan>
215 <midicc>0</midicc>
216 <type>event</type>
217 <pressedValue>1.00000000</pressedValue>
218 <stringvalue/>
219 <text> ON / OFF</text>
220 <image>/</image>
221 <eventLine>i 2 0 -1</eventLine>
222 <latch>true</latch>
223 <latched>false</latched>
224 </bsbObject>
225 <bsbObject version="2" type="BSBDisplay">
226 <objectName>Portamento_Amount</objectName>
227 <x>448</x>
228 <y>60</y>
229 <width>60</width>
230 <height>30</height>
231 <uuid>{745d6bee-b951-4a03-9fe8-9e10d5ae4556}</uuid>
232 <visible>true</visible>
233 <midichan>0</midichan>
234 <midicc>0</midicc>
235 <label>0.498</label>
236 <alignment>right</alignment>
237 <font>Arial</font>
238 <fontsize>9</fontsize>
239 <precision>3</precision>
240 <color>
241 <r>0</r>
242 <g>0</g>
243 <b>0</b>
244 </color>
245 <bgcolor mode="nobackground">
246 <r>255</r>
247 <g>255</g>
248 <b>255</b>
249 </bgcolor>
250 <bordermode>noborder</bordermode>
251 <borderradius>1</borderradius>
252 <borderwidth>1</borderwidth>
253 </bsbObject>
254 <bsbObject version="2" type="BSBHSlider">
255 <objectName>Portamento_Amount</objectName>
256 <x>8</x>
257 <y>43</y>
258 <width>500</width>
259 <height>27</height>
260 <uuid>{06814721-6151-4baa-84e2-8f39843b07a4}</uuid>
261 <visible>true</visible>
262 <midichan>0</midichan>
263 <midicc>0</midicc>
264 <minimum>0.00000000</minimum>
265 <maximum>1.00000000</maximum>
266 <value>0.49800000</value>
267 <mode>lin</mode>
268 <mouseControl act="jump">continuous</mouseControl>
269 <resolution>-1.00000000</resolution>
270 <randomizable group="0">false</randomizable>
271 </bsbObject>
272 <bsbObject version="2" type="BSBLabel">
273 <objectName/>
274 <x>8</x>
275 <y>60</y>
276 <width>180</width>
277 <height>30</height>
278 <uuid>{c6d7165c-6730-426f-b293-52b411bc73cf}</uuid>
279 <visible>true</visible>
280 <midichan>0</midichan>
281 <midicc>0</midicc>
282 <label>Portamento Amount</label>
283 <alignment>left</alignment>
284 <font>Arial</font>
285 <fontsize>10</fontsize>
286 <precision>3</precision>
287 <color>
288 <r>0</r>
289 <g>0</g>
290 <b>0</b>
291 </color>
292 <bgcolor mode="nobackground">
293 <r>255</r>
294 <g>255</g>
295 <b>255</b>
296 </bgcolor>
297 <bordermode>noborder</bordermode>
298 <borderradius>1</borderradius>
299 <borderwidth>1</borderwidth>
300 </bsbObject>
301 <bsbObject version="2" type="BSBButton">
302 <objectName>_Browse</objectName>
303 <x>8</x>
304 <y>462</y>
305 <width>170</width>
306 <height>30</height>
307 <uuid>{b9431a61-61f7-432b-bf6f-c47ddc7f9050}</uuid>
308 <visible>true</visible>
309 <midichan>0</midichan>
310 <midicc>0</midicc>
311 <type>value</type>
312 <pressedValue>1.00000000</pressedValue>
313 <stringvalue>loop.pvx</stringvalue>
314 <text>Browse Analysis File</text>
315 <image>/</image>
316 <eventLine/>
317 <latch>false</latch>
318 <latched>false</latched>
319 </bsbObject>
320 <bsbObject version="2" type="BSBLineEdit">
321 <objectName>_Browse</objectName>
322 <x>179</x>
323 <y>463</y>
324 <width>330</width>
325 <height>28</height>
326 <uuid>{68b5f90b-b78e-4581-b434-232db5f4c40f}</uuid>
327 <visible>true</visible>
328 <midichan>0</midichan>
329 <midicc>0</midicc>
330 <label>loop.pvx</label>
331 <alignment>left</alignment>
332 <font>Arial</font>
333 <fontsize>10</fontsize>
334 <precision>3</precision>
335 <color>
336 <r>0</r>
337 <g>0</g>
338 <b>0</b>
339 </color>
340 <bgcolor mode="nobackground">
341 <r>206</r>
342 <g>206</g>
343 <b>206</b>
344 </bgcolor>
345 <background>nobackground</background>
346 </bsbObject>
347 <bsbObject version="2" type="BSBLabel">
348 <objectName/>
349 <x>162</x>
350 <y>338</y>
351 <width>80</width>
352 <height>30</height>
353 <uuid>{dc1bccf4-d23b-4470-9c3f-5e576f314662}</uuid>
354 <visible>true</visible>
355 <midichan>0</midichan>
356 <midicc>0</midicc>
357 <label>Bin Offset</label>
358 <alignment>right</alignment>
359 <font>Arial</font>
360 <fontsize>10</fontsize>
361 <precision>3</precision>
362 <color>
363 <r>0</r>
364 <g>0</g>
365 <b>0</b>
366 </color>
367 <bgcolor mode="nobackground">
368 <r>255</r>
369 <g>255</g>
370 <b>255</b>
371 </bgcolor>
372 <bordermode>noborder</bordermode>
373 <borderradius>1</borderradius>
374 <borderwidth>1</borderwidth>
375 </bsbObject>
376 <bsbObject version="2" type="BSBSpinBox">
377 <objectName>Bin_Offset</objectName>
378 <x>242</x>
379 <y>338</y>
380 <width>60</width>
381 <height>30</height>
382 <uuid>{ba683795-bc00-46ba-8540-c6c32edb8bd5}</uuid>
383 <visible>true</visible>
384 <midichan>0</midichan>
385 <midicc>0</midicc>
386 <alignment>left</alignment>
387 <font>Arial</font>
388 <fontsize>14</fontsize>
389 <color>
390 <r>0</r>
391 <g>0</g>
392 <b>0</b>
393 </color>
394 <bgcolor mode="nobackground">
395 <r>255</r>
396 <g>255</g>
397 <b>255</b>
398 </bgcolor>
399 <resolution>1.00000000</resolution>
400 <minimum>0</minimum>
401 <maximum>100</maximum>
402 <randomizable group="0">false</randomizable>
403 <value>1</value>
404 </bsbObject>
405 <bsbObject version="2" type="BSBSpinBox">
406 <objectName>Number_Bins</objectName>
407 <x>86</x>
408 <y>338</y>
409 <width>60</width>
410 <height>30</height>
411 <uuid>{90b425e6-cc7a-4b70-bd54-52c1a629ce97}</uuid>
412 <visible>true</visible>
413 <midichan>0</midichan>
414 <midicc>0</midicc>
415 <alignment>left</alignment>
416 <font>Arial</font>
417 <fontsize>14</fontsize>
418 <color>
419 <r>0</r>
420 <g>0</g>
421 <b>0</b>
422 </color>
423 <bgcolor mode="nobackground">
424 <r>255</r>
425 <g>255</g>
426 <b>255</b>
427 </bgcolor>
428 <resolution>1.00000000</resolution>
429 <minimum>1</minimum>
430 <maximum>2000</maximum>
431 <randomizable group="0">false</randomizable>
432 <value>280</value>
433 </bsbObject>
434 <bsbObject version="2" type="BSBLabel">
435 <objectName/>
436 <x>6</x>
437 <y>338</y>
438 <width>80</width>
439 <height>40</height>
440 <uuid>{0c5a5f45-e32e-4e9c-b277-3c4e6c3cc04d}</uuid>
441 <visible>true</visible>
442 <midichan>0</midichan>
443 <midicc>0</midicc>
444 <label>Number
445 of Bins</label>
446 <alignment>right</alignment>
447 <font>Arial</font>
448 <fontsize>10</fontsize>
449 <precision>3</precision>
450 <color>
451 <r>0</r>
452 <g>0</g>
453 <b>0</b>
454 </color>
455 <bgcolor mode="nobackground">
456 <r>255</r>
457 <g>255</g>
458 <b>255</b>
459 </bgcolor>
460 <bordermode>noborder</bordermode>
461 <borderradius>1</borderradius>
462 <borderwidth>1</borderwidth>
463 </bsbObject>
464 <bsbObject version="2" type="BSBLabel">
465 <objectName/>
466 <x>303</x>
467 <y>338</y>
468 <width>80</width>
469 <height>30</height>
470 <uuid>{c7b8f937-676e-40dd-99c4-9aadc4aafe48}</uuid>
471 <visible>true</visible>
472 <midichan>0</midichan>
473 <midicc>0</midicc>
474 <label>Bin Increment</label>
475 <alignment>right</alignment>
476 <font>Arial</font>
477 <fontsize>10</fontsize>
478 <precision>3</precision>
479 <color>
480 <r>0</r>
481 <g>0</g>
482 <b>0</b>
483 </color>
484 <bgcolor mode="nobackground">
485 <r>255</r>
486 <g>255</g>
487 <b>255</b>
488 </bgcolor>
489 <bordermode>noborder</bordermode>
490 <borderradius>1</borderradius>
491 <borderwidth>1</borderwidth>
492 </bsbObject>
493 <bsbObject version="2" type="BSBSpinBox">
494 <objectName>Bin_Increment</objectName>
495 <x>384</x>
496 <y>338</y>
497 <width>60</width>
498 <height>30</height>
499 <uuid>{f83a5be2-dec4-4c9f-a1c9-b584b0a8c120}</uuid>
500 <visible>true</visible>
501 <midichan>0</midichan>
502 <midicc>0</midicc>
503 <alignment>left</alignment>
504 <font>Arial</font>
505 <fontsize>14</fontsize>
506 <color>
507 <r>0</r>
508 <g>0</g>
509 <b>0</b>
510 </color>
511 <bgcolor mode="nobackground">
512 <r>255</r>
513 <g>255</g>
514 <b>255</b>
515 </bgcolor>
516 <resolution>1.00000000</resolution>
517 <minimum>1</minimum>
518 <maximum>4</maximum>
519 <randomizable group="0">false</randomizable>
520 <value>1</value>
521 </bsbObject>
522 <bsbObject version="2" type="BSBLabel">
523 <objectName/>
524 <x>8</x>
525 <y>441</y>
526 <width>150</width>
527 <height>30</height>
528 <uuid>{936f6eb0-5225-4bd7-a5fe-a49df1c9c5ac}</uuid>
529 <visible>true</visible>
530 <midichan>0</midichan>
531 <midicc>0</midicc>
532 <label>Analysis File</label>
533 <alignment>left</alignment>
534 <font>Arial</font>
535 <fontsize>10</fontsize>
536 <precision>3</precision>
537 <color>
538 <r>0</r>
539 <g>0</g>
540 <b>0</b>
541 </color>
542 <bgcolor mode="nobackground">
543 <r>255</r>
544 <g>255</g>
545 <b>255</b>
546 </bgcolor>
547 <bordermode>noborder</bordermode>
548 <borderradius>1</borderradius>
549 <borderwidth>1</borderwidth>
550 </bsbObject>
551 <bsbObject version="2" type="BSBLabel">
552 <objectName/>
553 <x>162</x>
554 <y>283</y>
555 <width>80</width>
556 <height>40</height>
557 <uuid>{2389fd37-3d82-4b68-908e-cabc2131db46}</uuid>
558 <visible>true</visible>
559 <midichan>0</midichan>
560 <midicc>0</midicc>
561 <label>Frequency
562 Limit</label>
563 <alignment>right</alignment>
564 <font>Arial</font>
565 <fontsize>10</fontsize>
566 <precision>3</precision>
567 <color>
568 <r>0</r>
569 <g>0</g>
570 <b>0</b>
571 </color>
572 <bgcolor mode="nobackground">
573 <r>255</r>
574 <g>255</g>
575 <b>255</b>
576 </bgcolor>
577 <bordermode>noborder</bordermode>
578 <borderradius>1</borderradius>
579 <borderwidth>1</borderwidth>
580 </bsbObject>
581 <bsbObject version="2" type="BSBSpinBox">
582 <objectName>Frequency_Limit</objectName>
583 <x>242</x>
584 <y>283</y>
585 <width>50</width>
586 <height>30</height>
587 <uuid>{8f4e9b38-a8c5-4e7b-ab35-16285fab7d46}</uuid>
588 <visible>true</visible>
589 <midichan>0</midichan>
590 <midicc>0</midicc>
591 <alignment>left</alignment>
592 <font>Arial</font>
593 <fontsize>14</fontsize>
594 <color>
595 <r>0</r>
596 <g>0</g>
597 <b>0</b>
598 </color>
599 <bgcolor mode="nobackground">
600 <r>255</r>
601 <g>255</g>
602 <b>255</b>
603 </bgcolor>
604 <resolution>1.00000000</resolution>
605 <minimum>0</minimum>
606 <maximum>20</maximum>
607 <randomizable group="0">false</randomizable>
608 <value>0</value>
609 </bsbObject>
610 <bsbObject version="2" type="BSBLabel">
611 <objectName/>
612 <x>305</x>
613 <y>262</y>
614 <width>120</width>
615 <height>30</height>
616 <uuid>{3a6af7c2-dd44-4bd8-af21-c500e52ce7da}</uuid>
617 <visible>true</visible>
618 <midichan>0</midichan>
619 <midicc>0</midicc>
620 <label>Gating Function</label>
621 <alignment>left</alignment>
622 <font>Arial</font>
623 <fontsize>10</fontsize>
624 <precision>3</precision>
625 <color>
626 <r>0</r>
627 <g>0</g>
628 <b>0</b>
629 </color>
630 <bgcolor mode="nobackground">
631 <r>255</r>
632 <g>255</g>
633 <b>255</b>
634 </bgcolor>
635 <bordermode>noborder</bordermode>
636 <borderradius>1</borderradius>
637 <borderwidth>1</borderwidth>
638 </bsbObject>
639 <bsbObject version="2" type="BSBLabel">
640 <objectName/>
641 <x>8</x>
642 <y>98</y>
643 <width>180</width>
644 <height>30</height>
645 <uuid>{f4029fbc-c802-493b-aacb-44a251dfd70c}</uuid>
646 <visible>true</visible>
647 <midichan>0</midichan>
648 <midicc>0</midicc>
649 <label>Pitch (portamento applied)</label>
650 <alignment>left</alignment>
651 <font>Arial</font>
652 <fontsize>10</fontsize>
653 <precision>3</precision>
654 <color>
655 <r>0</r>
656 <g>0</g>
657 <b>0</b>
658 </color>
659 <bgcolor mode="nobackground">
660 <r>255</r>
661 <g>255</g>
662 <b>255</b>
663 </bgcolor>
664 <bordermode>noborder</bordermode>
665 <borderradius>1</borderradius>
666 <borderwidth>1</borderwidth>
667 </bsbObject>
668 <bsbObject version="2" type="BSBHSlider">
669 <objectName>Pitch</objectName>
670 <x>8</x>
671 <y>81</y>
672 <width>500</width>
673 <height>27</height>
674 <uuid>{b5b98b11-0602-412e-9830-0bbe82f5476b}</uuid>
675 <visible>true</visible>
676 <midichan>0</midichan>
677 <midicc>0</midicc>
678 <minimum>0.00000000</minimum>
679 <maximum>1.00000000</maximum>
680 <value>0.60600000</value>
681 <mode>lin</mode>
682 <mouseControl act="jump">continuous</mouseControl>
683 <resolution>-1.00000000</resolution>
684 <randomizable group="0">false</randomizable>
685 </bsbObject>
686 <bsbObject version="2" type="BSBDisplay">
687 <objectName>Pitch_Value</objectName>
688 <x>448</x>
689 <y>98</y>
690 <width>60</width>
691 <height>30</height>
692 <uuid>{aa9d2e59-a8e3-4b3d-a00a-04fcecc3d502}</uuid>
693 <visible>true</visible>
694 <midichan>0</midichan>
695 <midicc>0</midicc>
696 <label>1.554</label>
697 <alignment>right</alignment>
698 <font>Arial</font>
699 <fontsize>9</fontsize>
700 <precision>3</precision>
701 <color>
702 <r>0</r>
703 <g>0</g>
704 <b>0</b>
705 </color>
706 <bgcolor mode="nobackground">
707 <r>255</r>
708 <g>255</g>
709 <b>255</b>
710 </bgcolor>
711 <bordermode>noborder</bordermode>
712 <borderradius>1</borderradius>
713 <borderwidth>1</borderwidth>
714 </bsbObject>
715 <bsbObject version="2" type="BSBLabel">
716 <objectName/>
717 <x>8</x>
718 <y>136</y>
719 <width>180</width>
720 <height>30</height>
721 <uuid>{a9a9faee-c907-4aff-ad05-6a70bd9d06ac}</uuid>
722 <visible>true</visible>
723 <midichan>0</midichan>
724 <midicc>0</midicc>
725 <label>Pointer (portamento applied)</label>
726 <alignment>left</alignment>
727 <font>Arial</font>
728 <fontsize>10</fontsize>
729 <precision>3</precision>
730 <color>
731 <r>0</r>
732 <g>0</g>
733 <b>0</b>
734 </color>
735 <bgcolor mode="nobackground">
736 <r>255</r>
737 <g>255</g>
738 <b>255</b>
739 </bgcolor>
740 <bordermode>noborder</bordermode>
741 <borderradius>1</borderradius>
742 <borderwidth>1</borderwidth>
743 </bsbObject>
744 <bsbObject version="2" type="BSBHSlider">
745 <objectName>Pointer</objectName>
746 <x>8</x>
747 <y>119</y>
748 <width>500</width>
749 <height>27</height>
750 <uuid>{360b66e8-758f-4ff0-a7df-169be9d8760b}</uuid>
751 <visible>true</visible>
752 <midichan>0</midichan>
753 <midicc>0</midicc>
754 <minimum>0.00000000</minimum>
755 <maximum>1.00000000</maximum>
756 <value>0.50000000</value>
757 <mode>lin</mode>
758 <mouseControl act="jump">continuous</mouseControl>
759 <resolution>-1.00000000</resolution>
760 <randomizable group="0">false</randomizable>
761 </bsbObject>
762 <bsbObject version="2" type="BSBDisplay">
763 <objectName>Pointer</objectName>
764 <x>448</x>
765 <y>136</y>
766 <width>60</width>
767 <height>30</height>
768 <uuid>{7ecbe521-c05c-45c2-b743-43681fcab991}</uuid>
769 <visible>true</visible>
770 <midichan>0</midichan>
771 <midicc>0</midicc>
772 <label>0.500</label>
773 <alignment>right</alignment>
774 <font>Arial</font>
775 <fontsize>9</fontsize>
776 <precision>3</precision>
777 <color>
778 <r>0</r>
779 <g>0</g>
780 <b>0</b>
781 </color>
782 <bgcolor mode="nobackground">
783 <r>255</r>
784 <g>255</g>
785 <b>255</b>
786 </bgcolor>
787 <bordermode>noborder</bordermode>
788 <borderradius>1</borderradius>
789 <borderwidth>1</borderwidth>
790 </bsbObject>
791 <bsbObject version="2" type="BSBLabel">
792 <objectName/>
793 <x>8</x>
794 <y>174</y>
795 <width>180</width>
796 <height>30</height>
797 <uuid>{dee4e931-c60f-43f0-87e8-f62fd0c449fb}</uuid>
798 <visible>true</visible>
799 <midichan>0</midichan>
800 <midicc>0</midicc>
801 <label>Speed</label>
802 <alignment>left</alignment>
803 <font>Arial</font>
804 <fontsize>10</fontsize>
805 <precision>3</precision>
806 <color>
807 <r>0</r>
808 <g>0</g>
809 <b>0</b>
810 </color>
811 <bgcolor mode="nobackground">
812 <r>255</r>
813 <g>255</g>
814 <b>255</b>
815 </bgcolor>
816 <bordermode>noborder</bordermode>
817 <borderradius>1</borderradius>
818 <borderwidth>1</borderwidth>
819 </bsbObject>
820 <bsbObject version="2" type="BSBHSlider">
821 <objectName>Speed</objectName>
822 <x>8</x>
823 <y>157</y>
824 <width>500</width>
825 <height>27</height>
826 <uuid>{5d7eeb71-9608-4e1b-be84-48362e1fd850}</uuid>
827 <visible>true</visible>
828 <midichan>0</midichan>
829 <midicc>0</midicc>
830 <minimum>-5.00000000</minimum>
831 <maximum>5.00000000</maximum>
832 <value>1.00000000</value>
833 <mode>lin</mode>
834 <mouseControl act="jump">continuous</mouseControl>
835 <resolution>-1.00000000</resolution>
836 <randomizable group="0">false</randomizable>
837 </bsbObject>
838 <bsbObject version="2" type="BSBDisplay">
839 <objectName>Speed</objectName>
840 <x>448</x>
841 <y>174</y>
842 <width>60</width>
843 <height>30</height>
844 <uuid>{ad9154fb-3e69-43ab-87cb-3dab2a26cde6}</uuid>
845 <visible>true</visible>
846 <midichan>0</midichan>
847 <midicc>0</midicc>
848 <label>1.000</label>
849 <alignment>right</alignment>
850 <font>Arial</font>
851 <fontsize>9</fontsize>
852 <precision>3</precision>
853 <color>
854 <r>0</r>
855 <g>0</g>
856 <b>0</b>
857 </color>
858 <bgcolor mode="nobackground">
859 <r>255</r>
860 <g>255</g>
861 <b>255</b>
862 </bgcolor>
863 <bordermode>noborder</bordermode>
864 <borderradius>1</borderradius>
865 <borderwidth>1</borderwidth>
866 </bsbObject>
867 <bsbObject version="2" type="BSBLabel">
868 <objectName/>
869 <x>8</x>
870 <y>212</y>
871 <width>180</width>
872 <height>30</height>
873 <uuid>{2e52a7a7-dc13-405e-896d-db2a7431d8dd}</uuid>
874 <visible>true</visible>
875 <midichan>0</midichan>
876 <midicc>0</midicc>
877 <label>Amplitude</label>
878 <alignment>left</alignment>
879 <font>Arial</font>
880 <fontsize>10</fontsize>
881 <precision>3</precision>
882 <color>
883 <r>0</r>
884 <g>0</g>
885 <b>0</b>
886 </color>
887 <bgcolor mode="nobackground">
888 <r>255</r>
889 <g>255</g>
890 <b>255</b>
891 </bgcolor>
892 <bordermode>noborder</bordermode>
893 <borderradius>1</borderradius>
894 <borderwidth>1</borderwidth>
895 </bsbObject>
896 <bsbObject version="2" type="BSBHSlider">
897 <objectName>Amplitude</objectName>
898 <x>8</x>
899 <y>195</y>
900 <width>500</width>
901 <height>27</height>
902 <uuid>{6ab84e0f-82a7-4b9c-af23-35bd7d9b7fa2}</uuid>
903 <visible>true</visible>
904 <midichan>0</midichan>
905 <midicc>0</midicc>
906 <minimum>0.00000000</minimum>
907 <maximum>1.00000000</maximum>
908 <value>0.55000000</value>
909 <mode>lin</mode>
910 <mouseControl act="jump">continuous</mouseControl>
911 <resolution>-1.00000000</resolution>
912 <randomizable group="0">false</randomizable>
913 </bsbObject>
914 <bsbObject version="2" type="BSBDisplay">
915 <objectName>Amplitude</objectName>
916 <x>448</x>
917 <y>212</y>
918 <width>60</width>
919 <height>30</height>
920 <uuid>{99d6bf8b-3c85-4911-a29a-7dd678a940ed}</uuid>
921 <visible>true</visible>
922 <midichan>0</midichan>
923 <midicc>0</midicc>
924 <label>0.550</label>
925 <alignment>right</alignment>
926 <font>Arial</font>
927 <fontsize>9</fontsize>
928 <precision>3</precision>
929 <color>
930 <r>0</r>
931 <g>0</g>
932 <b>0</b>
933 </color>
934 <bgcolor mode="nobackground">
935 <r>255</r>
936 <g>255</g>
937 <b>255</b>
938 </bgcolor>
939 <bordermode>noborder</bordermode>
940 <borderradius>1</borderradius>
941 <borderwidth>1</borderwidth>
942 </bsbObject>
943 <bsbObject version="2" type="BSBDropdown">
944 <objectName>Pointer_Switch</objectName>
945 <x>380</x>
946 <y>6</y>
947 <width>130</width>
948 <height>30</height>
949 <uuid>{29a37c71-8767-4302-9132-7a1c2f4b7917}</uuid>
950 <visible>true</visible>
951 <midichan>0</midichan>
952 <midicc>0</midicc>
953 <bsbDropdownItemList>
954 <bsbDropdownItem>
955 <name>Pointer</name>
956 <value>0</value>
957 <stringvalue/>
958 </bsbDropdownItem>
959 <bsbDropdownItem>
960 <name>Speed Control</name>
961 <value>1</value>
962 <stringvalue/>
963 </bsbDropdownItem>
964 </bsbDropdownItemList>
965 <selectedIndex>1</selectedIndex>
966 <randomizable group="0">false</randomizable>
967 </bsbObject>
968 <bsbObject version="2" type="BSBDropdown">
969 <objectName>Extract_Mode</objectName>
970 <x>17</x>
971 <y>283</y>
972 <width>130</width>
973 <height>30</height>
974 <uuid>{6a55c957-42d0-48b7-b636-c5cbb2adc7d9}</uuid>
975 <visible>true</visible>
976 <midichan>0</midichan>
977 <midicc>0</midicc>
978 <bsbDropdownItemList>
979 <bsbDropdownItem>
980 <name>Off</name>
981 <value>0</value>
982 <stringvalue/>
983 </bsbDropdownItem>
984 <bsbDropdownItem>
985 <name>> Freq Limit</name>
986 <value>1</value>
987 <stringvalue/>
988 </bsbDropdownItem>
989 <bsbDropdownItem>
990 <name>&lt; Freq Limit</name>
991 <value>2</value>
992 <stringvalue/>
993 </bsbDropdownItem>
994 </bsbDropdownItemList>
995 <selectedIndex>0</selectedIndex>
996 <randomizable group="0">false</randomizable>
997 </bsbObject>
998 <bsbObject version="2" type="BSBLabel">
999 <objectName/>
1000 <x>17</x>
1001 <y>262</y>
1002 <width>120</width>
1003 <height>30</height>
1004 <uuid>{47e9a2f7-66fe-45f6-965c-a52c28b135dc}</uuid>
1005 <visible>true</visible>
1006 <midichan>0</midichan>
1007 <midicc>0</midicc>
1008 <label>Extract Mode</label>
1009 <alignment>left</alignment>
1010 <font>Arial</font>
1011 <fontsize>10</fontsize>
1012 <precision>3</precision>
1013 <color>
1014 <r>0</r>
1015 <g>0</g>
1016 <b>0</b>
1017 </color>
1018 <bgcolor mode="nobackground">
1019 <r>255</r>
1020 <g>255</g>
1021 <b>255</b>
1022 </bgcolor>
1023 <bordermode>noborder</bordermode>
1024 <borderradius>1</borderradius>
1025 <borderwidth>1</borderwidth>
1026 </bsbObject>
1027 <bsbObject version="2" type="BSBLabel">
1028 <objectName/>
1029 <x>21</x>
1030 <y>397</y>
1031 <width>140</width>
1032 <height>30</height>
1033 <uuid>{b36ff54c-8bf2-485d-b9e6-018d62264981}</uuid>
1034 <visible>true</visible>
1035 <midichan>0</midichan>
1036 <midicc>0</midicc>
1037 <label>Resynthesis Waveform</label>
1038 <alignment>right</alignment>
1039 <font>Arial</font>
1040 <fontsize>10</fontsize>
1041 <precision>3</precision>
1042 <color>
1043 <r>0</r>
1044 <g>0</g>
1045 <b>0</b>
1046 </color>
1047 <bgcolor mode="nobackground">
1048 <r>255</r>
1049 <g>255</g>
1050 <b>255</b>
1051 </bgcolor>
1052 <bordermode>noborder</bordermode>
1053 <borderradius>1</borderradius>
1054 <borderwidth>1</borderwidth>
1055 </bsbObject>
1056 <bsbObject version="2" type="BSBDropdown">
1057 <objectName>Waveform</objectName>
1058 <x>163</x>
1059 <y>397</y>
1060 <width>130</width>
1061 <height>30</height>
1062 <uuid>{49e8c10d-446d-4971-aafa-0027f1e08ef7}</uuid>
1063 <visible>true</visible>
1064 <midichan>0</midichan>
1065 <midicc>0</midicc>
1066 <bsbDropdownItemList>
1067 <bsbDropdownItem>
1068 <name>Sine</name>
1069 <value>0</value>
1070 <stringvalue/>
1071 </bsbDropdownItem>
1072 <bsbDropdownItem>
1073 <name>Square</name>
1074 <value>1</value>
1075 <stringvalue/>
1076 </bsbDropdownItem>
1077 <bsbDropdownItem>
1078 <name>Sawtooth Up</name>
1079 <value>2</value>
1080 <stringvalue/>
1081 </bsbDropdownItem>
1082 <bsbDropdownItem>
1083 <name>Triangle</name>
1084 <value>3</value>
1085 <stringvalue/>
1086 </bsbDropdownItem>
1087 </bsbDropdownItemList>
1088 <selectedIndex>2</selectedIndex>
1089 <randomizable group="0">false</randomizable>
1090 </bsbObject>
1091 <bsbObject version="2" type="BSBDropdown">
1092 <objectName>Gating_Function</objectName>
1093 <x>305</x>
1094 <y>283</y>
1095 <width>190</width>
1096 <height>29</height>
1097 <uuid>{d472f7b4-25f1-4edd-b0d1-a7a026bb9a39}</uuid>
1098 <visible>true</visible>
1099 <midichan>0</midichan>
1100 <midicc>0</midicc>
1101 <bsbDropdownItemList>
1102 <bsbDropdownItem>
1103 <name>Off</name>
1104 <value>0</value>
1105 <stringvalue/>
1106 </bsbDropdownItem>
1107 <bsbDropdownItem>
1108 <name>Amp &lt; 50% attenuated</name>
1109 <value>1</value>
1110 <stringvalue/>
1111 </bsbDropdownItem>
1112 <bsbDropdownItem>
1113 <name>Amp spectrum inverted</name>
1114 <value>2</value>
1115 <stringvalue/>
1116 </bsbDropdownItem>
1117 </bsbDropdownItemList>
1118 <selectedIndex>0</selectedIndex>
1119 <randomizable group="0">false</randomizable>
1120 </bsbObject>
1121 </bsbPanel>
1122 <bsbPresets>
1123 </bsbPresets>
1124 <EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="false" loopStart="0" loopEnd="0"> </EventPanel>