Debian Codegraph @

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

raw
1 ;Written by Iain McCurdy 2009
2
3 ;Modified for QuteCsound by René, September 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
8
9 ;my flags on Ubuntu: -iadc -odac -b1024 -B2048 -+rtaudio=alsa -+rtmidi=null -m0
10 <CsoundSynthesizer>
11 <CsOptions>
12
13 </CsOptions>
14 <CsInstruments>
15 sr = 44100 ;SAMPLE RATE
16 ksmps = 1 ;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 giphasor ftgen 0, 0, 65536, 7, 0, 65536, 1 ;WAVE SHAPE FOR A MOVING PHASE POINTER
22
23 giFFTattributes0 ftgen 1, 0, 4, -2, 512, 256, 1024, 1
24 giFFTattributes1 ftgen 2, 0, 4, -2, 1024, 256, 1024, 1
25 giFFTattributes2 ftgen 3, 0, 4, -2, 2048, 256, 2048, 1
26 giFFTattributes3 ftgen 4, 0, 4, -2, 2048, 128, 2048, 1
27 giFFTattributes4 ftgen 5, 0, 4, -2, 4096, 128, 4096, 1
28
29
30 instr 10 ;GUI
31 ktrig metro 10
32 if (ktrig == 1) then
33 gkInGain invalue "Input_Gain" ;init 1.0
34 gkbuflen invalue "Buffer_Length" ;init 1.0
35 gkphrange invalue "Phasor_Range" ;init 1.0
36 gkspeed invalue "Phasor_Speed" ;init 1.0
37 gkPhOffset invalue "Phasor_Offset" ;init 0.0
38 gkscal invalue "Pitch_Rescale" ;init 0.0
39 gkfbratio invalue "Feedback_Ratio" ;init 0.0
40 gkdirect invalue "Direct" ;init 0.0
41 gkOutGain invalue "Output_Gain" ;init 1.0
42 gkwrite invalue "Write_Pointer"
43 gkread invalue "Read_Pointer"
44
45 gkWriteEnable invalue "Write_Buffer" ;init 1
46 gkSyncToWrite invalue "Sync_Write"
47 gkFFTattributes invalue "FFTattributes" ;init 1
48 endif
49 endin
50
51 instr 1
52 kSwitch changed gkFFTattributes, gkbuflen ;GENERATE A MOMENTARY '1' PULSE IN OUTPUT 'kSwitch' IF ANY OF THE SCANNED INPUT VARIABLES CHANGE. (OUTPUT 'kSwitch' IS NORMALLY ZERO)
53 if kSwitch=1 then
54 reinit UPDATE
55 endif
56 UPDATE:
57 afeedback init 0 ;INITIALISE FEEDBACK SIGNAL (FOR FIRST PASS)
58 ain inch 1 ;READ AUDIO FROM 1ST INPUT CHANNEL (LEFT)
59 ain = ain*gkInGain ;SCALE INPUT WITH 'Input Gain' SLIDER
60 ain = ain + afeedback ;ADD FEEDBACK SIGNAL TO INPUT SIGNAL
61 ibuflen = i(gkbuflen) ;CREATE I-RATE VERSION OF BUFFER LENGTH
62
63 iFFTsize table 0, i(gkFFTattributes)+1
64 ioverlap table 1, i(gkFFTattributes)+1
65 iwinsize table 2, i(gkFFTattributes)+1
66 iwintype table 3, i(gkFFTattributes)+1
67
68 fsig1 pvsanal ain, iFFTsize, ioverlap, iwinsize, iwintype ;ANALYSE THE AUDIO SIGNAL THAT WAS CREATED IN INSTRUMENT 1. OUTPUT AN F-SIGNAL.
69
70 if gkWriteEnable=1 then
71 ibuffer,ktime pvsbuffer fsig1, ibuflen ;BUFFER FSIG
72 endif
73 khandle init ibuffer ;INITIALISE HANDLE TO BUFFER
74 if gkSyncToWrite=0 then
75 aread osciliktp gkspeed/ibuflen, giphasor, gkPhOffset ;CREATE MOVING POINTER TO READ FROM BUFFER
76 kread downsamp aread ;DOWNSAMPLE BUFFER TO K-RATE, pvsbufread ONLY ACCEPTS A K-RATE POINTER
77 kread = kread * gkphrange * ibuflen ;RESCALE READ POINTER WITH PHASOR RANGE SLIDER
78 elseif gkSyncToWrite=1 then
79 kread = ktime ;SYNC TO WRITE POINTER
80 kread = kread + (gkPhOffset * ibuflen) ;ADD PHASE OFFSET AND SCALE ACCORDING TO BUFFER LENGTH
81 kread wrap kread, 0, ibuflen ;WRAP-AROUND READ POINTER VALUE TO PREVENT OUT OF RANGE VALUES
82 endif
83 fsig2 pvsbufread kread , khandle ;READ BUFFER
84 kscal = cpsoct(gkscal+8)/cpsoct(8) ;CREATE PITCH RESCALING VARIABLE
85
86 ;OUTPUT OPCODE INPUT | RESCALE_VALUE | FORMANT_MODE | GAIN
87 fsig3 pvscale fsig2, kscal ;RESCALE THE FREQUENCY VALUES ACCORDING TO THE INPUT ARGUMENT gkscal.
88
89 aresyn pvsynth fsig3 ;RESYNTHESIZE THE f-SIGNAL AS AN AUDIO SIGNAL
90 afeedback = aresyn * gkfbratio ;CREATE FEEDBACK SIGNAL FOR NEXT PASS THROUGH THE CODE
91 aout = (aresyn*gkOutGain*2)+(ain*gkdirect) ;CREATE OUTPUT SIGNAL
92 outs aout, aout
93
94 ktrigger metro 10
95 if ktrigger == 1 then
96 outvalue "Write_Pointer", ktime
97 outvalue "Read_Pointer", kread
98 endif
99 rireturn
100 endin
101
102 instr 2 ;FREEZE POINTER
103 ;THIS INSTRUMENT FREEZES POINTER MOVEMENT BY SIMPLY SETTING READ POINTER FREQUENCY TO ZERO
104 outvalue "Phasor_Speed", 0
105 endin
106
107 instr 3 ;SET READ POINTER PHASE OFFSET TO ZERO
108 outvalue "Phasor_Offset", 0
109 endin
110
111 instr 4 ;SET PITCH RESCALE TO ZERO
112 outvalue "Pitch_Rescale", 0
113 endin
114 </CsInstruments>
115 <CsScore>
116 ;INSTR | START | DURATION
117 i 10 0 3600 ;GUI
118 </CsScore>
119 </CsoundSynthesizer><bsbPanel>
120 <label>Widgets</label>
121 <objectName/>
122 <x>280</x>
123 <y>258</y>
124 <width>872</width>
125 <height>618</height>
126 <visible>true</visible>
127 <uuid/>
128 <bgcolor mode="background">
129 <r>241</r>
130 <g>226</g>
131 <b>185</b>
132 </bgcolor>
133 <bsbObject version="2" type="BSBLabel">
134 <objectName/>
135 <x>2</x>
136 <y>2</y>
137 <width>514</width>
138 <height>614</height>
139 <uuid>{aa607456-d368-4d59-8497-d16d608404c3}</uuid>
140 <visible>true</visible>
141 <midichan>0</midichan>
142 <midicc>0</midicc>
143 <label>pvsbuffer pvsbufread</label>
144 <alignment>center</alignment>
145 <font>Liberation Sans</font>
146 <fontsize>18</fontsize>
147 <precision>3</precision>
148 <color>
149 <r>0</r>
150 <g>0</g>
151 <b>0</b>
152 </color>
153 <bgcolor mode="background">
154 <r>181</r>
155 <g>199</g>
156 <b>255</b>
157 </bgcolor>
158 <bordermode>border</bordermode>
159 <borderradius>5</borderradius>
160 <borderwidth>2</borderwidth>
161 </bsbObject>
162 <bsbObject version="2" type="BSBLabel">
163 <objectName/>
164 <x>517</x>
165 <y>2</y>
166 <width>348</width>
167 <height>614</height>
168 <uuid>{74928ed2-b701-4668-9a11-74763d317e9b}</uuid>
169 <visible>true</visible>
170 <midichan>0</midichan>
171 <midicc>0</midicc>
172 <label>pvsbuffer pvsbufread</label>
173 <alignment>center</alignment>
174 <font>Liberation Sans</font>
175 <fontsize>18</fontsize>
176 <precision>3</precision>
177 <color>
178 <r>0</r>
179 <g>0</g>
180 <b>0</b>
181 </color>
182 <bgcolor mode="background">
183 <r>181</r>
184 <g>199</g>
185 <b>255</b>
186 </bgcolor>
187 <bordermode>border</bordermode>
188 <borderradius>5</borderradius>
189 <borderwidth>2</borderwidth>
190 </bsbObject>
191 <bsbObject version="2" type="BSBLabel">
192 <objectName/>
193 <x>519</x>
194 <y>19</y>
195 <width>343</width>
196 <height>594</height>
197 <uuid>{d4bdb5ce-87d8-4c8c-9c64-40ec2eed6f5a}</uuid>
198 <visible>true</visible>
199 <midichan>0</midichan>
200 <midicc>0</midicc>
201 <label>-----------------------------------------------------------------------------------
202 pvsbuffer writes an fsig into a circular buffer (of user definable duration using the 'Buffer Length' slider). Progress of writing into the buffer is displayed by the moving red bar. pvsbufread reads the fsig from this buffer using a k-rate pointer. This pointer can be moved freely so playback can be slower, faster, frozen or backwards. In this example a moving phase pointer has been created using the oscilktp opcode to read from the buffer. The user can vary the range, speed and offset of the pointer. The progress of the read pointer is displayed by the moving green bar. Clicking the 'Freeze' button is simply an easy way of setting 'Read Phasor Speed' to zero. Selecting 'Sync To Write' will synchronise the read pointer to the write pointer. Adjusting 'Read Phasor Offset' will shift the read pointer's location with respect to the write pointer. 'Read Phasor Speed' and 'Read Phasor Range' will have no effect when this mode is active. De-selecting the 'Write To Buffer' button will deactivate writing to the buffer.
203 This will therefore prevent overwriting of the buffer allowing the user to manipulate a fixed chunk of sound. This switch needs to initially be active in order to first fill the buffer. The output fsig from the pvsbufread is passed through a pvscale opcode which allows the pitch to be rescaled before being resynthesized and sent to the outputs. Additionally a feedback loop permits some or all of the output signal to be fed back into the input. The user can select between a variety of combinations of parameters for the FFT analysis. Larger values for FFT size will give better harmonic reproduction but greater time smearing effects and higher computational cost. Lower values will result in less time smearing but greater harmonic distortion. This example uses the computer's live input (channel 1/left) as input.</label>
204 <alignment>left</alignment>
205 <font>Arial</font>
206 <fontsize>14</fontsize>
207 <precision>3</precision>
208 <color>
209 <r>0</r>
210 <g>0</g>
211 <b>0</b>
212 </color>
213 <bgcolor mode="nobackground">
214 <r>255</r>
215 <g>255</g>
216 <b>255</b>
217 </bgcolor>
218 <bordermode>noborder</bordermode>
219 <borderradius>1</borderradius>
220 <borderwidth>1</borderwidth>
221 </bsbObject>
222 <bsbObject version="2" type="BSBButton">
223 <objectName/>
224 <x>8</x>
225 <y>8</y>
226 <width>100</width>
227 <height>30</height>
228 <uuid>{24979132-c53f-4414-ac6b-6b4f503ecfe8}</uuid>
229 <visible>true</visible>
230 <midichan>0</midichan>
231 <midicc>0</midicc>
232 <type>event</type>
233 <pressedValue>1.00000000</pressedValue>
234 <stringvalue/>
235 <text> ON / OFF</text>
236 <image>/</image>
237 <eventLine>i 1 0 -1</eventLine>
238 <latch>true</latch>
239 <latched>false</latched>
240 </bsbObject>
241 <bsbObject version="2" type="BSBDisplay">
242 <objectName>Input_Gain</objectName>
243 <x>450</x>
244 <y>71</y>
245 <width>60</width>
246 <height>30</height>
247 <uuid>{5ba6647c-7395-493b-94fb-2e39de38cae6}</uuid>
248 <visible>true</visible>
249 <midichan>0</midichan>
250 <midicc>0</midicc>
251 <label>0.190</label>
252 <alignment>right</alignment>
253 <font>Arial</font>
254 <fontsize>9</fontsize>
255 <precision>3</precision>
256 <color>
257 <r>0</r>
258 <g>0</g>
259 <b>0</b>
260 </color>
261 <bgcolor mode="nobackground">
262 <r>255</r>
263 <g>255</g>
264 <b>255</b>
265 </bgcolor>
266 <bordermode>noborder</bordermode>
267 <borderradius>1</borderradius>
268 <borderwidth>1</borderwidth>
269 </bsbObject>
270 <bsbObject version="2" type="BSBHSlider">
271 <objectName>Input_Gain</objectName>
272 <x>10</x>
273 <y>54</y>
274 <width>500</width>
275 <height>27</height>
276 <uuid>{2440dba1-0ca3-473e-9e1c-590341c95eaf}</uuid>
277 <visible>true</visible>
278 <midichan>0</midichan>
279 <midicc>0</midicc>
280 <minimum>0.00000000</minimum>
281 <maximum>1.00000000</maximum>
282 <value>0.19000000</value>
283 <mode>lin</mode>
284 <mouseControl act="jump">continuous</mouseControl>
285 <resolution>-1.00000000</resolution>
286 <randomizable group="0">false</randomizable>
287 </bsbObject>
288 <bsbObject version="2" type="BSBLabel">
289 <objectName/>
290 <x>10</x>
291 <y>71</y>
292 <width>150</width>
293 <height>30</height>
294 <uuid>{40ab6aec-b542-473a-97c1-8e1d3da00a5f}</uuid>
295 <visible>true</visible>
296 <midichan>0</midichan>
297 <midicc>0</midicc>
298 <label>Input Gain</label>
299 <alignment>left</alignment>
300 <font>Arial</font>
301 <fontsize>10</fontsize>
302 <precision>3</precision>
303 <color>
304 <r>0</r>
305 <g>0</g>
306 <b>0</b>
307 </color>
308 <bgcolor mode="nobackground">
309 <r>255</r>
310 <g>255</g>
311 <b>255</b>
312 </bgcolor>
313 <bordermode>noborder</bordermode>
314 <borderradius>1</borderradius>
315 <borderwidth>1</borderwidth>
316 </bsbObject>
317 <bsbObject version="2" type="BSBDisplay">
318 <objectName>Buffer_Length</objectName>
319 <x>450</x>
320 <y>112</y>
321 <width>60</width>
322 <height>30</height>
323 <uuid>{7760eb6e-e14b-485f-a2f6-46a3fb79fa71}</uuid>
324 <visible>true</visible>
325 <midichan>0</midichan>
326 <midicc>0</midicc>
327 <label>7.006</label>
328 <alignment>right</alignment>
329 <font>Arial</font>
330 <fontsize>9</fontsize>
331 <precision>3</precision>
332 <color>
333 <r>0</r>
334 <g>0</g>
335 <b>0</b>
336 </color>
337 <bgcolor mode="nobackground">
338 <r>255</r>
339 <g>255</g>
340 <b>255</b>
341 </bgcolor>
342 <bordermode>noborder</bordermode>
343 <borderradius>1</borderradius>
344 <borderwidth>1</borderwidth>
345 </bsbObject>
346 <bsbObject version="2" type="BSBHSlider">
347 <objectName>Buffer_Length</objectName>
348 <x>10</x>
349 <y>95</y>
350 <width>500</width>
351 <height>27</height>
352 <uuid>{daf328f8-0158-459b-9ed0-2f3c65031ad0}</uuid>
353 <visible>true</visible>
354 <midichan>0</midichan>
355 <midicc>0</midicc>
356 <minimum>0.01000000</minimum>
357 <maximum>20.00000000</maximum>
358 <value>7.00650000</value>
359 <mode>lin</mode>
360 <mouseControl act="jump">continuous</mouseControl>
361 <resolution>-1.00000000</resolution>
362 <randomizable group="0">false</randomizable>
363 </bsbObject>
364 <bsbObject version="2" type="BSBLabel">
365 <objectName/>
366 <x>10</x>
367 <y>112</y>
368 <width>150</width>
369 <height>30</height>
370 <uuid>{ca0b021c-8ec2-4628-ad65-be1b22eea34d}</uuid>
371 <visible>true</visible>
372 <midichan>0</midichan>
373 <midicc>0</midicc>
374 <label>Buffer Length (i-rate)</label>
375 <alignment>left</alignment>
376 <font>Arial</font>
377 <fontsize>10</fontsize>
378 <precision>3</precision>
379 <color>
380 <r>0</r>
381 <g>0</g>
382 <b>0</b>
383 </color>
384 <bgcolor mode="nobackground">
385 <r>255</r>
386 <g>255</g>
387 <b>255</b>
388 </bgcolor>
389 <bordermode>noborder</bordermode>
390 <borderradius>1</borderradius>
391 <borderwidth>1</borderwidth>
392 </bsbObject>
393 <bsbObject version="2" type="BSBLabel">
394 <objectName/>
395 <x>10</x>
396 <y>536</y>
397 <width>500</width>
398 <height>70</height>
399 <uuid>{f0c4875d-4e35-4d37-b043-9c1476025645}</uuid>
400 <visible>true</visible>
401 <midichan>0</midichan>
402 <midicc>0</midicc>
403 <label>FFT Attributes</label>
404 <alignment>left</alignment>
405 <font>Arial</font>
406 <fontsize>14</fontsize>
407 <precision>3</precision>
408 <color>
409 <r>0</r>
410 <g>0</g>
411 <b>0</b>
412 </color>
413 <bgcolor mode="nobackground">
414 <r>255</r>
415 <g>255</g>
416 <b>255</b>
417 </bgcolor>
418 <bordermode>border</bordermode>
419 <borderradius>3</borderradius>
420 <borderwidth>1</borderwidth>
421 </bsbObject>
422 <bsbObject version="2" type="BSBLabel">
423 <objectName/>
424 <x>169</x>
425 <y>542</y>
426 <width>300</width>
427 <height>30</height>
428 <uuid>{c2cdd204-e32b-488e-b5c2-70688fb2defa}</uuid>
429 <visible>true</visible>
430 <midichan>0</midichan>
431 <midicc>0</midicc>
432 <label>FFT Size - Overlap - Window Size - Window Type</label>
433 <alignment>left</alignment>
434 <font>Arial</font>
435 <fontsize>10</fontsize>
436 <precision>3</precision>
437 <color>
438 <r>0</r>
439 <g>0</g>
440 <b>0</b>
441 </color>
442 <bgcolor mode="nobackground">
443 <r>255</r>
444 <g>255</g>
445 <b>255</b>
446 </bgcolor>
447 <bordermode>noborder</bordermode>
448 <borderradius>1</borderradius>
449 <borderwidth>1</borderwidth>
450 </bsbObject>
451 <bsbObject version="2" type="BSBDropdown">
452 <objectName>FFTattributes</objectName>
453 <x>169</x>
454 <y>562</y>
455 <width>274</width>
456 <height>32</height>
457 <uuid>{c8c311f9-c1b7-4bbb-becf-9c9f1fa862c9}</uuid>
458 <visible>true</visible>
459 <midichan>0</midichan>
460 <midicc>0</midicc>
461 <bsbDropdownItemList>
462 <bsbDropdownItem>
463 <name>512 256 1024 1</name>
464 <value>0</value>
465 <stringvalue/>
466 </bsbDropdownItem>
467 <bsbDropdownItem>
468 <name>1024 256 1024 1</name>
469 <value>1</value>
470 <stringvalue/>
471 </bsbDropdownItem>
472 <bsbDropdownItem>
473 <name>2048 256 2048 1</name>
474 <value>2</value>
475 <stringvalue/>
476 </bsbDropdownItem>
477 <bsbDropdownItem>
478 <name>2048 128 2048 1</name>
479 <value>3</value>
480 <stringvalue/>
481 </bsbDropdownItem>
482 <bsbDropdownItem>
483 <name>4096 128 4096 1</name>
484 <value>4</value>
485 <stringvalue/>
486 </bsbDropdownItem>
487 </bsbDropdownItemList>
488 <selectedIndex>0</selectedIndex>
489 <randomizable group="0">false</randomizable>
490 </bsbObject>
491 <bsbObject version="2" type="BSBLabel">
492 <objectName/>
493 <x>10</x>
494 <y>192</y>
495 <width>150</width>
496 <height>30</height>
497 <uuid>{c5a959e6-b181-47c7-950c-1b5f1b071d1f}</uuid>
498 <visible>true</visible>
499 <midichan>0</midichan>
500 <midicc>0</midicc>
501 <label>Read Phasor Speed</label>
502 <alignment>left</alignment>
503 <font>Arial</font>
504 <fontsize>10</fontsize>
505 <precision>3</precision>
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 <bordermode>noborder</bordermode>
517 <borderradius>1</borderradius>
518 <borderwidth>1</borderwidth>
519 </bsbObject>
520 <bsbObject version="2" type="BSBHSlider">
521 <objectName>Phasor_Speed</objectName>
522 <x>10</x>
523 <y>175</y>
524 <width>500</width>
525 <height>27</height>
526 <uuid>{70b7db2b-b555-44b0-ad55-80890f452ebd}</uuid>
527 <visible>true</visible>
528 <midichan>0</midichan>
529 <midicc>0</midicc>
530 <minimum>-5.00000000</minimum>
531 <maximum>5.00000000</maximum>
532 <value>2.20000000</value>
533 <mode>lin</mode>
534 <mouseControl act="jump">continuous</mouseControl>
535 <resolution>-1.00000000</resolution>
536 <randomizable group="0">false</randomizable>
537 </bsbObject>
538 <bsbObject version="2" type="BSBDisplay">
539 <objectName>Phasor_Speed</objectName>
540 <x>450</x>
541 <y>192</y>
542 <width>60</width>
543 <height>30</height>
544 <uuid>{063807ca-da21-4e11-a78a-a60b3271ad0c}</uuid>
545 <visible>true</visible>
546 <midichan>0</midichan>
547 <midicc>0</midicc>
548 <label>2.200</label>
549 <alignment>right</alignment>
550 <font>Arial</font>
551 <fontsize>9</fontsize>
552 <precision>3</precision>
553 <color>
554 <r>0</r>
555 <g>0</g>
556 <b>0</b>
557 </color>
558 <bgcolor mode="nobackground">
559 <r>255</r>
560 <g>255</g>
561 <b>255</b>
562 </bgcolor>
563 <bordermode>noborder</bordermode>
564 <borderradius>1</borderradius>
565 <borderwidth>1</borderwidth>
566 </bsbObject>
567 <bsbObject version="2" type="BSBLabel">
568 <objectName/>
569 <x>10</x>
570 <y>152</y>
571 <width>150</width>
572 <height>30</height>
573 <uuid>{a560559b-2cc6-4f8a-aa5f-72c133e739ee}</uuid>
574 <visible>true</visible>
575 <midichan>0</midichan>
576 <midicc>0</midicc>
577 <label>Read Phasor Range</label>
578 <alignment>left</alignment>
579 <font>Arial</font>
580 <fontsize>10</fontsize>
581 <precision>3</precision>
582 <color>
583 <r>0</r>
584 <g>0</g>
585 <b>0</b>
586 </color>
587 <bgcolor mode="nobackground">
588 <r>255</r>
589 <g>255</g>
590 <b>255</b>
591 </bgcolor>
592 <bordermode>noborder</bordermode>
593 <borderradius>1</borderradius>
594 <borderwidth>1</borderwidth>
595 </bsbObject>
596 <bsbObject version="2" type="BSBHSlider">
597 <objectName>Phasor_Range</objectName>
598 <x>10</x>
599 <y>135</y>
600 <width>500</width>
601 <height>27</height>
602 <uuid>{99363b37-c4e4-409f-a17d-07f383f5698e}</uuid>
603 <visible>true</visible>
604 <midichan>0</midichan>
605 <midicc>0</midicc>
606 <minimum>0.00000000</minimum>
607 <maximum>1.00000000</maximum>
608 <value>0.90600000</value>
609 <mode>lin</mode>
610 <mouseControl act="jump">continuous</mouseControl>
611 <resolution>-1.00000000</resolution>
612 <randomizable group="0">false</randomizable>
613 </bsbObject>
614 <bsbObject version="2" type="BSBDisplay">
615 <objectName>Phasor_Range</objectName>
616 <x>450</x>
617 <y>152</y>
618 <width>60</width>
619 <height>30</height>
620 <uuid>{58be2bf8-bcdd-44ef-b4a5-68d454edcae5}</uuid>
621 <visible>true</visible>
622 <midichan>0</midichan>
623 <midicc>0</midicc>
624 <label>0.906</label>
625 <alignment>right</alignment>
626 <font>Arial</font>
627 <fontsize>9</fontsize>
628 <precision>3</precision>
629 <color>
630 <r>0</r>
631 <g>0</g>
632 <b>0</b>
633 </color>
634 <bgcolor mode="nobackground">
635 <r>255</r>
636 <g>255</g>
637 <b>255</b>
638 </bgcolor>
639 <bordermode>noborder</bordermode>
640 <borderradius>1</borderradius>
641 <borderwidth>1</borderwidth>
642 </bsbObject>
643 <bsbObject version="2" type="BSBButton">
644 <objectName/>
645 <x>174</x>
646 <y>201</y>
647 <width>120</width>
648 <height>21</height>
649 <uuid>{80fc2cb9-9f75-49b7-bab9-b55e2180b5f6}</uuid>
650 <visible>true</visible>
651 <midichan>0</midichan>
652 <midicc>0</midicc>
653 <type>event</type>
654 <pressedValue>1.00000000</pressedValue>
655 <stringvalue/>
656 <text>Freeze</text>
657 <image>/</image>
658 <eventLine>i 2 0 0</eventLine>
659 <latch>false</latch>
660 <latched>false</latched>
661 </bsbObject>
662 <bsbObject version="2" type="BSBButton">
663 <objectName>Sync_Write</objectName>
664 <x>318</x>
665 <y>201</y>
666 <width>120</width>
667 <height>21</height>
668 <uuid>{4e16311f-445a-4c4d-bbe8-632d9a729c8e}</uuid>
669 <visible>true</visible>
670 <midichan>0</midichan>
671 <midicc>0</midicc>
672 <type>value</type>
673 <pressedValue>1.00000000</pressedValue>
674 <stringvalue/>
675 <text>Sync to Write</text>
676 <image>/</image>
677 <eventLine/>
678 <latch>true</latch>
679 <latched>false</latched>
680 </bsbObject>
681 <bsbObject version="2" type="BSBButton">
682 <objectName>Write_Buffer</objectName>
683 <x>390</x>
684 <y>8</y>
685 <width>120</width>
686 <height>30</height>
687 <uuid>{2ad28f56-7ad5-4284-a284-d53424731e68}</uuid>
688 <visible>true</visible>
689 <midichan>0</midichan>
690 <midicc>0</midicc>
691 <type>value</type>
692 <pressedValue>1.00000000</pressedValue>
693 <stringvalue/>
694 <text> Write to Buffer</text>
695 <image>/</image>
696 <eventLine/>
697 <latch>true</latch>
698 <latched>false</latched>
699 </bsbObject>
700 <bsbObject version="2" type="BSBButton">
701 <objectName/>
702 <x>318</x>
703 <y>298</y>
704 <width>120</width>
705 <height>21</height>
706 <uuid>{c301949e-9ef0-4ee5-b06b-1b2105b5ed08}</uuid>
707 <visible>true</visible>
708 <midichan>0</midichan>
709 <midicc>0</midicc>
710 <type>event</type>
711 <pressedValue>1.00000000</pressedValue>
712 <stringvalue/>
713 <text>Set to Zero</text>
714 <image>/</image>
715 <eventLine>i 4 0 0</eventLine>
716 <latch>false</latch>
717 <latched>false</latched>
718 </bsbObject>
719 <bsbObject version="2" type="BSBDisplay">
720 <objectName>Phasor_Offset</objectName>
721 <x>450</x>
722 <y>242</y>
723 <width>60</width>
724 <height>30</height>
725 <uuid>{527a33d3-9b62-47bf-8b20-34c2bc33a28a}</uuid>
726 <visible>true</visible>
727 <midichan>0</midichan>
728 <midicc>0</midicc>
729 <label>0.256</label>
730 <alignment>right</alignment>
731 <font>Arial</font>
732 <fontsize>9</fontsize>
733 <precision>3</precision>
734 <color>
735 <r>0</r>
736 <g>0</g>
737 <b>0</b>
738 </color>
739 <bgcolor mode="nobackground">
740 <r>255</r>
741 <g>255</g>
742 <b>255</b>
743 </bgcolor>
744 <bordermode>noborder</bordermode>
745 <borderradius>1</borderradius>
746 <borderwidth>1</borderwidth>
747 </bsbObject>
748 <bsbObject version="2" type="BSBHSlider">
749 <objectName>Phasor_Offset</objectName>
750 <x>10</x>
751 <y>225</y>
752 <width>500</width>
753 <height>27</height>
754 <uuid>{9c99b0ca-36dc-4039-bc0d-a22a34550faa}</uuid>
755 <visible>true</visible>
756 <midichan>0</midichan>
757 <midicc>0</midicc>
758 <minimum>-1.00000000</minimum>
759 <maximum>1.00000000</maximum>
760 <value>0.25600000</value>
761 <mode>lin</mode>
762 <mouseControl act="jump">continuous</mouseControl>
763 <resolution>-1.00000000</resolution>
764 <randomizable group="0">false</randomizable>
765 </bsbObject>
766 <bsbObject version="2" type="BSBLabel">
767 <objectName/>
768 <x>10</x>
769 <y>242</y>
770 <width>150</width>
771 <height>30</height>
772 <uuid>{0cc3d539-10a5-46f7-8103-18276dd3f687}</uuid>
773 <visible>true</visible>
774 <midichan>0</midichan>
775 <midicc>0</midicc>
776 <label>Read Phasor Offset</label>
777 <alignment>left</alignment>
778 <font>Arial</font>
779 <fontsize>10</fontsize>
780 <precision>3</precision>
781 <color>
782 <r>0</r>
783 <g>0</g>
784 <b>0</b>
785 </color>
786 <bgcolor mode="nobackground">
787 <r>255</r>
788 <g>255</g>
789 <b>255</b>
790 </bgcolor>
791 <bordermode>noborder</bordermode>
792 <borderradius>1</borderradius>
793 <borderwidth>1</borderwidth>
794 </bsbObject>
795 <bsbObject version="2" type="BSBDisplay">
796 <objectName>Pitch_Rescale</objectName>
797 <x>450</x>
798 <y>292</y>
799 <width>60</width>
800 <height>30</height>
801 <uuid>{e93947bb-b0f0-4fbd-a759-a5040ae43187}</uuid>
802 <visible>true</visible>
803 <midichan>0</midichan>
804 <midicc>0</midicc>
805 <label>0.000</label>
806 <alignment>right</alignment>
807 <font>Arial</font>
808 <fontsize>9</fontsize>
809 <precision>3</precision>
810 <color>
811 <r>0</r>
812 <g>0</g>
813 <b>0</b>
814 </color>
815 <bgcolor mode="nobackground">
816 <r>255</r>
817 <g>255</g>
818 <b>255</b>
819 </bgcolor>
820 <bordermode>noborder</bordermode>
821 <borderradius>1</borderradius>
822 <borderwidth>1</borderwidth>
823 </bsbObject>
824 <bsbObject version="2" type="BSBHSlider">
825 <objectName>Pitch_Rescale</objectName>
826 <x>10</x>
827 <y>275</y>
828 <width>500</width>
829 <height>27</height>
830 <uuid>{b40d90ab-8baf-4a1c-b777-9c0c6fc85466}</uuid>
831 <visible>true</visible>
832 <midichan>0</midichan>
833 <midicc>0</midicc>
834 <minimum>-2.00000000</minimum>
835 <maximum>2.00000000</maximum>
836 <value>0.00000000</value>
837 <mode>lin</mode>
838 <mouseControl act="jump">continuous</mouseControl>
839 <resolution>-1.00000000</resolution>
840 <randomizable group="0">false</randomizable>
841 </bsbObject>
842 <bsbObject version="2" type="BSBLabel">
843 <objectName/>
844 <x>10</x>
845 <y>292</y>
846 <width>150</width>
847 <height>30</height>
848 <uuid>{ab675e24-1897-41de-bda8-0284bfbd2e40}</uuid>
849 <visible>true</visible>
850 <midichan>0</midichan>
851 <midicc>0</midicc>
852 <label>Pitch Rescale (octaves)</label>
853 <alignment>left</alignment>
854 <font>Arial</font>
855 <fontsize>10</fontsize>
856 <precision>3</precision>
857 <color>
858 <r>0</r>
859 <g>0</g>
860 <b>0</b>
861 </color>
862 <bgcolor mode="nobackground">
863 <r>255</r>
864 <g>255</g>
865 <b>255</b>
866 </bgcolor>
867 <bordermode>noborder</bordermode>
868 <borderradius>1</borderradius>
869 <borderwidth>1</borderwidth>
870 </bsbObject>
871 <bsbObject version="2" type="BSBButton">
872 <objectName/>
873 <x>318</x>
874 <y>248</y>
875 <width>120</width>
876 <height>21</height>
877 <uuid>{e9d95e57-8c27-4a74-8c7b-af3df79c7ac2}</uuid>
878 <visible>true</visible>
879 <midichan>0</midichan>
880 <midicc>0</midicc>
881 <type>event</type>
882 <pressedValue>1.00000000</pressedValue>
883 <stringvalue/>
884 <text>Set to Zero</text>
885 <image>/</image>
886 <eventLine>i 3 0 0</eventLine>
887 <latch>false</latch>
888 <latched>false</latched>
889 </bsbObject>
890 <bsbObject version="2" type="BSBLabel">
891 <objectName/>
892 <x>10</x>
893 <y>343</y>
894 <width>150</width>
895 <height>30</height>
896 <uuid>{a4db22d6-0671-4e61-9d77-0ffaaa70869d}</uuid>
897 <visible>true</visible>
898 <midichan>0</midichan>
899 <midicc>0</midicc>
900 <label>Feedback Ratio</label>
901 <alignment>left</alignment>
902 <font>Arial</font>
903 <fontsize>10</fontsize>
904 <precision>3</precision>
905 <color>
906 <r>0</r>
907 <g>0</g>
908 <b>0</b>
909 </color>
910 <bgcolor mode="nobackground">
911 <r>255</r>
912 <g>255</g>
913 <b>255</b>
914 </bgcolor>
915 <bordermode>noborder</bordermode>
916 <borderradius>1</borderradius>
917 <borderwidth>1</borderwidth>
918 </bsbObject>
919 <bsbObject version="2" type="BSBHSlider">
920 <objectName>Feedback_Ratio</objectName>
921 <x>10</x>
922 <y>326</y>
923 <width>500</width>
924 <height>27</height>
925 <uuid>{4c4301d3-1442-4360-86e3-70f653b007b2}</uuid>
926 <visible>true</visible>
927 <midichan>0</midichan>
928 <midicc>0</midicc>
929 <minimum>0.00000000</minimum>
930 <maximum>1.50000000</maximum>
931 <value>0.00000000</value>
932 <mode>lin</mode>
933 <mouseControl act="jump">continuous</mouseControl>
934 <resolution>-1.00000000</resolution>
935 <randomizable group="0">false</randomizable>
936 </bsbObject>
937 <bsbObject version="2" type="BSBDisplay">
938 <objectName>Feedback_Ratio</objectName>
939 <x>450</x>
940 <y>343</y>
941 <width>60</width>
942 <height>30</height>
943 <uuid>{ae071395-0b57-418a-a019-371cc32eef38}</uuid>
944 <visible>true</visible>
945 <midichan>0</midichan>
946 <midicc>0</midicc>
947 <label>0.000</label>
948 <alignment>right</alignment>
949 <font>Arial</font>
950 <fontsize>9</fontsize>
951 <precision>3</precision>
952 <color>
953 <r>0</r>
954 <g>0</g>
955 <b>0</b>
956 </color>
957 <bgcolor mode="nobackground">
958 <r>255</r>
959 <g>255</g>
960 <b>255</b>
961 </bgcolor>
962 <bordermode>noborder</bordermode>
963 <borderradius>1</borderradius>
964 <borderwidth>1</borderwidth>
965 </bsbObject>
966 <bsbObject version="2" type="BSBDisplay">
967 <objectName>Direct</objectName>
968 <x>450</x>
969 <y>382</y>
970 <width>60</width>
971 <height>30</height>
972 <uuid>{5bf4b300-6cfc-4d08-a2c2-00f6d7af81e7}</uuid>
973 <visible>true</visible>
974 <midichan>0</midichan>
975 <midicc>0</midicc>
976 <label>0.000</label>
977 <alignment>right</alignment>
978 <font>Arial</font>
979 <fontsize>9</fontsize>
980 <precision>3</precision>
981 <color>
982 <r>0</r>
983 <g>0</g>
984 <b>0</b>
985 </color>
986 <bgcolor mode="nobackground">
987 <r>255</r>
988 <g>255</g>
989 <b>255</b>
990 </bgcolor>
991 <bordermode>noborder</bordermode>
992 <borderradius>1</borderradius>
993 <borderwidth>1</borderwidth>
994 </bsbObject>
995 <bsbObject version="2" type="BSBHSlider">
996 <objectName>Direct</objectName>
997 <x>10</x>
998 <y>365</y>
999 <width>500</width>
1000 <height>27</height>
1001 <uuid>{a3ec44bb-be40-464f-bf7d-bf0a2bf72ecf}</uuid>
1002 <visible>true</visible>
1003 <midichan>0</midichan>
1004 <midicc>0</midicc>
1005 <minimum>0.00000000</minimum>
1006 <maximum>1.00000000</maximum>
1007 <value>0.00000000</value>
1008 <mode>lin</mode>
1009 <mouseControl act="jump">continuous</mouseControl>
1010 <resolution>-1.00000000</resolution>
1011 <randomizable group="0">false</randomizable>
1012 </bsbObject>
1013 <bsbObject version="2" type="BSBLabel">
1014 <objectName/>
1015 <x>10</x>
1016 <y>382</y>
1017 <width>150</width>
1018 <height>30</height>
1019 <uuid>{0f91372a-83ee-498f-adf3-275d1dc4115d}</uuid>
1020 <visible>true</visible>
1021 <midichan>0</midichan>
1022 <midicc>0</midicc>
1023 <label>Direct</label>
1024 <alignment>left</alignment>
1025 <font>Arial</font>
1026 <fontsize>10</fontsize>
1027 <precision>3</precision>
1028 <color>
1029 <r>0</r>
1030 <g>0</g>
1031 <b>0</b>
1032 </color>
1033 <bgcolor mode="nobackground">
1034 <r>255</r>
1035 <g>255</g>
1036 <b>255</b>
1037 </bgcolor>
1038 <bordermode>noborder</bordermode>
1039 <borderradius>1</borderradius>
1040 <borderwidth>1</borderwidth>
1041 </bsbObject>
1042 <bsbObject version="2" type="BSBDisplay">
1043 <objectName>Output_Gain</objectName>
1044 <x>450</x>
1045 <y>422</y>
1046 <width>60</width>
1047 <height>30</height>
1048 <uuid>{e4e9e272-3a95-4f12-a0c1-116ccae1afda}</uuid>
1049 <visible>true</visible>
1050 <midichan>0</midichan>
1051 <midicc>0</midicc>
1052 <label>1.000</label>
1053 <alignment>right</alignment>
1054 <font>Arial</font>
1055 <fontsize>9</fontsize>
1056 <precision>3</precision>
1057 <color>
1058 <r>0</r>
1059 <g>0</g>
1060 <b>0</b>
1061 </color>
1062 <bgcolor mode="nobackground">
1063 <r>255</r>
1064 <g>255</g>
1065 <b>255</b>
1066 </bgcolor>
1067 <bordermode>noborder</bordermode>
1068 <borderradius>1</borderradius>
1069 <borderwidth>1</borderwidth>
1070 </bsbObject>
1071 <bsbObject version="2" type="BSBHSlider">
1072 <objectName>Output_Gain</objectName>
1073 <x>10</x>
1074 <y>405</y>
1075 <width>500</width>
1076 <height>27</height>
1077 <uuid>{a59fac78-7280-4b5d-8f97-67320e172a6d}</uuid>
1078 <visible>true</visible>
1079 <midichan>0</midichan>
1080 <midicc>0</midicc>
1081 <minimum>0.00000000</minimum>
1082 <maximum>1.00000000</maximum>
1083 <value>1.00000000</value>
1084 <mode>lin</mode>
1085 <mouseControl act="jump">continuous</mouseControl>
1086 <resolution>-1.00000000</resolution>
1087 <randomizable group="0">false</randomizable>
1088 </bsbObject>
1089 <bsbObject version="2" type="BSBLabel">
1090 <objectName/>
1091 <x>10</x>
1092 <y>422</y>
1093 <width>150</width>
1094 <height>30</height>
1095 <uuid>{8f8f00e1-a7bd-4e91-ad0c-d7a6871afc95}</uuid>
1096 <visible>true</visible>
1097 <midichan>0</midichan>
1098 <midicc>0</midicc>
1099 <label>Output Gain</label>
1100 <alignment>left</alignment>
1101 <font>Arial</font>
1102 <fontsize>10</fontsize>
1103 <precision>3</precision>
1104 <color>
1105 <r>0</r>
1106 <g>0</g>
1107 <b>0</b>
1108 </color>
1109 <bgcolor mode="nobackground">
1110 <r>255</r>
1111 <g>255</g>
1112 <b>255</b>
1113 </bgcolor>
1114 <bordermode>noborder</bordermode>
1115 <borderradius>1</borderradius>
1116 <borderwidth>1</borderwidth>
1117 </bsbObject>
1118 <bsbObject version="2" type="BSBLabel">
1119 <objectName/>
1120 <x>10</x>
1121 <y>466</y>
1122 <width>150</width>
1123 <height>30</height>
1124 <uuid>{94580bf4-87b4-409f-b3e2-db84dc1c9210}</uuid>
1125 <visible>true</visible>
1126 <midichan>0</midichan>
1127 <midicc>0</midicc>
1128 <label>Write Pointer</label>
1129 <alignment>left</alignment>
1130 <font>Arial</font>
1131 <fontsize>10</fontsize>
1132 <precision>3</precision>
1133 <color>
1134 <r>0</r>
1135 <g>0</g>
1136 <b>0</b>
1137 </color>
1138 <bgcolor mode="nobackground">
1139 <r>255</r>
1140 <g>255</g>
1141 <b>255</b>
1142 </bgcolor>
1143 <bordermode>noborder</bordermode>
1144 <borderradius>1</borderradius>
1145 <borderwidth>1</borderwidth>
1146 </bsbObject>
1147 <bsbObject version="2" type="BSBDisplay">
1148 <objectName>Write_Pointer</objectName>
1149 <x>450</x>
1150 <y>465</y>
1151 <width>60</width>
1152 <height>30</height>
1153 <uuid>{40cc07f7-e527-4814-b062-443b165d39a0}</uuid>
1154 <visible>true</visible>
1155 <midichan>0</midichan>
1156 <midicc>0</midicc>
1157 <label>0.000</label>
1158 <alignment>right</alignment>
1159 <font>Arial</font>
1160 <fontsize>9</fontsize>
1161 <precision>3</precision>
1162 <color>
1163 <r>0</r>
1164 <g>0</g>
1165 <b>0</b>
1166 </color>
1167 <bgcolor mode="nobackground">
1168 <r>255</r>
1169 <g>255</g>
1170 <b>255</b>
1171 </bgcolor>
1172 <bordermode>noborder</bordermode>
1173 <borderradius>1</borderradius>
1174 <borderwidth>1</borderwidth>
1175 </bsbObject>
1176 <bsbObject version="2" type="BSBController">
1177 <objectName>Write_Pointer</objectName>
1178 <x>10</x>
1179 <y>451</y>
1180 <width>500</width>
1181 <height>15</height>
1182 <uuid>{e32eeb8f-72e6-4ca6-88e0-6b337650892b}</uuid>
1183 <visible>true</visible>
1184 <midichan>0</midichan>
1185 <midicc>0</midicc>
1186 <objectName2/>
1187 <xMin>0.00000000</xMin>
1188 <xMax>20.00000000</xMax>
1189 <yMin>0.00000000</yMin>
1190 <yMax>1.00000000</yMax>
1191 <xValue>0.00000000</xValue>
1192 <yValue>0.00000000</yValue>
1193 <type>fill</type>
1194 <pointsize>1</pointsize>
1195 <fadeSpeed>0.00000000</fadeSpeed>
1196 <mouseControl act="press">jump</mouseControl>
1197 <color>
1198 <r>255</r>
1199 <g>0</g>
1200 <b>0</b>
1201 </color>
1202 <randomizable mode="both" group="0">false</randomizable>
1203 <bgcolor>
1204 <r>0</r>
1205 <g>0</g>
1206 <b>0</b>
1207 </bgcolor>
1208 </bsbObject>
1209 <bsbObject version="2" type="BSBController">
1210 <objectName>Read_Pointer</objectName>
1211 <x>10</x>
1212 <y>488</y>
1213 <width>500</width>
1214 <height>15</height>
1215 <uuid>{5e292afb-45e9-4aa8-b7d1-da1d885ed4dc}</uuid>
1216 <visible>true</visible>
1217 <midichan>0</midichan>
1218 <midicc>0</midicc>
1219 <objectName2/>
1220 <xMin>0.00000000</xMin>
1221 <xMax>20.00000000</xMax>
1222 <yMin>0.00000000</yMin>
1223 <yMax>1.00000000</yMax>
1224 <xValue>5.42406082</xValue>
1225 <yValue>0.00000000</yValue>
1226 <type>fill</type>
1227 <pointsize>1</pointsize>
1228 <fadeSpeed>0.00000000</fadeSpeed>
1229 <mouseControl act="press">jump</mouseControl>
1230 <color>
1231 <r>0</r>
1232 <g>234</g>
1233 <b>0</b>
1234 </color>
1235 <randomizable mode="both" group="0">false</randomizable>
1236 <bgcolor>
1237 <r>0</r>
1238 <g>0</g>
1239 <b>0</b>
1240 </bgcolor>
1241 </bsbObject>
1242 <bsbObject version="2" type="BSBDisplay">
1243 <objectName>Read_Pointer</objectName>
1244 <x>450</x>
1245 <y>503</y>
1246 <width>60</width>
1247 <height>30</height>
1248 <uuid>{d3c87e47-f966-4da3-8792-03363523d908}</uuid>
1249 <visible>true</visible>
1250 <midichan>0</midichan>
1251 <midicc>0</midicc>
1252 <label>5.424</label>
1253 <alignment>right</alignment>
1254 <font>Arial</font>
1255 <fontsize>9</fontsize>
1256 <precision>3</precision>
1257 <color>
1258 <r>0</r>
1259 <g>0</g>
1260 <b>0</b>
1261 </color>
1262 <bgcolor mode="nobackground">
1263 <r>255</r>
1264 <g>255</g>
1265 <b>255</b>
1266 </bgcolor>
1267 <bordermode>noborder</bordermode>
1268 <borderradius>1</borderradius>
1269 <borderwidth>1</borderwidth>
1270 </bsbObject>
1271 <bsbObject version="2" type="BSBLabel">
1272 <objectName/>
1273 <x>10</x>
1274 <y>503</y>
1275 <width>150</width>
1276 <height>30</height>
1277 <uuid>{fdc080f9-17c6-43bb-a9a0-751149a62c11}</uuid>
1278 <visible>true</visible>
1279 <midichan>0</midichan>
1280 <midicc>0</midicc>
1281 <label>Read Pointer</label>
1282 <alignment>left</alignment>
1283 <font>Arial</font>
1284 <fontsize>10</fontsize>
1285 <precision>3</precision>
1286 <color>
1287 <r>0</r>
1288 <g>0</g>
1289 <b>0</b>
1290 </color>
1291 <bgcolor mode="nobackground">
1292 <r>255</r>
1293 <g>255</g>
1294 <b>255</b>
1295 </bgcolor>
1296 <bordermode>noborder</bordermode>
1297 <borderradius>1</borderradius>
1298 <borderwidth>1</borderwidth>
1299 </bsbObject>
1300 </bsbPanel>
1301 <bsbPresets>
1302 </bsbPresets>
1303 <EventPanel name="" tempo="60.00000000" loop="8.00000000" x="913" y="162" width="655" height="346" visible="true" loopStart="0" loopEnd="0"> </EventPanel>