1<CsoundSynthesizer>
2<CsOptions>
3-odac
4</CsOptions>
5<CsInstruments>
6
7/*****LIVE GRANULAR SYNTHESIS*****/
8;example for CsoundQt
9;written by joachim heintz
10;jan 2010 / june 2011
11;please send bug reports and suggestions
12;to jh at joachimheintz.de
13
14sr = 44100
15ksmps = 32
16nchnls = 1
170dbfs = 1
18
19giWin1		ftgen		1, 0, 4096, 20, 1, 1		; Hamming
20giWin2		ftgen		2, 0, 4096, 20, 2, 1		; von Hann
21giWin3		ftgen		3, 0, 4096, 20, 3, 1		; Triangle (Bartlett)
22giWin4		ftgen		4, 0, 4096, 20, 4, 1		; Blackman (3-term)
23giWin5		ftgen		5, 0, 4096, 20, 5, 1		; Blackman-Harris (4-term)
24giWin6		ftgen		6, 0, 4096, 20, 6, 1		; Gauss
25giWin7		ftgen		7, 0, 4096, 20, 7, 1, 6		; Kaiser
26giWin8		ftgen		8, 0, 4096, 20, 8, 1		; Rectangle
27giWin9		ftgen		9, 0, 4096, 20, 9, 1		; Sync
28giLiveBuf	ftgen		0, 0, 16384, 2, 0			; buffer for writing and reading live input
29giDisttab	ftgen		0, 0, 32768, 7, 0, 32768, 1	; for kdistribution
30giCosine	ftgen		0, 0, 8193, 9, 1, 1, 90		; cosine
31giMaxGrLen	=		0.1					; maximaum grain length in seconds
32
33  opcode PartikkelSimpB, a, iakkkkkkkiii
34/* Simplified Version of the partikkel opcode, with a time pointer input.
35ifiltab:	function table to read
36apnter:	pointer in the function table (0-1)
37kgrainamp:	multiplier of the grain amplitude (the overall amplitude depends also on grainrate and grainsize)
38kgrainrate:	number of grains per seconds
39kgrainsize:	grain duration in ms
40kdist:		0 = periodic (synchronous), 1 = scattered (asynchronous)
41kcent:		transposition in cent
42kposrand:	random deviation (offset) of the pointer in ms
43kcentrand:	random transposition in cents (up and down)
44icosintab:	function table with cosine (e.g. giCosine ftgen 0, 0, 8193, 9, 1, 1, 90)
45idisttab:	function table with distribution (e.g. giDisttab ftgen 0, 0, 32768, 7, 0, 32768, 1)
46iwin:		function table with window shape (e.g. giWin ftgen 0, 0, 4096, 20, 9, 1)
47*/
48
49ifiltab, apnter, kgrainamp, kgrainrate, kgrainsize, kdist, kcent, kposrand, kcentrand, icosintab, idisttab, iwin	xin
50
51/*amplitude*/
52kamp		= 		kgrainamp * 0dbfs
53/*transposition*/
54kcentrand	rand 		kcentrand; random transposition
55iorig		= 		1 / (ftlen(ifiltab)/sr); original pitch
56kwavfreq	= 		iorig * cent(kcent + kcentrand)
57/*pointer*/
58kposrand	=		(kposrand/1000) * (sr/ftlen(ifiltab)); random offset converted from ms to phase (0-1)
59arndpos	linrand	kposrand; random offset in phase values
60asamplepos	=		apnter + arndpos
61/* other parameters */
62imax_grains	= 		1000; maximum number of grains per k-period
63async		=		0; no sync input
64awavfm		=		0; no audio input for fm
65
66aout		partikkel 	kgrainrate, kdist, idisttab, async, 1, iwin, \
67				-1, -1, 0, 0, kgrainsize, kamp, -1, \
68				kwavfreq, 0, -1, -1, awavfm, \
69				-1, -1, icosintab, kgrainrate, 1, \
70				1, -1, 0, ifiltab, ifiltab, ifiltab, ifiltab, \
71				-1, asamplepos, asamplepos, asamplepos, asamplepos, \
72				1, 1, 1, 1, imax_grains
73		xout		aout
74  endop
75
76  opcode	ShowLED_a, 0, Sakkk
77;shows an audiosignal in an outvalue channel, in dB or raw amplitudes
78;Soutchan: string as name of the outvalue channel
79;asig: audio signal to be shown
80;kdispfreq: refresh frequency of the display (Hz)
81;kdb: 1 = show as db, 0 = show as raw amplitudes (both in the range 0-1)
82;kdbrange: if idb=1: which dB range is shown
83Soutchan, asig, ktrig, kdb, kdbrange	xin
84kdispval	max_k	asig, ktrig, 1
85	if kdb != 0 then
86kdb 		= 		dbfsamp(kdispval)
87kval 		= 		(kdbrange + kdb) / kdbrange
88	else
89kval		=		kdispval
90	endif
91	if ktrig == 1 then
92		outvalue	Soutchan, kval
93	endif
94  endop
95
96  opcode ShowOver_a, 0, Sakk
97;shows if asig has been larger than 1 and stays khold seconds
98;Soutchan: string as name of the outvalue channel
99;kdispfreq: refresh frequency of the display (Hz)
100Soutchan, asig, ktrig, khold	xin
101kon		init		0
102ktim		times
103kstart		init		0
104kend		init		0
105khold		=		(khold < .01 ? .01 : khold); avoiding too short hold times
106kmax		max_k		asig, ktrig, 1
107	if kon == 0 && kmax > 1 && ktrig == 1 then
108kstart		=		ktim
109kend		=		kstart + khold
110		outvalue	Soutchan, kmax
111kon		=		1
112	endif
113	if kon == 1 && ktim > kend && ktrig == 1 then
114		outvalue	Soutchan, 0
115kon		=		0
116	endif
117  endop
118
119
120instr 1; master instrument
121;;get live input and write to buffer (ftable) giLiveBuf
122aLiveInPre	inch		1
123kingaindb	invalue	"ingaindb"
124kLiveInGain	=		ampdb(kingaindb)
125aLiveInPost	=		aLiveInPre * kLiveInGain
126iphasfreq	=		1 / (ftlen(giLiveBuf) / sr); phasor frequency
127kfreeze	invalue	"freeze"; if checked, freeze writing (and reading) of the buffer
128kphasfreq	=		(kfreeze == 1 ? 0 : iphasfreq)
129awritpnt	phasor		kphasfreq
130		tablew		aLiveInPost, awritpnt, giLiveBuf, 1, 0, 1
131
132;;create an instrument for a readpointer which is giMaxGrLen seconds later than the writepointer
133		event_i	"i", 2, giMaxGrLen, -1, iphasfreq
134
135;;show live input
136gkTrigDisp	metro		10
137gkshowdb	invalue	"showdb"
138gkdbrange	invalue	"dbrange"
139		ShowLED_a	"LiveInPre", aLiveInPre, gkTrigDisp, gkshowdb, gkdbrange
140		ShowOver_a	"LiveInPreOver", aLiveInPre, gkTrigDisp, 2
141		ShowLED_a	"LiveInPost", aLiveInPost, gkTrigDisp, gkshowdb, gkdbrange
142		ShowOver_a	"LiveInPostOver", aLiveInPost, gkTrigDisp, 2
143
144;;select shape of the grain envelope and show it
145kwinshape	invalue	"winshape"; 0=Hamming, 1=von Hann, 2=Bartlett, 3=Triangle, 4=Blackman-Harris,
146						;5=Gauss, 6=Kaiser, 7=Rectangle, 8=Sync
147		event_i	"i", 10, 0, -1, i(kwinshape)+1
148		outvalue	"ftab", -(kwinshape+1); graph widget shows selected window shape
149
150;;triggers i 10 at the beginning and whenever the grain envelope has changed
151kchanged	changed	kwinshape; sends 1 if the windowshape has changed
152 if kchanged == 1 then
153		event		"i", -10, 0, -1; turn off previous instance of i10
154		event		"i", 10, 0, -1, kwinshape+1; turn on new instance
155 endif
156endin
157
158instr 2; creates the pointer for reading the buffer giLiveBuf
159iphasfreq	=		p4; usual phasor frequency (calculated and sent by instr 1)
160kfreeze	invalue	"freeze"; if checked, freeze reading of the buffer
161kphasfreq	=		(kfreeze == 1 ? 0 : iphasfreq); otherwise use kphasfreq
162areadpnt	phasor		kphasfreq
163		chnset		areadpnt, "readpnt"; sends areadpnt to the channel 'readpnt'
164endin
165
166instr 10; performs granular synthesis
167;;parameters for the partikkel opcode
168iwin		=		p4; shape of the grain window
169ifiltab	=		giLiveBuf; buffer to read
170apnt		init		0; initializing the read pointer
171kgrainrate	invalue	"grainrate"; grains per second
172kgrainsize	invalue	"grainsize"; length of the grains in ms
173kcent		invalue	"transp"; pitch transposition in cent
174kgraindb	invalue	"outgaindb"; volume
175kgrainamp	=		ampdb(kgraindb)
176kdist		invalue	"dist"; distribution (0=periodic, 1=scattered)
177kposrand	invalue	"posrand"; time position randomness (offset) of the read pointer in ms
178kcentrand	invalue	"centrand"; transposition randomness in cents (up and down)
179icosintab	=		giCosine; ftable with a cosine waveform
180idisttab	=		giDisttab; ftable with values for scattered distribution
181apnt		chnget		"readpnt"; pointer generated
182
183;;granular synthesis
184agrain 	PartikkelSimpB 	ifiltab, apnt, kgrainamp, kgrainrate, kgrainsize,\
185					kdist, kcent, kposrand, kcentrand, icosintab, idisttab, iwin
186		out		agrain
187
188;;show output
189		ShowLED_a	"out", agrain, gkTrigDisp, gkshowdb, gkdbrange
190		ShowOver_a	"outover", agrain, gkTrigDisp, 2
191endin
192
193
194</CsInstruments>
195<CsScore>
196i 1 0 3600
197e
198</CsScore>
199</CsoundSynthesizer>
200
201<bsbPanel>
202 <label>Widgets</label>
203 <objectName/>
204 <x>146</x>
205 <y>65</y>
206 <width>903</width>
207 <height>657</height>
208 <visible>true</visible>
209 <uuid/>
210 <bgcolor mode="background">
211  <r>236</r>
212  <g>236</g>
213  <b>236</b>
214 </bgcolor>
215 <bsbObject version="2" type="BSBLabel">
216  <objectName/>
217  <x>9</x>
218  <y>9</y>
219  <width>886</width>
220  <height>44</height>
221  <uuid>{2a56f609-3f3a-49a2-8ef2-04e1041ed49f}</uuid>
222  <visible>true</visible>
223  <midichan>0</midichan>
224  <midicc>-3</midicc>
225  <label>LIVE GRANULAR SYNTHESIS</label>
226  <alignment>center</alignment>
227  <font>Lucida Grande</font>
228  <fontsize>26</fontsize>
229  <precision>3</precision>
230  <color>
231   <r>0</r>
232   <g>0</g>
233   <b>0</b>
234  </color>
235  <bgcolor mode="nobackground">
236   <r>255</r>
237   <g>255</g>
238   <b>255</b>
239  </bgcolor>
240  <bordermode>noborder</bordermode>
241  <borderradius>1</borderradius>
242  <borderwidth>1</borderwidth>
243 </bsbObject>
244 <bsbObject version="2" type="BSBLabel">
245  <objectName/>
246  <x>10</x>
247  <y>58</y>
248  <width>886</width>
249  <height>66</height>
250  <uuid>{49b99e1e-2b4b-4aef-b413-95171c64b350}</uuid>
251  <visible>true</visible>
252  <midichan>0</midichan>
253  <midicc>-3</midicc>
254  <label>Granulates a (mono) input stream, with optional freezing at a certain point.
255If you want to reduce the delay of the granulated output, set giMaxGrLen in the orc header to a lower value (the delay also depends on your -B and -b size).
256</label>
257  <alignment>left</alignment>
258  <font>Lucida Grande</font>
259  <fontsize>14</fontsize>
260  <precision>3</precision>
261  <color>
262   <r>0</r>
263   <g>0</g>
264   <b>0</b>
265  </color>
266  <bgcolor mode="nobackground">
267   <r>255</r>
268   <g>255</g>
269   <b>255</b>
270  </bgcolor>
271  <bordermode>noborder</bordermode>
272  <borderradius>1</borderradius>
273  <borderwidth>1</borderwidth>
274 </bsbObject>
275 <bsbObject version="2" type="BSBLabel">
276  <objectName/>
277  <x>11</x>
278  <y>132</y>
279  <width>484</width>
280  <height>148</height>
281  <uuid>{e39c91d6-a0bd-4681-8dbc-e384493e578c}</uuid>
282  <visible>true</visible>
283  <midichan>0</midichan>
284  <midicc>-3</midicc>
285  <label> INPUT</label>
286  <alignment>left</alignment>
287  <font>Lucida Grande</font>
288  <fontsize>18</fontsize>
289  <precision>3</precision>
290  <color>
291   <r>0</r>
292   <g>0</g>
293   <b>0</b>
294  </color>
295  <bgcolor mode="nobackground">
296   <r>255</r>
297   <g>255</g>
298   <b>255</b>
299  </bgcolor>
300  <bordermode>border</bordermode>
301  <borderradius>1</borderradius>
302  <borderwidth>1</borderwidth>
303 </bsbObject>
304 <bsbObject version="2" type="BSBController">
305  <objectName>LiveInPre</objectName>
306  <x>120</x>
307  <y>164</y>
308  <width>336</width>
309  <height>22</height>
310  <uuid>{7286a833-c0b0-4f55-8ecc-837453106e15}</uuid>
311  <visible>true</visible>
312  <midichan>0</midichan>
313  <midicc>-3</midicc>
314  <objectName2>out1_post</objectName2>
315  <xMin>0.00000000</xMin>
316  <xMax>1.00000000</xMax>
317  <yMin>0.00000000</yMin>
318  <yMax>1.00000000</yMax>
319  <xValue>0.26302832</xValue>
320  <yValue>0.73076900</yValue>
321  <type>fill</type>
322  <pointsize>1</pointsize>
323  <fadeSpeed>0.00000000</fadeSpeed>
324  <mouseControl act="press">jump</mouseControl>
325  <color>
326   <r>0</r>
327   <g>234</g>
328   <b>0</b>
329  </color>
330  <randomizable mode="both" group="0">false</randomizable>
331  <bgcolor>
332   <r>0</r>
333   <g>0</g>
334   <b>0</b>
335  </bgcolor>
336 </bsbObject>
337 <bsbObject version="2" type="BSBController">
338  <objectName>LiveInPreOver</objectName>
339  <x>454</x>
340  <y>164</y>
341  <width>27</width>
342  <height>22</height>
343  <uuid>{42e31476-6cb3-42b4-a1fd-8f48e76892ac}</uuid>
344  <visible>true</visible>
345  <midichan>0</midichan>
346  <midicc>-3</midicc>
347  <objectName2>outLover</objectName2>
348  <xMin>0.00000000</xMin>
349  <xMax>1.00000000</xMax>
350  <yMin>0.00000000</yMin>
351  <yMax>1.00000000</yMax>
352  <xValue>0.00000000</xValue>
353  <yValue>0.00000000</yValue>
354  <type>fill</type>
355  <pointsize>1</pointsize>
356  <fadeSpeed>0.00000000</fadeSpeed>
357  <mouseControl act="press">jump</mouseControl>
358  <color>
359   <r>196</r>
360   <g>14</g>
361   <b>12</b>
362  </color>
363  <randomizable mode="both" group="0">false</randomizable>
364  <bgcolor>
365   <r>0</r>
366   <g>0</g>
367   <b>0</b>
368  </bgcolor>
369 </bsbObject>
370 <bsbObject version="2" type="BSBController">
371  <objectName>LiveInPost</objectName>
372  <x>116</x>
373  <y>240</y>
374  <width>336</width>
375  <height>22</height>
376  <uuid>{77fcb44e-b9a2-423d-9764-52f01754d96d}</uuid>
377  <visible>true</visible>
378  <midichan>0</midichan>
379  <midicc>-3</midicc>
380  <objectName2>out2_post</objectName2>
381  <xMin>0.00000000</xMin>
382  <xMax>1.00000000</xMax>
383  <yMin>0.00000000</yMin>
384  <yMax>1.00000000</yMax>
385  <xValue>0.11348984</xValue>
386  <yValue>0.59090900</yValue>
387  <type>fill</type>
388  <pointsize>1</pointsize>
389  <fadeSpeed>0.00000000</fadeSpeed>
390  <mouseControl act="press">jump</mouseControl>
391  <color>
392   <r>0</r>
393   <g>234</g>
394   <b>0</b>
395  </color>
396  <randomizable mode="both" group="0">false</randomizable>
397  <bgcolor>
398   <r>0</r>
399   <g>0</g>
400   <b>0</b>
401  </bgcolor>
402 </bsbObject>
403 <bsbObject version="2" type="BSBController">
404  <objectName>LiveInPostOver</objectName>
405  <x>450</x>
406  <y>240</y>
407  <width>27</width>
408  <height>22</height>
409  <uuid>{3e4c2001-fd4f-4b10-bd75-1766b5d1bbde}</uuid>
410  <visible>true</visible>
411  <midichan>0</midichan>
412  <midicc>-3</midicc>
413  <objectName2>outRover</objectName2>
414  <xMin>0.00000000</xMin>
415  <xMax>1.00000000</xMax>
416  <yMin>0.00000000</yMin>
417  <yMax>1.00000000</yMax>
418  <xValue>0.00000000</xValue>
419  <yValue>0.00000000</yValue>
420  <type>fill</type>
421  <pointsize>1</pointsize>
422  <fadeSpeed>0.00000000</fadeSpeed>
423  <mouseControl act="press">jump</mouseControl>
424  <color>
425   <r>196</r>
426   <g>14</g>
427   <b>12</b>
428  </color>
429  <randomizable mode="both" group="0">false</randomizable>
430  <bgcolor>
431   <r>0</r>
432   <g>0</g>
433   <b>0</b>
434  </bgcolor>
435 </bsbObject>
436 <bsbObject version="2" type="BSBLabel">
437  <objectName/>
438  <x>21</x>
439  <y>164</y>
440  <width>93</width>
441  <height>28</height>
442  <uuid>{9dd7688d-d7d4-4863-bbe8-44c1e622f2bd}</uuid>
443  <visible>true</visible>
444  <midichan>0</midichan>
445  <midicc>-3</midicc>
446  <label>Live in Pre</label>
447  <alignment>left</alignment>
448  <font>Lucida Grande</font>
449  <fontsize>14</fontsize>
450  <precision>3</precision>
451  <color>
452   <r>0</r>
453   <g>0</g>
454   <b>0</b>
455  </color>
456  <bgcolor mode="nobackground">
457   <r>255</r>
458   <g>255</g>
459   <b>255</b>
460  </bgcolor>
461  <bordermode>noborder</bordermode>
462  <borderradius>1</borderradius>
463  <borderwidth>1</borderwidth>
464 </bsbObject>
465 <bsbObject version="2" type="BSBLabel">
466  <objectName/>
467  <x>19</x>
468  <y>240</y>
469  <width>97</width>
470  <height>29</height>
471  <uuid>{a6c9d0da-7821-4528-b193-9ee9af3d441f}</uuid>
472  <visible>true</visible>
473  <midichan>0</midichan>
474  <midicc>-3</midicc>
475  <label>Live in Post</label>
476  <alignment>left</alignment>
477  <font>Lucida Grande</font>
478  <fontsize>14</fontsize>
479  <precision>3</precision>
480  <color>
481   <r>0</r>
482   <g>0</g>
483   <b>0</b>
484  </color>
485  <bgcolor mode="nobackground">
486   <r>255</r>
487   <g>255</g>
488   <b>255</b>
489  </bgcolor>
490  <bordermode>noborder</bordermode>
491  <borderradius>1</borderradius>
492  <borderwidth>1</borderwidth>
493 </bsbObject>
494 <bsbObject version="2" type="BSBLabel">
495  <objectName/>
496  <x>20</x>
497  <y>202</y>
498  <width>93</width>
499  <height>31</height>
500  <uuid>{bdebe2b5-07c1-4f1f-b7cb-d2f29a26a5f8}</uuid>
501  <visible>true</visible>
502  <midichan>0</midichan>
503  <midicc>-3</midicc>
504  <label>Input Gain</label>
505  <alignment>left</alignment>
506  <font>Lucida Grande</font>
507  <fontsize>14</fontsize>
508  <precision>3</precision>
509  <color>
510   <r>0</r>
511   <g>0</g>
512   <b>0</b>
513  </color>
514  <bgcolor mode="nobackground">
515   <r>255</r>
516   <g>255</g>
517   <b>255</b>
518  </bgcolor>
519  <bordermode>noborder</bordermode>
520  <borderradius>1</borderradius>
521  <borderwidth>1</borderwidth>
522 </bsbObject>
523 <bsbObject version="2" type="BSBHSlider">
524  <objectName>ingaindb</objectName>
525  <x>120</x>
526  <y>199</y>
527  <width>260</width>
528  <height>26</height>
529  <uuid>{64de8264-0345-4faf-b16c-4af284a95268}</uuid>
530  <visible>true</visible>
531  <midichan>0</midichan>
532  <midicc>0</midicc>
533  <minimum>-12.00000000</minimum>
534  <maximum>12.00000000</maximum>
535  <value>-7.47692308</value>
536  <mode>lin</mode>
537  <mouseControl act="jump">continuous</mouseControl>
538  <resolution>-1.00000000</resolution>
539  <randomizable group="0">false</randomizable>
540 </bsbObject>
541 <bsbObject version="2" type="BSBLabel">
542  <objectName/>
543  <x>518</x>
544  <y>131</y>
545  <width>380</width>
546  <height>215</height>
547  <uuid>{e748e0c8-197c-4d4d-b893-9501e50ae02b}</uuid>
548  <visible>true</visible>
549  <midichan>0</midichan>
550  <midicc>-3</midicc>
551  <label> OUTPUT</label>
552  <alignment>left</alignment>
553  <font>Lucida Grande</font>
554  <fontsize>18</fontsize>
555  <precision>3</precision>
556  <color>
557   <r>0</r>
558   <g>0</g>
559   <b>0</b>
560  </color>
561  <bgcolor mode="nobackground">
562   <r>255</r>
563   <g>255</g>
564   <b>255</b>
565  </bgcolor>
566  <bordermode>border</bordermode>
567  <borderradius>1</borderradius>
568  <borderwidth>1</borderwidth>
569 </bsbObject>
570 <bsbObject version="2" type="BSBController">
571  <objectName>out</objectName>
572  <x>528</x>
573  <y>197</y>
574  <width>338</width>
575  <height>24</height>
576  <uuid>{133bd5e9-655f-4ba7-895d-45c9c8e54eb3}</uuid>
577  <visible>true</visible>
578  <midichan>0</midichan>
579  <midicc>-3</midicc>
580  <objectName2>out</objectName2>
581  <xMin>0.00000000</xMin>
582  <xMax>1.00000000</xMax>
583  <yMin>0.00000000</yMin>
584  <yMax>1.00000000</yMax>
585  <xValue>0.68301880</xValue>
586  <yValue>0.68301880</yValue>
587  <type>fill</type>
588  <pointsize>1</pointsize>
589  <fadeSpeed>0.00000000</fadeSpeed>
590  <mouseControl act="press">jump</mouseControl>
591  <color>
592   <r>0</r>
593   <g>234</g>
594   <b>0</b>
595  </color>
596  <randomizable mode="both" group="0">false</randomizable>
597  <bgcolor>
598   <r>0</r>
599   <g>0</g>
600   <b>0</b>
601  </bgcolor>
602 </bsbObject>
603 <bsbObject version="2" type="BSBController">
604  <objectName>outover</objectName>
605  <x>863</x>
606  <y>197</y>
607  <width>26</width>
608  <height>24</height>
609  <uuid>{dc5f0c73-a680-4e93-9855-6706fbd5180d}</uuid>
610  <visible>true</visible>
611  <midichan>0</midichan>
612  <midicc>-3</midicc>
613  <objectName2>outRover</objectName2>
614  <xMin>0.00000000</xMin>
615  <xMax>1.00000000</xMax>
616  <yMin>0.00000000</yMin>
617  <yMax>1.00000000</yMax>
618  <xValue>0.00000000</xValue>
619  <yValue>0.00000000</yValue>
620  <type>fill</type>
621  <pointsize>1</pointsize>
622  <fadeSpeed>0.00000000</fadeSpeed>
623  <mouseControl act="press">jump</mouseControl>
624  <color>
625   <r>196</r>
626   <g>14</g>
627   <b>12</b>
628  </color>
629  <randomizable mode="both" group="0">false</randomizable>
630  <bgcolor>
631   <r>0</r>
632   <g>0</g>
633   <b>0</b>
634  </bgcolor>
635 </bsbObject>
636 <bsbObject version="2" type="BSBScope">
637  <objectName/>
638  <x>525</x>
639  <y>228</y>
640  <width>368</width>
641  <height>105</height>
642  <uuid>{c385ef49-3efa-4ec3-806a-ff883343cb9c}</uuid>
643  <visible>true</visible>
644  <midichan>0</midichan>
645  <midicc>-3</midicc>
646  <value>-255.00000000</value>
647  <type>scope</type>
648  <zoomx>2.00000000</zoomx>
649  <zoomy>1.00000000</zoomy>
650  <dispx>1.00000000</dispx>
651  <dispy>1.00000000</dispy>
652  <mode>0.00000000</mode>
653 </bsbObject>
654 <bsbObject version="2" type="BSBLabel">
655  <objectName/>
656  <x>11</x>
657  <y>354</y>
658  <width>882</width>
659  <height>281</height>
660  <uuid>{f470cb16-0510-44e6-b6e0-c532a68e3409}</uuid>
661  <visible>true</visible>
662  <midichan>0</midichan>
663  <midicc>-3</midicc>
664  <label>GRANULAR</label>
665  <alignment>left</alignment>
666  <font>Lucida Grande</font>
667  <fontsize>18</fontsize>
668  <precision>3</precision>
669  <color>
670   <r>0</r>
671   <g>0</g>
672   <b>0</b>
673  </color>
674  <bgcolor mode="nobackground">
675   <r>255</r>
676   <g>255</g>
677   <b>255</b>
678  </bgcolor>
679  <bordermode>border</bordermode>
680  <borderradius>1</borderradius>
681  <borderwidth>1</borderwidth>
682 </bsbObject>
683 <bsbObject version="2" type="BSBLabel">
684  <objectName/>
685  <x>529</x>
686  <y>164</y>
687  <width>95</width>
688  <height>27</height>
689  <uuid>{dcc76929-4dec-4912-b228-fcab4a27e75f}</uuid>
690  <visible>true</visible>
691  <midichan>0</midichan>
692  <midicc>-3</midicc>
693  <label>Output Gain</label>
694  <alignment>left</alignment>
695  <font>Lucida Grande</font>
696  <fontsize>14</fontsize>
697  <precision>3</precision>
698  <color>
699   <r>0</r>
700   <g>0</g>
701   <b>0</b>
702  </color>
703  <bgcolor mode="nobackground">
704   <r>255</r>
705   <g>255</g>
706   <b>255</b>
707  </bgcolor>
708  <bordermode>noborder</bordermode>
709  <borderradius>1</borderradius>
710  <borderwidth>1</borderwidth>
711 </bsbObject>
712 <bsbObject version="2" type="BSBHSlider">
713  <objectName>outgaindb</objectName>
714  <x>625</x>
715  <y>164</y>
716  <width>155</width>
717  <height>24</height>
718  <uuid>{2735c656-a8f6-429d-acc3-2fe0db7e078a}</uuid>
719  <visible>true</visible>
720  <midichan>0</midichan>
721  <midicc>0</midicc>
722  <minimum>-12.00000000</minimum>
723  <maximum>12.00000000</maximum>
724  <value>-2.55483871</value>
725  <mode>lin</mode>
726  <mouseControl act="jump">continuous</mouseControl>
727  <resolution>-1.00000000</resolution>
728  <randomizable group="0">false</randomizable>
729 </bsbObject>
730 <bsbObject version="2" type="BSBLabel">
731  <objectName/>
732  <x>44</x>
733  <y>390</y>
734  <width>143</width>
735  <height>27</height>
736  <uuid>{d7297eb9-b0d9-43c7-a5cb-5c71793c04d0}</uuid>
737  <visible>true</visible>
738  <midichan>0</midichan>
739  <midicc>-3</midicc>
740  <label>Grains per Second</label>
741  <alignment>center</alignment>
742  <font>Lucida Grande</font>
743  <fontsize>14</fontsize>
744  <precision>3</precision>
745  <color>
746   <r>0</r>
747   <g>0</g>
748   <b>0</b>
749  </color>
750  <bgcolor mode="nobackground">
751   <r>255</r>
752   <g>255</g>
753   <b>255</b>
754  </bgcolor>
755  <bordermode>noborder</bordermode>
756  <borderradius>1</borderradius>
757  <borderwidth>1</borderwidth>
758 </bsbObject>
759 <bsbObject version="2" type="BSBLabel">
760  <objectName/>
761  <x>17</x>
762  <y>562</y>
763  <width>147</width>
764  <height>25</height>
765  <uuid>{ad4914bd-492d-45c0-bb8c-86e98247e37e}</uuid>
766  <visible>true</visible>
767  <midichan>0</midichan>
768  <midicc>-3</midicc>
769  <label>Transposition (Cent)</label>
770  <alignment>center</alignment>
771  <font>Lucida Grande</font>
772  <fontsize>14</fontsize>
773  <precision>3</precision>
774  <color>
775   <r>0</r>
776   <g>0</g>
777   <b>0</b>
778  </color>
779  <bgcolor mode="nobackground">
780   <r>255</r>
781   <g>255</g>
782   <b>255</b>
783  </bgcolor>
784  <bordermode>noborder</bordermode>
785  <borderradius>1</borderradius>
786  <borderwidth>1</borderwidth>
787 </bsbObject>
788 <bsbObject version="2" type="BSBHSlider">
789  <objectName>transp</objectName>
790  <x>18</x>
791  <y>586</y>
792  <width>222</width>
793  <height>32</height>
794  <uuid>{2a0c5abd-8f05-4f19-8c6e-5ceb8d4572dc}</uuid>
795  <visible>true</visible>
796  <midichan>0</midichan>
797  <midicc>-3</midicc>
798  <minimum>-1200.00000000</minimum>
799  <maximum>1200.00000000</maximum>
800  <value>0.00000000</value>
801  <mode>lin</mode>
802  <mouseControl act="jump">continuous</mouseControl>
803  <resolution>-1.00000000</resolution>
804  <randomizable group="0">false</randomizable>
805 </bsbObject>
806 <bsbObject version="2" type="BSBLabel">
807  <objectName/>
808  <x>34</x>
809  <y>481</y>
810  <width>101</width>
811  <height>25</height>
812  <uuid>{078aa6dc-ef57-4db7-949b-c11e729c837a}</uuid>
813  <visible>true</visible>
814  <midichan>0</midichan>
815  <midicc>-3</midicc>
816  <label>Grainsize (ms)</label>
817  <alignment>center</alignment>
818  <font>Lucida Grande</font>
819  <fontsize>14</fontsize>
820  <precision>3</precision>
821  <color>
822   <r>0</r>
823   <g>0</g>
824   <b>0</b>
825  </color>
826  <bgcolor mode="nobackground">
827   <r>255</r>
828   <g>255</g>
829   <b>255</b>
830  </bgcolor>
831  <bordermode>noborder</bordermode>
832  <borderradius>1</borderradius>
833  <borderwidth>1</borderwidth>
834 </bsbObject>
835 <bsbObject version="2" type="BSBHSlider">
836  <objectName>grainsize</objectName>
837  <x>31</x>
838  <y>506</y>
839  <width>177</width>
840  <height>26</height>
841  <uuid>{8b59f109-6fc3-4138-bb2e-93113fe13a40}</uuid>
842  <visible>true</visible>
843  <midichan>0</midichan>
844  <midicc>-3</midicc>
845  <minimum>1.00000000</minimum>
846  <maximum>100.00000000</maximum>
847  <value>1.00000000</value>
848  <mode>lin</mode>
849  <mouseControl act="jump">continuous</mouseControl>
850  <resolution>-1.00000000</resolution>
851  <randomizable group="0">false</randomizable>
852 </bsbObject>
853 <bsbObject version="2" type="BSBHSlider">
854  <objectName>grainrate</objectName>
855  <x>21</x>
856  <y>418</y>
857  <width>252</width>
858  <height>25</height>
859  <uuid>{5df30f9c-f3dd-4ac9-8088-9cf169cd31f5}</uuid>
860  <visible>true</visible>
861  <midichan>0</midichan>
862  <midicc>0</midicc>
863  <minimum>1.00000000</minimum>
864  <maximum>200.00000000</maximum>
865  <value>1.00000000</value>
866  <mode>lin</mode>
867  <mouseControl act="jump">continuous</mouseControl>
868  <resolution>-1.00000000</resolution>
869  <randomizable group="0">false</randomizable>
870 </bsbObject>
871 <bsbObject version="2" type="BSBLabel">
872  <objectName/>
873  <x>374</x>
874  <y>394</y>
875  <width>143</width>
876  <height>27</height>
877  <uuid>{cc73b249-baad-47fd-9842-b921037d1a6a}</uuid>
878  <visible>true</visible>
879  <midichan>0</midichan>
880  <midicc>-3</midicc>
881  <label>Distribution</label>
882  <alignment>center</alignment>
883  <font>Lucida Grande</font>
884  <fontsize>14</fontsize>
885  <precision>3</precision>
886  <color>
887   <r>0</r>
888   <g>0</g>
889   <b>0</b>
890  </color>
891  <bgcolor mode="nobackground">
892   <r>255</r>
893   <g>255</g>
894   <b>255</b>
895  </bgcolor>
896  <bordermode>noborder</bordermode>
897  <borderradius>1</borderradius>
898  <borderwidth>1</borderwidth>
899 </bsbObject>
900 <bsbObject version="2" type="BSBHSlider">
901  <objectName>dist</objectName>
902  <x>369</x>
903  <y>420</y>
904  <width>152</width>
905  <height>25</height>
906  <uuid>{a142fe2c-da20-4aa8-a13b-0432a4cb6352}</uuid>
907  <visible>true</visible>
908  <midichan>0</midichan>
909  <midicc>-3</midicc>
910  <minimum>0.00000000</minimum>
911  <maximum>1.00000000</maximum>
912  <value>1.00000000</value>
913  <mode>lin</mode>
914  <mouseControl act="jump">continuous</mouseControl>
915  <resolution>-1.00000000</resolution>
916  <randomizable group="0">false</randomizable>
917 </bsbObject>
918 <bsbObject version="2" type="BSBLabel">
919  <objectName/>
920  <x>238</x>
921  <y>481</y>
922  <width>191</width>
923  <height>27</height>
924  <uuid>{175842e1-79f7-4518-882a-4555834acf3a}</uuid>
925  <visible>true</visible>
926  <midichan>0</midichan>
927  <midicc>-3</midicc>
928  <label>Position Randomness (ms)</label>
929  <alignment>center</alignment>
930  <font>Lucida Grande</font>
931  <fontsize>14</fontsize>
932  <precision>3</precision>
933  <color>
934   <r>0</r>
935   <g>0</g>
936   <b>0</b>
937  </color>
938  <bgcolor mode="nobackground">
939   <r>255</r>
940   <g>255</g>
941   <b>255</b>
942  </bgcolor>
943  <bordermode>noborder</bordermode>
944  <borderradius>1</borderradius>
945  <borderwidth>1</borderwidth>
946 </bsbObject>
947 <bsbObject version="2" type="BSBHSlider">
948  <objectName>posrand</objectName>
949  <x>239</x>
950  <y>509</y>
951  <width>265</width>
952  <height>29</height>
953  <uuid>{bd0a56e7-6873-484a-be88-67c57c0a66f4}</uuid>
954  <visible>true</visible>
955  <midichan>0</midichan>
956  <midicc>-3</midicc>
957  <minimum>0.00000000</minimum>
958  <maximum>100.00000000</maximum>
959  <value>1.88679245</value>
960  <mode>lin</mode>
961  <mouseControl act="jump">continuous</mouseControl>
962  <resolution>-1.00000000</resolution>
963  <randomizable group="0">false</randomizable>
964 </bsbObject>
965 <bsbObject version="2" type="BSBHSlider">
966  <objectName>centrand</objectName>
967  <x>275</x>
968  <y>589</y>
969  <width>306</width>
970  <height>28</height>
971  <uuid>{d2da0179-913a-4308-8b92-65f69293814b}</uuid>
972  <visible>true</visible>
973  <midichan>0</midichan>
974  <midicc>-3</midicc>
975  <minimum>0.00000000</minimum>
976  <maximum>100.00000000</maximum>
977  <value>0.00000000</value>
978  <mode>lin</mode>
979  <mouseControl act="jump">continuous</mouseControl>
980  <resolution>-1.00000000</resolution>
981  <randomizable group="0">false</randomizable>
982 </bsbObject>
983 <bsbObject version="2" type="BSBLabel">
984  <objectName/>
985  <x>275</x>
986  <y>562</y>
987  <width>234</width>
988  <height>25</height>
989  <uuid>{558f5942-1622-49a1-aeac-5faede2c8d51}</uuid>
990  <visible>true</visible>
991  <midichan>0</midichan>
992  <midicc>-3</midicc>
993  <label>Transposition Randomness (Cent)</label>
994  <alignment>center</alignment>
995  <font>Lucida Grande</font>
996  <fontsize>14</fontsize>
997  <precision>3</precision>
998  <color>
999   <r>0</r>
1000   <g>0</g>
1001   <b>0</b>
1002  </color>
1003  <bgcolor mode="nobackground">
1004   <r>255</r>
1005   <g>255</g>
1006   <b>255</b>
1007  </bgcolor>
1008  <bordermode>noborder</bordermode>
1009  <borderradius>1</borderradius>
1010  <borderwidth>1</borderwidth>
1011 </bsbObject>
1012 <bsbObject version="2" type="BSBLabel">
1013  <objectName/>
1014  <x>298</x>
1015  <y>419</y>
1016  <width>71</width>
1017  <height>29</height>
1018  <uuid>{ac7d4a98-e00c-4c47-9bb6-9bf8591999ce}</uuid>
1019  <visible>true</visible>
1020  <midichan>0</midichan>
1021  <midicc>0</midicc>
1022  <label>periodic</label>
1023  <alignment>right</alignment>
1024  <font>DejaVu Sans</font>
1025  <fontsize>14</fontsize>
1026  <precision>3</precision>
1027  <color>
1028   <r>0</r>
1029   <g>0</g>
1030   <b>0</b>
1031  </color>
1032  <bgcolor mode="nobackground">
1033   <r>255</r>
1034   <g>255</g>
1035   <b>255</b>
1036  </bgcolor>
1037  <bordermode>noborder</bordermode>
1038  <borderradius>1</borderradius>
1039  <borderwidth>1</borderwidth>
1040 </bsbObject>
1041 <bsbObject version="2" type="BSBLabel">
1042  <objectName/>
1043  <x>520</x>
1044  <y>418</y>
1045  <width>90</width>
1046  <height>28</height>
1047  <uuid>{f41b248e-80fb-4cb5-a210-eded60c8c325}</uuid>
1048  <visible>true</visible>
1049  <midichan>0</midichan>
1050  <midicc>0</midicc>
1051  <label>scattered</label>
1052  <alignment>left</alignment>
1053  <font>DejaVu Sans</font>
1054  <fontsize>14</fontsize>
1055  <precision>3</precision>
1056  <color>
1057   <r>0</r>
1058   <g>0</g>
1059   <b>0</b>
1060  </color>
1061  <bgcolor mode="nobackground">
1062   <r>255</r>
1063   <g>255</g>
1064   <b>255</b>
1065  </bgcolor>
1066  <bordermode>noborder</bordermode>
1067  <borderradius>1</borderradius>
1068  <borderwidth>1</borderwidth>
1069 </bsbObject>
1070 <bsbObject version="2" type="BSBLabel">
1071  <objectName/>
1072  <x>694</x>
1073  <y>363</y>
1074  <width>115</width>
1075  <height>28</height>
1076  <uuid>{5d0f4113-a2a8-4f15-872d-d10b174dcf71}</uuid>
1077  <visible>true</visible>
1078  <midichan>0</midichan>
1079  <midicc>-3</midicc>
1080  <label>Window Shape</label>
1081  <alignment>center</alignment>
1082  <font>Lucida Grande</font>
1083  <fontsize>14</fontsize>
1084  <precision>3</precision>
1085  <color>
1086   <r>0</r>
1087   <g>0</g>
1088   <b>0</b>
1089  </color>
1090  <bgcolor mode="nobackground">
1091   <r>255</r>
1092   <g>255</g>
1093   <b>255</b>
1094  </bgcolor>
1095  <bordermode>noborder</bordermode>
1096  <borderradius>1</borderradius>
1097  <borderwidth>1</borderwidth>
1098 </bsbObject>
1099 <bsbObject version="2" type="BSBDropdown">
1100  <objectName>winshape</objectName>
1101  <x>682</x>
1102  <y>414</y>
1103  <width>144</width>
1104  <height>24</height>
1105  <uuid>{35980021-56da-4027-841b-abf660393ab2}</uuid>
1106  <visible>true</visible>
1107  <midichan>0</midichan>
1108  <midicc>-3</midicc>
1109  <bsbDropdownItemList>
1110   <bsbDropdownItem>
1111    <name>Hamming</name>
1112    <value>0</value>
1113    <stringvalue/>
1114   </bsbDropdownItem>
1115   <bsbDropdownItem>
1116    <name>von Hann</name>
1117    <value>1</value>
1118    <stringvalue/>
1119   </bsbDropdownItem>
1120   <bsbDropdownItem>
1121    <name>Triangle</name>
1122    <value>2</value>
1123    <stringvalue/>
1124   </bsbDropdownItem>
1125   <bsbDropdownItem>
1126    <name>Blackman</name>
1127    <value>3</value>
1128    <stringvalue/>
1129   </bsbDropdownItem>
1130   <bsbDropdownItem>
1131    <name>Blackman-Harris</name>
1132    <value>4</value>
1133    <stringvalue/>
1134   </bsbDropdownItem>
1135   <bsbDropdownItem>
1136    <name>Gauss</name>
1137    <value>5</value>
1138    <stringvalue/>
1139   </bsbDropdownItem>
1140   <bsbDropdownItem>
1141    <name>Kaiser</name>
1142    <value>6</value>
1143    <stringvalue/>
1144   </bsbDropdownItem>
1145   <bsbDropdownItem>
1146    <name>Rectangle</name>
1147    <value>7</value>
1148    <stringvalue/>
1149   </bsbDropdownItem>
1150   <bsbDropdownItem>
1151    <name>Sync</name>
1152    <value>8</value>
1153    <stringvalue/>
1154   </bsbDropdownItem>
1155  </bsbDropdownItemList>
1156  <selectedIndex>8</selectedIndex>
1157  <randomizable group="0">false</randomizable>
1158 </bsbObject>
1159 <bsbObject version="2" type="BSBGraph">
1160  <objectName>ftab</objectName>
1161  <x>620</x>
1162  <y>476</y>
1163  <width>256</width>
1164  <height>145</height>
1165  <uuid>{dcb84ff3-5289-475e-813f-db94e34bc296}</uuid>
1166  <visible>true</visible>
1167  <midichan>0</midichan>
1168  <midicc>-3</midicc>
1169  <value>0</value>
1170  <objectName2/>
1171  <zoomx>1.00000000</zoomx>
1172  <zoomy>1.00000000</zoomy>
1173  <dispx>1.00000000</dispx>
1174  <dispy>1.00000000</dispy>
1175  <modex>auto</modex>
1176  <modey>auto</modey>
1177  <all>true</all>
1178 </bsbObject>
1179 <bsbObject version="2" type="BSBLabel">
1180  <objectName/>
1181  <x>667</x>
1182  <y>451</y>
1183  <width>168</width>
1184  <height>27</height>
1185  <uuid>{2d0fa256-93bd-4690-911d-437222bc7428}</uuid>
1186  <visible>true</visible>
1187  <midichan>0</midichan>
1188  <midicc>-3</midicc>
1189  <label>... and see its shape</label>
1190  <alignment>center</alignment>
1191  <font>Lucida Grande</font>
1192  <fontsize>14</fontsize>
1193  <precision>3</precision>
1194  <color>
1195   <r>0</r>
1196   <g>0</g>
1197   <b>0</b>
1198  </color>
1199  <bgcolor mode="nobackground">
1200   <r>255</r>
1201   <g>255</g>
1202   <b>255</b>
1203  </bgcolor>
1204  <bordermode>noborder</bordermode>
1205  <borderradius>1</borderradius>
1206  <borderwidth>1</borderwidth>
1207 </bsbObject>
1208 <bsbObject version="2" type="BSBLabel">
1209  <objectName/>
1210  <x>652</x>
1211  <y>389</y>
1212  <width>185</width>
1213  <height>27</height>
1214  <uuid>{fbbd39e2-e473-4455-8e7c-a57724ae5010}</uuid>
1215  <visible>true</visible>
1216  <midichan>0</midichan>
1217  <midicc>-3</midicc>
1218  <label>Select window function ...</label>
1219  <alignment>center</alignment>
1220  <font>Lucida Grande</font>
1221  <fontsize>14</fontsize>
1222  <precision>3</precision>
1223  <color>
1224   <r>0</r>
1225   <g>0</g>
1226   <b>0</b>
1227  </color>
1228  <bgcolor mode="nobackground">
1229   <r>255</r>
1230   <g>255</g>
1231   <b>255</b>
1232  </bgcolor>
1233  <bordermode>noborder</bordermode>
1234  <borderradius>1</borderradius>
1235  <borderwidth>1</borderwidth>
1236 </bsbObject>
1237 <bsbObject version="2" type="BSBLabel">
1238  <objectName/>
1239  <x>458</x>
1240  <y>198</y>
1241  <width>30</width>
1242  <height>31</height>
1243  <uuid>{eecbf48f-983f-4ce5-bdcc-e6b1ae657b20}</uuid>
1244  <visible>true</visible>
1245  <midichan>0</midichan>
1246  <midicc>0</midicc>
1247  <label>dB</label>
1248  <alignment>right</alignment>
1249  <font>DejaVu Sans</font>
1250  <fontsize>14</fontsize>
1251  <precision>3</precision>
1252  <color>
1253   <r>0</r>
1254   <g>0</g>
1255   <b>0</b>
1256  </color>
1257  <bgcolor mode="nobackground">
1258   <r>255</r>
1259   <g>255</g>
1260   <b>255</b>
1261  </bgcolor>
1262  <bordermode>noborder</bordermode>
1263  <borderradius>1</borderradius>
1264  <borderwidth>1</borderwidth>
1265 </bsbObject>
1266 <bsbObject version="2" type="BSBSpinBox">
1267  <objectName>ingaindb</objectName>
1268  <x>380</x>
1269  <y>200</y>
1270  <width>76</width>
1271  <height>27</height>
1272  <uuid>{a44b45c8-8c22-4c53-9442-75339608f708}</uuid>
1273  <visible>true</visible>
1274  <midichan>0</midichan>
1275  <midicc>0</midicc>
1276  <alignment>left</alignment>
1277  <font>Arial</font>
1278  <fontsize>14</fontsize>
1279  <color>
1280   <r>0</r>
1281   <g>0</g>
1282   <b>0</b>
1283  </color>
1284  <bgcolor mode="nobackground">
1285   <r>255</r>
1286   <g>255</g>
1287   <b>255</b>
1288  </bgcolor>
1289  <resolution>0.00100000</resolution>
1290  <minimum>-1e+12</minimum>
1291  <maximum>1e+12</maximum>
1292  <randomizable group="0">false</randomizable>
1293  <value>-7.47692</value>
1294 </bsbObject>
1295 <bsbObject version="2" type="BSBLabel">
1296  <objectName/>
1297  <x>861</x>
1298  <y>162</y>
1299  <width>30</width>
1300  <height>31</height>
1301  <uuid>{a5947f34-1e11-490f-bd5d-c543d6e4494e}</uuid>
1302  <visible>true</visible>
1303  <midichan>0</midichan>
1304  <midicc>0</midicc>
1305  <label>dB</label>
1306  <alignment>right</alignment>
1307  <font>DejaVu Sans</font>
1308  <fontsize>14</fontsize>
1309  <precision>3</precision>
1310  <color>
1311   <r>0</r>
1312   <g>0</g>
1313   <b>0</b>
1314  </color>
1315  <bgcolor mode="nobackground">
1316   <r>255</r>
1317   <g>255</g>
1318   <b>255</b>
1319  </bgcolor>
1320  <bordermode>noborder</bordermode>
1321  <borderradius>1</borderradius>
1322  <borderwidth>1</borderwidth>
1323 </bsbObject>
1324 <bsbObject version="2" type="BSBSpinBox">
1325  <objectName>outgaindb</objectName>
1326  <x>781</x>
1327  <y>163</y>
1328  <width>76</width>
1329  <height>27</height>
1330  <uuid>{52bb78bb-8e63-44a1-a86a-5def867d5311}</uuid>
1331  <visible>true</visible>
1332  <midichan>0</midichan>
1333  <midicc>0</midicc>
1334  <alignment>left</alignment>
1335  <font>Arial</font>
1336  <fontsize>14</fontsize>
1337  <color>
1338   <r>0</r>
1339   <g>0</g>
1340   <b>0</b>
1341  </color>
1342  <bgcolor mode="nobackground">
1343   <r>255</r>
1344   <g>255</g>
1345   <b>255</b>
1346  </bgcolor>
1347  <resolution>0.00100000</resolution>
1348  <minimum>-1e+12</minimum>
1349  <maximum>1e+12</maximum>
1350  <randomizable group="0">false</randomizable>
1351  <value>-2.55484</value>
1352 </bsbObject>
1353 <bsbObject version="2" type="BSBSpinBox">
1354  <objectName>grainrate</objectName>
1355  <x>186</x>
1356  <y>390</y>
1357  <width>76</width>
1358  <height>27</height>
1359  <uuid>{c8857f63-c4d2-456d-92df-cf078b7c6525}</uuid>
1360  <visible>true</visible>
1361  <midichan>0</midichan>
1362  <midicc>0</midicc>
1363  <alignment>left</alignment>
1364  <font>Arial</font>
1365  <fontsize>14</fontsize>
1366  <color>
1367   <r>0</r>
1368   <g>0</g>
1369   <b>0</b>
1370  </color>
1371  <bgcolor mode="nobackground">
1372   <r>255</r>
1373   <g>255</g>
1374   <b>255</b>
1375  </bgcolor>
1376  <resolution>1.00000000</resolution>
1377  <minimum>1</minimum>
1378  <maximum>1000</maximum>
1379  <randomizable group="0">false</randomizable>
1380  <value>151.829</value>
1381 </bsbObject>
1382 <bsbObject version="2" type="BSBButton">
1383  <objectName>freeze</objectName>
1384  <x>513</x>
1385  <y>480</y>
1386  <width>87</width>
1387  <height>59</height>
1388  <uuid>{209e708e-b0c9-4794-b610-fec1096126c8}</uuid>
1389  <visible>true</visible>
1390  <midichan>0</midichan>
1391  <midicc>0</midicc>
1392  <type>value</type>
1393  <pressedValue>1.00000000</pressedValue>
1394  <stringvalue/>
1395  <text>Freeze!</text>
1396  <image>/</image>
1397  <eventLine>i1 0 10</eventLine>
1398  <latch>true</latch>
1399  <latched>false</latched>
1400 </bsbObject>
1401 <bsbObject version="2" type="BSBSpinBox">
1402  <objectName>grainsize</objectName>
1403  <x>131</x>
1404  <y>481</y>
1405  <width>76</width>
1406  <height>27</height>
1407  <uuid>{9047dd54-fb61-4009-9867-802809da63cd}</uuid>
1408  <visible>true</visible>
1409  <midichan>0</midichan>
1410  <midicc>0</midicc>
1411  <alignment>left</alignment>
1412  <font>Arial</font>
1413  <fontsize>14</fontsize>
1414  <color>
1415   <r>0</r>
1416   <g>0</g>
1417   <b>0</b>
1418  </color>
1419  <bgcolor mode="nobackground">
1420   <r>255</r>
1421   <g>255</g>
1422   <b>255</b>
1423  </bgcolor>
1424  <resolution>1.00000000</resolution>
1425  <minimum>1</minimum>
1426  <maximum>1000</maximum>
1427  <randomizable group="0">false</randomizable>
1428  <value>100</value>
1429 </bsbObject>
1430 <bsbObject version="2" type="BSBSpinBox">
1431  <objectName>posrand</objectName>
1432  <x>429</x>
1433  <y>480</y>
1434  <width>76</width>
1435  <height>27</height>
1436  <uuid>{d9780cbd-e79a-4741-b575-2a2a49790067}</uuid>
1437  <visible>true</visible>
1438  <midichan>0</midichan>
1439  <midicc>0</midicc>
1440  <alignment>left</alignment>
1441  <font>Arial</font>
1442  <fontsize>14</fontsize>
1443  <color>
1444   <r>0</r>
1445   <g>0</g>
1446   <b>0</b>
1447  </color>
1448  <bgcolor mode="nobackground">
1449   <r>255</r>
1450   <g>255</g>
1451   <b>255</b>
1452  </bgcolor>
1453  <resolution>0.00100000</resolution>
1454  <minimum>0</minimum>
1455  <maximum>1000</maximum>
1456  <randomizable group="0">false</randomizable>
1457  <value>1.88679</value>
1458 </bsbObject>
1459 <bsbObject version="2" type="BSBSpinBox">
1460  <objectName>transp</objectName>
1461  <x>164</x>
1462  <y>562</y>
1463  <width>76</width>
1464  <height>27</height>
1465  <uuid>{20a7f015-fe29-40d1-ac20-589371f9685d}</uuid>
1466  <visible>true</visible>
1467  <midichan>0</midichan>
1468  <midicc>0</midicc>
1469  <alignment>left</alignment>
1470  <font>Arial</font>
1471  <fontsize>14</fontsize>
1472  <color>
1473   <r>0</r>
1474   <g>0</g>
1475   <b>0</b>
1476  </color>
1477  <bgcolor mode="nobackground">
1478   <r>255</r>
1479   <g>255</g>
1480   <b>255</b>
1481  </bgcolor>
1482  <resolution>1.00000000</resolution>
1483  <minimum>-10000</minimum>
1484  <maximum>10000</maximum>
1485  <randomizable group="0">false</randomizable>
1486  <value>0</value>
1487 </bsbObject>
1488 <bsbObject version="2" type="BSBSpinBox">
1489  <objectName>centrand</objectName>
1490  <x>506</x>
1491  <y>561</y>
1492  <width>76</width>
1493  <height>27</height>
1494  <uuid>{0cc8b907-1cb3-425d-b6f5-994a39abb647}</uuid>
1495  <visible>true</visible>
1496  <midichan>0</midichan>
1497  <midicc>0</midicc>
1498  <alignment>left</alignment>
1499  <font>Arial</font>
1500  <fontsize>14</fontsize>
1501  <color>
1502   <r>0</r>
1503   <g>0</g>
1504   <b>0</b>
1505  </color>
1506  <bgcolor mode="nobackground">
1507   <r>255</r>
1508   <g>255</g>
1509   <b>255</b>
1510  </bgcolor>
1511  <resolution>1.00000000</resolution>
1512  <minimum>0</minimum>
1513  <maximum>1000</maximum>
1514  <randomizable group="0">false</randomizable>
1515  <value>0</value>
1516 </bsbObject>
1517 <bsbObject version="2" type="BSBSpinBox">
1518  <objectName>dbrange</objectName>
1519  <x>421</x>
1520  <y>289</y>
1521  <width>79</width>
1522  <height>27</height>
1523  <uuid>{81528aba-64e8-4dc7-b127-daa1434195a2}</uuid>
1524  <visible>true</visible>
1525  <midichan>0</midichan>
1526  <midicc>-3</midicc>
1527  <alignment>left</alignment>
1528  <font>Lucida Grande</font>
1529  <fontsize>14</fontsize>
1530  <color>
1531   <r>0</r>
1532   <g>0</g>
1533   <b>0</b>
1534  </color>
1535  <bgcolor mode="nobackground">
1536   <r>255</r>
1537   <g>255</g>
1538   <b>255</b>
1539  </bgcolor>
1540  <resolution>0.10000000</resolution>
1541  <minimum>1</minimum>
1542  <maximum>1e+12</maximum>
1543  <randomizable group="0">false</randomizable>
1544  <value>50</value>
1545 </bsbObject>
1546 <bsbObject version="2" type="BSBLabel">
1547  <objectName/>
1548  <x>334</x>
1549  <y>288</y>
1550  <width>90</width>
1551  <height>29</height>
1552  <uuid>{cc0e0187-e5c9-4b44-b8c0-28d00d45cb89}</uuid>
1553  <visible>true</visible>
1554  <midichan>0</midichan>
1555  <midicc>0</midicc>
1556  <label>dB-Range</label>
1557  <alignment>right</alignment>
1558  <font>Nimbus Sans L</font>
1559  <fontsize>14</fontsize>
1560  <precision>3</precision>
1561  <color>
1562   <r>0</r>
1563   <g>0</g>
1564   <b>0</b>
1565  </color>
1566  <bgcolor mode="nobackground">
1567   <r>255</r>
1568   <g>255</g>
1569   <b>255</b>
1570  </bgcolor>
1571  <bordermode>noborder</bordermode>
1572  <borderradius>1</borderradius>
1573  <borderwidth>1</borderwidth>
1574 </bsbObject>
1575 <bsbObject version="2" type="BSBLabel">
1576  <objectName/>
1577  <x>145</x>
1578  <y>289</y>
1579  <width>110</width>
1580  <height>27</height>
1581  <uuid>{df57c2f7-4a74-460f-9f7f-b3efb8106306}</uuid>
1582  <visible>true</visible>
1583  <midichan>0</midichan>
1584  <midicc>0</midicc>
1585  <label>Show LED's as</label>
1586  <alignment>right</alignment>
1587  <font>Nimbus Sans L</font>
1588  <fontsize>14</fontsize>
1589  <precision>3</precision>
1590  <color>
1591   <r>0</r>
1592   <g>0</g>
1593   <b>0</b>
1594  </color>
1595  <bgcolor mode="nobackground">
1596   <r>255</r>
1597   <g>255</g>
1598   <b>255</b>
1599  </bgcolor>
1600  <bordermode>noborder</bordermode>
1601  <borderradius>1</borderradius>
1602  <borderwidth>1</borderwidth>
1603 </bsbObject>
1604 <bsbObject version="2" type="BSBDropdown">
1605  <objectName>showdb</objectName>
1606  <x>254</x>
1607  <y>289</y>
1608  <width>80</width>
1609  <height>28</height>
1610  <uuid>{d09ab184-f4b1-4340-8730-e73b870bcf9a}</uuid>
1611  <visible>true</visible>
1612  <midichan>0</midichan>
1613  <midicc>0</midicc>
1614  <bsbDropdownItemList>
1615   <bsbDropdownItem>
1616    <name>raw amps</name>
1617    <value>0</value>
1618    <stringvalue/>
1619   </bsbDropdownItem>
1620   <bsbDropdownItem>
1621    <name>dB</name>
1622    <value>1</value>
1623    <stringvalue/>
1624   </bsbDropdownItem>
1625  </bsbDropdownItemList>
1626  <selectedIndex>1</selectedIndex>
1627  <randomizable group="0">false</randomizable>
1628 </bsbObject>
1629 <bsbObject version="2" type="BSBSpinBox">
1630  <objectName>inchnl</objectName>
1631  <x>105</x>
1632  <y>290</y>
1633  <width>47</width>
1634  <height>27</height>
1635  <uuid>{2fce6993-35f8-4dd7-bedd-f809c0803989}</uuid>
1636  <visible>true</visible>
1637  <midichan>0</midichan>
1638  <midicc>0</midicc>
1639  <alignment>right</alignment>
1640  <font>DejaVu Sans</font>
1641  <fontsize>14</fontsize>
1642  <color>
1643   <r>0</r>
1644   <g>0</g>
1645   <b>0</b>
1646  </color>
1647  <bgcolor mode="nobackground">
1648   <r>255</r>
1649   <g>255</g>
1650   <b>255</b>
1651  </bgcolor>
1652  <resolution>1.00000000</resolution>
1653  <minimum>1</minimum>
1654  <maximum>1e+12</maximum>
1655  <randomizable group="0">false</randomizable>
1656  <value>1</value>
1657 </bsbObject>
1658 <bsbObject version="2" type="BSBLabel">
1659  <objectName/>
1660  <x>5</x>
1661  <y>289</y>
1662  <width>102</width>
1663  <height>29</height>
1664  <uuid>{df02308f-b978-4275-817e-1ad38c5b30d5}</uuid>
1665  <visible>true</visible>
1666  <midichan>0</midichan>
1667  <midicc>0</midicc>
1668  <label>Input Channel</label>
1669  <alignment>right</alignment>
1670  <font>Nimbus Sans L</font>
1671  <fontsize>14</fontsize>
1672  <precision>3</precision>
1673  <color>
1674   <r>0</r>
1675   <g>0</g>
1676   <b>0</b>
1677  </color>
1678  <bgcolor mode="nobackground">
1679   <r>255</r>
1680   <g>255</g>
1681   <b>255</b>
1682  </bgcolor>
1683  <bordermode>noborder</bordermode>
1684  <borderradius>1</borderradius>
1685  <borderwidth>1</borderwidth>
1686 </bsbObject>
1687</bsbPanel>
1688<bsbPresets>
1689</bsbPresets>
1690<EventPanel name="" tempo="60.00000000" loop="8.00000000" x="360" y="248" width="612" height="322" visible="false" loopStart="0" loopEnd="0">    </EventPanel>
1691