-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsclog.html
More file actions
1465 lines (1276 loc) · 45.3 KB
/
sclog.html
File metadata and controls
1465 lines (1276 loc) · 45.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
lang="en" xml:lang="en">
<head>
<title>sclog</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<meta name="generator" content="Org-mode"/>
<meta name="generated" content="2011-06-08 16:13:01 EEST"/>
<meta name="author" content="Ioannis Zannos"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<style type="text/css">
<!--/*--><![CDATA[/*><!--*/
html { font-family: Times, serif; font-size: 12pt; }
.title { text-align: center; }
.todo { color: red; }
.done { color: green; }
.tag { background-color: #add8e6; font-weight:normal }
.target { }
.timestamp { color: #bebebe; }
.timestamp-kwd { color: #5f9ea0; }
.right {margin-left:auto; margin-right:0px; text-align:right;}
.left {margin-left:0px; margin-right:auto; text-align:left;}
.center {margin-left:auto; margin-right:auto; text-align:center;}
p.verse { margin-left: 3% }
pre {
border: 1pt solid #AEBDCC;
background-color: #F3F5F7;
padding: 5pt;
font-family: courier, monospace;
font-size: 90%;
overflow:auto;
}
table { border-collapse: collapse; }
td, th { vertical-align: top; }
th.right { text-align:center; }
th.left { text-align:center; }
th.center { text-align:center; }
td.right { text-align:right; }
td.left { text-align:left; }
td.center { text-align:center; }
dt { font-weight: bold; }
div.figure { padding: 0.5em; }
div.figure p { text-align: center; }
textarea { overflow-x: auto; }
.linenr { font-size:smaller }
.code-highlighted {background-color:#ffff00;}
.org-info-js_info-navigation { border-style:none; }
#org-info-js_console-label { font-size:10px; font-weight:bold;
white-space:nowrap; }
.org-info-js_search-highlight {background-color:#ffff00; color:#000000;
font-weight:bold; }
/*]]>*/-->
</style>
<script type="text/javascript">
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
var target = document.getElementById(id);
if(null != target) {
elem.cacheClassElem = elem.className;
elem.cacheClassTarget = target.className;
target.className = "code-highlighted";
elem.className = "code-highlighted";
}
}
function CodeHighlightOff(elem, id)
{
var target = document.getElementById(id);
if(elem.cacheClassElem)
elem.className = elem.cacheClassElem;
if(elem.cacheClassTarget)
target.className = elem.cacheClassTarget;
}
/*]]>*///-->
</script>
</head>
<body>
<div id="content">
<h1 class="title">sclog</h1>
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1 2011 </a>
<ul>
<li><a href="#sec-1_1">1.1 2011-04 April </a>
<ul>
<li><a href="#sec-1_1_1">1.1.1 2011-04-19 Tuesday </a></li>
<li><a href="#sec-1_1_2">1.1.2 2011-04-20 Wednesday </a></li>
<li><a href="#sec-1_1_3">1.1.3 2011-04-21 Thursday </a></li>
<li><a href="#sec-1_1_4">1.1.4 2011-04-23 Saturday </a></li>
<li><a href="#sec-1_1_5">1.1.5 2011-04-29 Friday </a></li>
<li><a href="#sec-1_1_6">1.1.6 2011-04-30 Saturday </a></li>
</ul>
</li>
<li><a href="#sec-1_2">1.2 2011-05 May </a>
<ul>
<li><a href="#sec-1_2_1">1.2.1 2011-05-01 Sunday </a></li>
<li><a href="#sec-1_2_2">1.2.2 2011-05-02 Monday </a></li>
<li><a href="#sec-1_2_3">1.2.3 2011-05-04 Wednesday </a></li>
<li><a href="#sec-1_2_4">1.2.4 2011-05-05 Thursday </a></li>
<li><a href="#sec-1_2_5">1.2.5 2011-05-06 Friday </a></li>
<li><a href="#sec-1_2_6">1.2.6 2011-05-07 Saturday </a></li>
<li><a href="#sec-1_2_7">1.2.7 2011-05-08 Sunday </a></li>
<li><a href="#sec-1_2_8">1.2.8 2011-05-09 Monday </a></li>
<li><a href="#sec-1_2_9">1.2.9 2011-05-10 Tuesday </a></li>
<li><a href="#sec-1_2_10">1.2.10 2011-05-11 Wednesday </a></li>
<li><a href="#sec-1_2_11">1.2.11 2011-05-12 Thursday </a></li>
<li><a href="#sec-1_2_12">1.2.12 2011-05-14 Saturday </a></li>
<li><a href="#sec-1_2_13">1.2.13 2011-05-22 Sunday </a></li>
<li><a href="#sec-1_2_14">1.2.14 2011-05-26 Thursday </a></li>
<li><a href="#sec-1_2_15">1.2.15 2011-05-30 Monday </a></li>
</ul>
</li>
<li><a href="#sec-1_3">1.3 2011-06 June </a>
<ul>
<li><a href="#sec-1_3_1">1.3.1 2011-06-06 Monday </a></li>
<li><a href="#sec-1_3_2">1.3.2 2011-06-08 Wednesday </a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<div id="outline-container-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> 2011 </h2>
<div class="outline-text-2" id="text-1">
</div>
<div id="outline-container-1_1" class="outline-3">
<h3 id="sec-1_1"><span class="section-number-3">1.1</span> 2011-04 April </h3>
<div class="outline-text-3" id="text-1_1">
</div>
<div id="outline-container-1_1_1" class="outline-4">
<h4 id="sec-1_1_1"><span class="section-number-4">1.1.1</span> 2011-04-19 Tuesday </h4>
<div class="outline-text-4" id="text-1_1_1">
<ul>
<li id="sec-1_1_1_1">fixing the scaling of the fft magnitude <span class="tag"><span class="spectrogram">spectrogram</span></span><br/>
<p>
The original was:
complexarray = ((((Complex(
Signal.newFrom( magarray[0] ),
Signal.newFrom( magarray[1] )
).magnitude.reverse)).log10) * 80).clip(0, 255);
</p>
<p>
This resulted in magnitude values below 1 producing negative values after log10, which were then clipped away.
</p>
<ul>
<li id="sec-1_1_1_1_1">Correction attempt (needs more testing after re setting fft buffer size to 1024) <br/>
this clipped the higher frequencies away at fft buffer size 2048 or more, but the same was for the original algorithm
<p>
complexarray = (
(Complex(Signal.newFrom(magarray[0]), Signal.newFrom(magarray[1])).magnitude.reverse + 1).log10
</p><ul>
<li>
80
</li>
</ul>
<p>).clip(0, 255);
</p></li>
</ul>
<ul>
<li id="sec-1_1_1_1_2">minimum necessary change: <br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-04-19 Tue 17:27</span></span><br/>
complexarray = ((((Complex(
Signal.newFrom( magarray[0] ),
Signal.newFrom( magarray[1] )
).magnitude.reverse) + 1).log10) * 80).clip(0, 255);
</li>
</ul>
<ul>
<li id="sec-1_1_1_1_3">Debug tries: <br/>
complexarray = Complex(
Signal.newFrom( magarray[0] ),
Signal.newFrom( magarray[1] )
).magnitude.reverse + 1; // prevent items < 0 producing negative values at log10
<p>
["min, max before log10", complexarray.minItem, complexarray.maxItem].postln;
complexarray = complexarray.log10;
["min, max after log10", complexarray.minItem, complexarray.maxItem].postln;
complexarray = complexarray * 160;
["max after * 160", complexarray.maxItem].postln;
</p>
<p>
complexarray = complexarray.clip(0, 255);
["max after clip", complexarray.maxItem].postln;
</p>
<p>
/* complexarray = (80 * Complex(
Signal.newFrom( magarray[0] ),
Signal.newFrom( magarray[1] )
).magnitude.reverse.log10).clip(0, 255);
*/
</p>
</li>
</ul>
<ul>
<li id="sec-1_1_1_1_4"><span class="done DONE"> DONE</span> Introduce more color gradations and tweak the accessing of these <br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-04-19 Tue 18:23</span></span><br/>
<p>
use:
classvar <>defaultFFTBufSize = 1024, <>colorSize = 64;
</p>
<p>
recalcGradient {
var colors;
</p>
<p>
// colors = (0..16).collect({ | val | blend(background, color, val / 16)});
// <span style="text-decoration:underline;">THIS:</span>
colors = (0..colorSize).collect({ | val | blend(background, color, val / colorSize)});
// colors = (1..64).pow(0.01).normalize.collect(blend(background, color, _));
colints = colors.collect({ | col | Image colorToPixel: col });
}
</p>
<p>
futhermore:
</p>
<ul>
<li id="sec-1_1_1_1_4_1">the intensity multiplier variable and the multiplication by 80 need to be tweaked. <br/>
</li>
</ul>
<ul>
<li id="sec-1_1_1_1_4_2">The colors could be graded with a bias for low values as follows: <br/>
colors = (1..colorSize).pow(0.01).normalize.collect(blend(background, color, _));
</li>
</ul>
</li>
</ul>
<ul>
<li id="sec-1_1_1_1_5">Better solution (introduces <span style="text-decoration:underline;">much</span> more detail in low energy regions <br/>
<ul>
<li>
Note taken on <span class="timestamp-wrapper"> <span class="timestamp">2011-04-19 Tue 18:26</span></span> <br/>
The power exponent in calcGradient could be reduced to 0.1 or other values
</li>
</ul>
<ul>
<li id="sec-1_1_1_1_5_1">recalcGradient <br/>
recalcGradient {
var colors;
colors = (1..colorSize).pow(0.01).normalize.collect(blend(background, color, _));
colints = colors.collect({ | col | Image colorToPixel: col });
}
</li>
</ul>
<ul>
<li id="sec-1_1_1_1_5_2">spectrum magnitude scaling in startruntask <br/>
complexarray = log10(
1 +
Complex(
Signal.newFrom(magarray[0]), Signal.newFrom(magarray[1])
).magnitude.reverse;
).clip(0, 1) * intensity;
<p>
complexarray.do({ | val, i |
fftDataArray[i] = colints.clipAt((val * colorSize).round);
});
</p></li>
</ul>
</li>
</ul>
</li>
</ul>
<ul>
<li id="sec-1_1_1_2">added scaleable exponent for color mapping <span class="tag"><span class="spectrogram">spectrogram</span></span><br/>
<p>
Default: 0.5. Tested between: 0.01 and 1
Higher values: peaks show clearer, lower magnitudes may disappear
Lower values: peaks smear more, lower magnitudes are displayed
</p></li>
</ul>
<ul>
<li id="sec-1_1_1_3"><span class="done DONE"> DONE</span> is var windowparent necessary? perhaps window is enough <span class="tag"><span class="spectrogram">spectrogram</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-14 Sat 18:16</span></span><br/>
</li>
</ul>
</div>
</div>
<div id="outline-container-1_1_2" class="outline-4">
<h4 id="sec-1_1_2"><span class="section-number-4">1.1.2</span> 2011-04-20 Wednesday </h4>
<div class="outline-text-4" id="text-1_1_2">
<ul>
<li id="sec-1_1_2_1"><span class="done DONE"> DONE</span> simplify additional process mechanism using dependants vars <span class="tag"><span class="spectrogram">spectrogram</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-10 Tue 11:50</span></span><br/>
<p>
Define vars in Spectrogram2:
</p>
<ol>
<li>
imageObjects: objects that draw on the image (before it is sent to pen)
</li>
<li>
penObjects: objects that draw with pen (after image is sent to pen)
</li>
</ol>
<p>
An object that wants to draw, must add itself to one of those two lists.
Spectrogram2 will send all objects stored in imageObects the message drawImage, and all the objects stored in penObjects the image drawPen.
</p>
<p>
An object can add itself to start drawing or remove itself to stop drawing. This is simpler than going via NotificationCenter.
</p></li>
</ul>
<ul>
<li id="sec-1_1_2_2">fft buffer sizes > 1024 are not supported <span class="tag"><span class="spectrogram">spectrogram</span></span><br/>
<p>
This is because buf.getn can only fetch up to 1024 values (OSC limit?).
</p></li>
</ul>
<ul>
<li id="sec-1_1_2_3">removed frombin - tobin as I find little use for zooming in to part of a spectrum and it complicates the code <span class="tag"><span class="spectrogram">spectrogram</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_1_2_4">added toggle tryout.sc + make code palette w. key shortcuts <span class="tag"><span class="doclistwindow">doclistwindow</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_1_2_5">DocSession:load provides new session if not found in archive <span class="tag"><span class="doclistwindow">doclistwindow</span></span><br/>
<p>
This is important when installing lilt2 to a new computer that does not have any sessions stored.
</p></li>
</ul>
<ul>
<li id="sec-1_1_2_6"><span class="done DONE"> DONE</span> code parser should ignore lines where //: is followed by spce <span class="tag"><span class="doclistwindow">doclistwindow</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-04-20 Wed 18:01</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_1_2_7"><span class="done CANCELLED"> CANCELLED</span> PerformanceWindow should re-parse code on changing docs <span class="tag"><span class="doclistwindow">doclistwindow</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-02 Mon 01:01</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_1_2_8"><span class="done DONE"> DONE</span> add 'doOnce' message to Function <span class="tag"><span class="idea">idea</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-02 Mon 01:01</span></span><br/>
<p>
Function registers itself to notifier and does not reevaluate.
</p>
<p>
Important for booting servers / scopes only once.
</p>
<p>
! marked items in DocListWindow type files can use this automatically. Something like:
</p>
<p>
{ codeString.interpret }.doOnce
instead of:
{ codeString.interpret }.value
</p></li>
</ul>
<ul>
<li id="sec-1_1_2_9"><span class="done DONE"> DONE</span> code item pane does not refresh properly <span class="tag"><span class="performancewindow">performancewindow</span> <span class="bug">bug</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-02 Mon 01:01</span></span><br/>
<p>
At some point the older items remain on the pane together with the newly selecte ones.
</p>
<p>
Could not remedy that. Suggestion: Try using EZListView instead.
</p></li>
</ul>
</div>
</div>
<div id="outline-container-1_1_3" class="outline-4">
<h4 id="sec-1_1_3"><span class="section-number-4">1.1.3</span> 2011-04-21 Thursday </h4>
<div class="outline-text-4" id="text-1_1_3">
<ul>
<li id="sec-1_1_3_1">added load, play, loadDefault methods to Buffer class <span class="tag"><span class="buffer">buffer</span></span><br/>
</li>
</ul>
</div>
</div>
<div id="outline-container-1_1_4" class="outline-4">
<h4 id="sec-1_1_4"><span class="section-number-4">1.1.4</span> 2011-04-23 Saturday </h4>
<div class="outline-text-4" id="text-1_1_4">
<ul>
<li id="sec-1_1_4_1">function hashKey is taken from def.sourceCode, not def.code <span class="tag"><span class="uniquefunction">uniquefunction</span></span><br/>
<p>
This is because, for example:
</p>
<p>
{ WhiteNoise.ar(0.2) }
and
{ WhiteNoise.ar(0.1) }
</p>
<p>
have the same code:
</p>
<p>
Int8Array[ 0, 0, 64, -80, -62, 52, -14 ]
</p>
<p>
So now, in order for a function to be treated as "unique" by UniqueFunction, it must have exactly the same source code string.
</p>
<p>
Note: function.hashKey is used by UniquePlay.
</p></li>
</ul>
<ul>
<li id="sec-1_1_4_2"><span class="done DONE"> DONE</span> add chain, Udef, Ubuf to load synthdefs and buffers before creating a synth <span class="tag"><span class="uniqueobject">uniqueobject</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-02 Mon 01:01</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_1_4_3">Design of UniqueBuffer <span class="tag"><span class="uniquebuffer">uniquebuffer</span></span><br/>
<ul>
<li id="sec-1_1_4_3_1">Templates from existing classes to consider <br/>
BUFFER:
*new { arg server, numFrames, numChannels, bufnum;}
*alloc(server, numFrames, numChannels, completionMessage, bufnum)
*read { arg server, path, startFrame = 0, numFrames = -1, action, bufnum; }
*read(server, path, startFrame, numFrames, action, bufnum)
<p>
UNIQUESYNTH:
*new { | key, defName, args, target, addAction=\addToHead |
^super.new(key, defName ?? { key.asSymbol }, args, target, addAction);
</p>
<p>
}
init { | what, args, target, addAction … moreArgs | }
</p></li>
</ul>
<ul>
<li id="sec-1_1_4_3_2">Interface for UniqueBuffer: Class methods, synonyms, utilities <br/>
<ul>
<li id="sec-1_1_4_3_2_1">Methods modeled after Buffer class methods <br/>
<p>
MODIFIED, works like Buffer:alloc
*new { | key, server, numFrames, numChannels, action | }
like Buffer:alloc, with action executed as soon as info is received, no bufnum
allocates immediately, boots buffer if needed
</p>
<p>
*read { | key, server, path, startFrame = 0, numFrames = -1, action | }
read from file. Boot buffer if needed. Store in library at [buffers, server:key]
</p>
<p>
NOT USED:
*alloc( | key, server, numFrames, numChannels, completionMessage, bufnum | )
allocate immediately. Boot server if needed.
</p>
</li>
</ul>
<ul>
<li id="sec-1_1_4_3_2_2">Methods for convenient use <br/>
<p>
*play { | func, args | }
play last selected buffer or default buffer if none selected
</p>
<p>
*load { | func, args | }
load with file open dialog window, play if func is given
</p>
<p>
*select { | func, args | }
open list of buffers, select one and execute func if provided.
selected buffer stays for next calls of "play" or spectrogram.
</p>
<p>
*spectrogram { | func, args | }
</p>
<p>
*clear { | server | }
clear all UniqueBuffers on server
</p>
</li>
</ul>
<ul>
<li id="sec-1_1_4_3_2_3">Synonyms of convenient methods on Buffer class <br/>
<p>
*play { | func, args | }
play last selected buffer or default buffer if none selected
</p>
<p>
*load { | func, args | }
load from file and play if given func
</p>
<p>
*select { | func, args | }
</p>
<p>
*spectrogram { | func, args | }
</p>
<p>
*clear { | server | }
clear all UniqueBuffers on server
</p>
</li>
</ul>
<ul>
<li id="sec-1_1_4_3_2_4">UniqueBuffer access methods for String and symbol <br/>
<p>
String:ubuf(func) -> get / load the UniqueBuffer corresponding to this path, on the default server
if func is provided, it is used to play the buffer
</p>
<p>
Symbol:ubuf(func) -> get the UniqueBuffer registered at the default buffer under this string
if func is provided, it is used to play the buffer
</p>
</li>
</ul>
<ul>
<li id="sec-1_1_4_3_2_5">Designing the code: argument massage <br/>
<p>
*new { | key, server, numFrames, numChannels, bufnum |
^super.new(key, defName ?? { key.asSymbol }, args, target, addAction);
}
</p>
<p>
*alloc {
</p>
<p>
}
</p>
<p>
<b>/ **</b> 2011-04-26 Tuesday
</p></li>
</ul>
</li>
</ul>
</li>
</ul>
<ul>
<li id="sec-1_1_5_1"><span class="done DONE"> DONE</span> add doOnce and forkOnce methods to function <span class="tag"><span class="uniquefunction">uniquefunction</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-02 Mon 01:00</span></span><br/>
</li>
</ul>
</div>
</div>
<div id="outline-container-1_1_5" class="outline-4">
<h4 id="sec-1_1_5"><span class="section-number-4">1.1.5</span> 2011-04-29 Friday </h4>
<div class="outline-text-4" id="text-1_1_5">
<ul>
<li id="sec-1_1_6_1"><span class="done DONE"> DONE</span> add Symbol:playDef <span class="tag"><span class="uniquesynth">uniquesynth</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-04-29 Fri 09:43</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_1_6_2">UniqueObject *mainKey now returns [this] <span class="tag"><span class="uniqueobject">uniqueobject</span></span><br/>
</li>
</ul>
</div>
</div>
<div id="outline-container-1_1_6" class="outline-4">
<h4 id="sec-1_1_6"><span class="section-number-4">1.1.6</span> 2011-04-30 Saturday </h4>
<div class="outline-text-4" id="text-1_1_6">
<ul>
<li id="sec-1_1_7_1"><span class="done CANCELLED"> CANCELLED</span> decouple coloring scheme from Panes and add it to non-gittable private startup file <span class="tag"><span class="panes">panes</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-10 Tue 11:49</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_1_7_2"><span class="done DONE"> DONE</span> debug Symbol:synth method <span class="tag"><span class="uniquesynth">uniquesynth</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-01 Sun 10:05</span></span><br/>
</li>
</ul>
</div>
</div>
</div>
<div id="outline-container-1_2" class="outline-3">
<h3 id="sec-1_2"><span class="section-number-3">1.2</span> 2011-05 May </h3>
<div class="outline-text-3" id="text-1_2">
</div>
<div id="outline-container-1_2_1" class="outline-4">
<h4 id="sec-1_2_1"><span class="section-number-4">1.2.1</span> 2011-05-01 Sunday </h4>
<div class="outline-text-4" id="text-1_2_1">
<ul>
<li id="sec-1_2_1_1">UniqueBuffer:play crashes on multiple starts, using mplay instead <span class="tag"><span class="uniquebuffer">uniquebuffer</span> <span class="buq">buq</span></span><br/>
<p>
UniqueBuffer:play therefore now uses Function:mplay. This is not a major handicap.
</p></li>
</ul>
</div>
</div>
<div id="outline-container-1_2_2" class="outline-4">
<h4 id="sec-1_2_2"><span class="section-number-4">1.2.2</span> 2011-05-02 Monday </h4>
<div class="outline-text-4" id="text-1_2_2">
<ul>
<li id="sec-1_2_2_1"><span class="done DONE"> DONE</span> UniqueBuffer:load loads also the default buffer if not loaded <span class="tag"><span class="uniquebuffer">uniquebuffer</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-07 Sat 13:26</span></span><br/>
<p>
A minor glitch, but should be looked into.
</p></li>
</ul>
<ul>
<li id="sec-1_2_2_2"><span class="done CANCELLED"> CANCELLED</span> PrivateBusSynth, SignalPoller <span class="tag"><span class="spectrogram">spectrogram</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-07 Sat 13:25</span></span><br/>
<p>
Extend UniqueSynth class with subclasses:
</p>
<p>
PrivateBusSynth: adds a private Bus and redirects the output of the synth to it. For analysis synths, effects etc.
The bus gets freed as soon as the UniqueSynth stops.
</p>
<p>
SignalPoller:
Adds a synchronized routine (rsynca) that polls the output of the synth to the private bus, or an anasysis buffer, and shares the data via a list of functions with other processes.
</p></li>
</ul>
</div>
</div>
<div id="outline-container-1_2_3" class="outline-4">
<h4 id="sec-1_2_3"><span class="section-number-4">1.2.3</span> 2011-05-04 Wednesday </h4>
<div class="outline-text-4" id="text-1_2_3">
<ul>
<li id="sec-1_2_3_1">alternative names for UniqueObject? <span class="tag"><span class="uniqueobject">uniqueobject</span></span><br/>
<p>
ObjectService?
ObjectRegistry?
ObjectServer?
</p>
<p>
PersistentObject?
LibObject?
</p></li>
</ul>
<ul>
<li id="sec-1_2_3_2">Many small bugs have been removed. Library is ready for alpha testing <br/>
</li>
</ul>
<ul>
<li id="sec-1_2_3_3">Added WaitForServer.new to String:fork. Snippets don't need it any more <span class="tag"><span class="uniqueobject">uniqueobject</span></span><br/>
</li>
</ul>
</div>
</div>
<div id="outline-container-1_2_4" class="outline-4">
<h4 id="sec-1_2_4"><span class="section-number-4">1.2.4</span> 2011-05-05 Thursday </h4>
<div class="outline-text-4" id="text-1_2_4">
<ul>
<li id="sec-1_2_4_1">added toggle server auto boot for code evaluation <span class="tag"><span class="code">code</span></span><br/>
<p>
If Code class variable autoBoot is set to true, then evaluating a code snippet with Cmd-shift-x will call WaitForServer.new, thereby ensuring that any calls to 'wait' will be in sync with the server booted.
</p></li>
</ul>
</div>
</div>
<div id="outline-container-1_2_5" class="outline-4">
<h4 id="sec-1_2_5"><span class="section-number-4">1.2.5</span> 2011-05-06 Friday </h4>
<div class="outline-text-4" id="text-1_2_5">
<ul>
<li id="sec-1_2_5_1">Spectrograph alpha version complete, added Pen Object Test <span class="tag"><span class="spectrogram">spectrogram</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_2_5_2">Added theme switching with DocThemes class <span class="tag"><span class="panes">panes</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_2_5_3"><a name="ID-DC7BD27A-F893-4750-9A8D-B22AC3B2C960" id="ID-DC7BD27A-F893-4750-9A8D-B22AC3B2C960"></a>Added addListener method <span class="tag"><span class="uniqueobject">uniqueobject</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_2_5_4">Merged lilt2 to master, added tag v1.0alpha <span class="tag"><span class="lilt2">lilt2</span></span><br/>
</li>
</ul>
<ul>
<li id="sec-1_2_5_5"><span class="todo TODO"> TODO</span> Add doWhen to UniqueObject to do when object is initialized <span class="tag"><span class="uniqueobject">uniqueobject</span></span><br/>
<p>
doWhen { | condition, action |
// Some objects created by makeFunc may need time to initialize
{
while { condition.(this).not } { 0.1.wait };
action.(this);
}.fork(AppClock)
}
</p></li>
</ul>
</div>
</div>
<div id="outline-container-1_2_6" class="outline-4">
<h4 id="sec-1_2_6"><span class="section-number-4">1.2.6</span> 2011-05-07 Saturday </h4>
<div class="outline-text-4" id="text-1_2_6">
<ul>
<li id="sec-1_2_6_1">" … and her name was Elemenbí. " <br/>
<p>
Elemenbí (L. M.: N. B!)
</p></li>
</ul>
</div>
</div>
<div id="outline-container-1_2_7" class="outline-4">
<h4 id="sec-1_2_7"><span class="section-number-4">1.2.7</span> 2011-05-08 Sunday </h4>
<div class="outline-text-4" id="text-1_2_7">
<ul>
<li id="sec-1_2_7_1">Completed Spectrograph simplification <br/>
</li>
</ul>
</div>
</div>
<div id="outline-container-1_2_8" class="outline-4">
<h4 id="sec-1_2_8"><span class="section-number-4">1.2.8</span> 2011-05-09 Monday </h4>
<div class="outline-text-4" id="text-1_2_8">
<ul>
<li id="sec-1_2_8_1">Fixed ServerPrep, Spectrograph, UniqueBuffer, Function:play, Examples <br/>
</li>
</ul>
<ul>
<li id="sec-1_2_8_2">Added Pattern support: EventStream, UniqueStream, Function:sched. Also SynthPrep uses OSCpathResponder for exact boot timing <br/>
</li>
</ul>
</div>
</div>
<div id="outline-container-1_2_9" class="outline-4">
<h4 id="sec-1_2_9"><span class="section-number-4">1.2.9</span> 2011-05-10 Tuesday </h4>
<div class="outline-text-4" id="text-1_2_9">
<ul>
<li id="sec-1_2_9_1">improved help template, added some doc, especially on EventStream and UniqueSynth <br/>
</li>
</ul>
<ul>
<li id="sec-1_2_9_2"><span class="done DONE"> DONE</span> Summary of ideas in this lib <span class="tag"><span class="doc">doc</span></span><br/>
<span class="timestamp-wrapper"><span class="timestamp-kwd">CLOSED: </span> <span class="timestamp">2011-05-10 Tue 13:55</span></span><br/>
<ul>
<li id="sec-1_2_9_2_1">ServerPrep <br/>
<ul>
<li>
Obviate the need to boot the server when starting synths
</li>
<li>
Ensure that Buffers and SynthDefs are allocated / sent to the server
before starting synths, efficiently.
</li>
<li>
Provide a safe way for starting synth and routine processes when the server boots
or when the tree is inited, ensuring that SynthDefs and Buffers will be loaded first
</li>
</ul>
<p>
Classes involved:
</p>
<ul>
<li>
ServerPrep
</li>
<li>
ServerActionLoader
</li>
<li>
SynthLoader
</li>
<li>
DefLoader
</li>
<li>
BufLoader
</li>
<li>
RoutineLoader
</li>
<li>
UniqueBuffer
</li>
<li>
Udef
</li>
</ul>
</li>
</ul>
<ul>
<li id="sec-1_2_9_2_2">UniqueSynth <br/>
<ul>
<li>
Simplify the creation and control of Synths by storing them in a dictionary
for later access, and by providing utility methods for controlling the duration
and release time, for synchronizing the execution and life time of routines
pertaining to a synth, and for attaching other objects that react to the
start and end of a synth.
</li>
</ul>
<p>
Example of how UniqueSynth can simplify the code required:
</p>
<p>
Without Symbol:mplay
</p>
<pre class="example">(
{
loop {
{ var synth;
synth = Synth(\default, [\freq, (25..50).choose.midicps]);
0.1.wait;
synth.release(exprand(0.01, 1.0));
}.fork;
[0.1, 0.2].choose.wait;
};
}.fork;
)
</pre>
<p>
Using Symbol:mplay
</p>
<pre class="example">
(
{
loop {
\default.mplay([\freq, (25..50).choose.midicps]).dur(0.1, exprand(0.01, 1.0));
[0.1, 0.2].choose.wait;
};
}.fork;
)
#+BEGIN_EXAMPLE
</pre>
</li>
</ul>
<ul>
<li id="sec-1_2_9_2_3">EventStream, Function:sched and Function:stream <br/>
<p>
Simplify the creation and access of Streams from Patterns and their use with Routines and Functions scheduled for repeated execution.
</p>
<p>
Example: Simplify the above code even further, while enabling control of dtime (and any other parameters) via patterns:
</p>
<pre class="example">(
{ // Symbol:stream creates and / or accesses the stream as appropriate:
\default.mplay([\freq, \freq.prand((25..50), inf).midicps]).dur(0.1, exprand(0.01, 1.0));
\duration.stream(Prand([0.1, 0.2], 20)); // play 20 events only
}.stream;
)
</pre>
<p>
Note: symbol.stream(Prand(…)) is equivalent to \symbol.prand(…)
</p>
</li>
</ul>
<ul>
<li id="sec-1_2_9_2_4">Object methods for easy messaging via NotificationCenter <br/>
<p>
Simplify the connection of objects for sending messages to each other via NotificationCenter. Automate the creation of mutual NotificationCenter registrations to messages, and their removal when an object receives the message objectClosed.
</p>
<p>
One beneficial effect of this is that it is no longer needed to check whether an object stored in a variable is nil in order to decide whether to send it a message. One can create messaging interconnections between objects without storing one in a variable of the other, and one can safely send a message to an object before it is created or after it is no longer a valid receiver of that message.
</p>
</li>
</ul>
<ul>
<li id="sec-1_2_9_2_5">Code <br/>
<p>
Enable the selection of parts of a SuperCollider document separated by comments followed by :, the movement between such parts, and the execution of those parts through keyboard shortcuts. Additionally, wrap these code parts in a routine so that number.wait messages can be written straight in the code, without wrapping them in { }.fork or Routine({ }).
</p>
<p>
Also ensure that the code will run after the default server is booted and the Buffers and SynthDefs defined as Udefs in a Session have been loaded.
</p>
<p>
Shortcuts provided are:
</p>
<p>
Command-shift-x: Evaluate the code in an AppClock routine, after booting the default server if needed
Command-shift-alt-x: Evaluate the code in a SystemClock routine, after booting the default server if needed
Command-shift-v: Evaluate and post the results of the code, without routine or server booting
Command-shift-j: Select the next code part
Command-shift-k: Select the previous code part
</p>
</li>
</ul>
<ul>
<li id="sec-1_2_9_2_6">Panes <br/>
<p>
Arrange Document windows on the screen conveniently for maximum view area on the screen. Provide 2 layouts: single pane and 2 panes side by side, with keyboard shortcuts for switching between them. Provide an auto-updating document list palette for selecting documents by mouse or by string search. Provide a way for switching between a dark colored document theme and the default document theme via keyboard shortcuts, with automatic updating of the coloring of all relevant documents.
</p>
</li>
</ul>
<ul>
<li id="sec-1_2_9_2_7">Dock <br/>
<p>
Provide some useful shortcuts for common tasks:
browseUserClasses : Open a list of all classes defined in the user's Application Support
directory. Typing return on a selected item opens the code file with the definition of this class.
</p>