-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTracker.pck.st
More file actions
4581 lines (3978 loc) · 200 KB
/
Copy pathTracker.pck.st
File metadata and controls
4581 lines (3978 loc) · 200 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
'From Cuis7.9 [latest update: #8139] on 19 August 2026 at 1:26:38 pm'!
'Description A tracker implemented with Signals.'!
!provides: 'Tracker' 1 135!
!requires: 'Signals' 1 490 nil!
SystemOrganization addCategory: #'Tracker-Kernel'!
SystemOrganization addCategory: #'Tracker-Morphic'!
SystemOrganization addCategory: #'Tracker-Theme'!
!classDefinition: #DarkerTheme category: #'Tracker-Theme'!
Theme subclass: #DarkerTheme
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Theme'!
!classDefinition: 'DarkerTheme class' category: #'Tracker-Theme'!
DarkerTheme class
instanceVariableNames: ''!
!classDefinition: #Tracker category: #'Tracker-Kernel'!
ActiveModel subclass: #Tracker
instanceVariableNames: 'instruments tracks sequence label bpm swing level inputOctave cursorPattern cursorLine cursorTrack playheadPattern playheadLine followPlayhead playStartPattern playStartLine playEndPattern playEndLine playingMask loop anyTrackSoloed ticksToNextLine peakLeft peakRight buses random undoStack redoStack videoTrackA videoTrackB videoOperation bitblt'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Kernel'!
!classDefinition: 'Tracker class' category: #'Tracker-Kernel'!
Tracker class
instanceVariableNames: ''!
!classDefinition: #PatternControlBar category: #'Tracker-Morphic'!
ControlPanel subclass: #PatternControlBar
instanceVariableNames: 'tracker pattern'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'PatternControlBar class' category: #'Tracker-Morphic'!
PatternControlBar class
instanceVariableNames: ''!
!classDefinition: #TrackControlBar category: #'Tracker-Morphic'!
ControlPanel subclass: #TrackControlBar
instanceVariableNames: 'tracker track'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'TrackControlBar class' category: #'Tracker-Morphic'!
TrackControlBar class
instanceVariableNames: ''!
!classDefinition: #TrackerWindow category: #'Tracker-Morphic'!
SystemWindow subclass: #TrackerWindow
instanceVariableNames: 'instrumentEditor instrumentRack sampleEditor videoMonitor adjuster meter arranger patternEditor lowerPane'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'TrackerWindow class' category: #'Tracker-Morphic'!
TrackerWindow class
instanceVariableNames: ''!
!classDefinition: #InstrumentRackMorph category: #'Tracker-Morphic'!
ScrollerMorph subclass: #InstrumentRackMorph
instanceVariableNames: 'tracker'
classVariableNames: 'ClipboardBuffer'
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'InstrumentRackMorph class' category: #'Tracker-Morphic'!
InstrumentRackMorph class
instanceVariableNames: ''!
!classDefinition: #InstrumentEditorMorph category: #'Tracker-Morphic'!
ZoomerMorph subclass: #InstrumentEditorMorph
instanceVariableNames: 'tracker'
classVariableNames: 'ClipboardBuffer'
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'InstrumentEditorMorph class' category: #'Tracker-Morphic'!
InstrumentEditorMorph class
instanceVariableNames: ''!
!classDefinition: #ArrangerMorph category: #'Tracker-Morphic'!
BoxMorph subclass: #ArrangerMorph
instanceVariableNames: 'tracker font clipboard selectionStart showCursor pauseBlinking'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'ArrangerMorph class' category: #'Tracker-Morphic'!
ArrangerMorph class
instanceVariableNames: ''!
!classDefinition: #MultitrackMeterMorph category: #'Tracker-Morphic'!
BoxMorph subclass: #MultitrackMeterMorph
instanceVariableNames: 'tracker leftMargin meterWidth meterSpacing'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'MultitrackMeterMorph class' category: #'Tracker-Morphic'!
MultitrackMeterMorph class
instanceVariableNames: ''!
!classDefinition: #PatternEditorMorph category: #'Tracker-Morphic'!
BoxMorph subclass: #PatternEditorMorph
instanceVariableNames: 'tracker cursorPosition font labelFont labelMonoFont editStep showCursor pauseBlinking selectionLineStart selectionTrackStart'
classVariableNames: 'ClipboardBuffer FXColors FXStrings TrackColors'
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'PatternEditorMorph class' category: #'Tracker-Morphic'!
PatternEditorMorph class
instanceVariableNames: ''!
!classDefinition: #PlaybackStatusMorph category: #'Tracker-Morphic'!
BoxMorph subclass: #PlaybackStatusMorph
instanceVariableNames: 'tracker font'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'PlaybackStatusMorph class' category: #'Tracker-Morphic'!
PlaybackStatusMorph class
instanceVariableNames: ''!
!classDefinition: #SampleEditorMorph category: #'Tracker-Morphic'!
BoxMorph subclass: #SampleEditorMorph
instanceVariableNames: 'tracker sample needsRecomputingImage needsUpdate waveformImage playheadPosition cursorPosition selectionPositionStart mode title flap showCursor pauseBlinking font playingSample'
classVariableNames: 'ClipboardBuffer'
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'SampleEditorMorph class' category: #'Tracker-Morphic'!
SampleEditorMorph class
instanceVariableNames: ''!
!classDefinition: #VideoMonitorMorph category: #'Tracker-Morphic'!
BoxMorph subclass: #VideoMonitorMorph
instanceVariableNames: 'tracker'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Morphic'!
!classDefinition: 'VideoMonitorMorph class' category: #'Tracker-Morphic'!
VideoMonitorMorph class
instanceVariableNames: ''!
!classDefinition: #Instrument category: #'Tracker-Kernel'!
Object subclass: #Instrument
instanceVariableNames: 'patchMorph rackMorph patch track trigger'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Kernel'!
!classDefinition: 'Instrument class' category: #'Tracker-Kernel'!
Instrument class
instanceVariableNames: ''!
!classDefinition: #Pattern category: #'Tracker-Kernel'!
Object subclass: #Pattern
instanceVariableNames: 'blocks length lpb'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Kernel'!
!classDefinition: 'Pattern class' category: #'Tracker-Kernel'!
Pattern class
instanceVariableNames: ''!
!classDefinition: #Track category: #'Tracker-Kernel'!
Object subclass: #Track
instanceVariableNames: 'tracker muted soloed instrument ticksToTrigger trigger tuning numberOfFXColumns'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Kernel'!
!classDefinition: 'Track class' category: #'Tracker-Kernel'!
Track class
instanceVariableNames: ''!
!classDefinition: #Trigger category: #'Tracker-Kernel'!
Object subclass: #Trigger
instanceVariableNames: 'instrument note velocity effects'
classVariableNames: ''
poolDictionaries: ''
category: 'Tracker-Kernel'!
!classDefinition: 'Trigger class' category: #'Tracker-Kernel'!
Trigger class
instanceVariableNames: ''!
!classDefinition: #Tuning category: #'Tracker-Kernel'!
Object subclass: #Tuning
instanceVariableNames: 'intervals label noteNames'
classVariableNames: 'EDO12 Library'
poolDictionaries: ''
category: 'Tracker-Kernel'!
!classDefinition: 'Tuning class' category: #'Tracker-Kernel'!
Tuning class
instanceVariableNames: ''!
!Tracker commentStamp: '<historical>' prior: 0!
This is the model of a tracker. It holds a whole song or project (instruments, tracks and sequence of patterns, and global settings like BPM, swing, etc), and it also keeps track of runtime state (cursor position, playhead position, etc).!
!Instrument commentStamp: '<historical>' prior: 0!
An instrument has a patch of signal-processing modules, and interprets tracker triggers by sending messages to the patch to play notes or change parameters like velocity, volume, panning, etc. The patch of an instrument can be a musical instrument like a synthesizer or it could also be a send effect (like a reverb) that processes the output of other instruments. Instruments are designed to be monophonic (they play one note at a time).!
!Pattern commentStamp: '<historical>' prior: 0!
A pattern is a grid of triggers (notes and effect commands). The blocks (columns) correspond to tracks or channels.!
!Track commentStamp: '<historical>' prior: 0!
A track can play one instrument at a time. It can be muted or soloed, and it can be set to an arbitrary tuning. If the tuning is other than the standard 12-EDO, it internally maps arbitrary notes to fractional 12-EDO notes (using floats instead of the standard MIDI 0 to 127 integers).!
!Trigger commentStamp: '<historical>' prior: 0!
A trigger is a cell in the grid of a pattern. It can contain any of the following (optional) parameters: an instrument number (1 to 255), a note to play (0 to 127 as MIDI, and -1 to represent note off), a velocity value (0 to 128), and effect commands.
Effect commands:
∙ <xy / >xy crescendo/diminuendo, fade in/out increasing/decreasing velocity by x over y lines (0 = 0%, F = 100%)
∙ !!xy cut to velocity x (0 = minimum, F = maximum) after y/16 of a line
∙ #xx finetune note up by xx/256 of a note (depending on the track's tuning system)
∙ Gxx glide to note over xx/16 lines (01 = 1/16 of a line, 10 = 1 line, FF = almost 16 lines)
∙ ^xy / _xy (printed ↑xy / ↓xy) slide pitch up/down by x notes over y lines (depending on the track's tuning system)
∙ *xy retrigger every y/16 of a line, and change velocity according to x (see below)
∙ @xx jump to sample offset (00 = start, FF = end)
∙ $xx jump to slice marker xx (00 = start)
∙ +xx / -xx jump forward / backwards xx/16th of a line at the current playback speed (10 = duration of 1 line)
∙ /xy / \xy slide playback speed to x over y lines and play forward / backwards (4 = ¹/₂×, 8 = 1×, C = 2×, F = 8×)
∙ ~xy scribble (oscillate playback direction) at peak speed x every y/16 of a line
∙ 0xx to 9xx set control value
∙ Fxx set tempo to xx BPM
∙ &xx delay trigger by xx/256 of a line (00 = no delay, 01 = 1/256 of a line, FF = 1/256 before next line)
∙ ?xx set the probability of playing the trigger (00 = never, FF = always)
∙ Axx / Bxx set video source A/B to track xx
∙ Xxy apply BitBlt rule x on video source A and y on video source B
Retrigger velocity change:
∙ 0 no velocity change
∙ 1, 2, 3, 4, 5 reduce velocity by subtracting 1/32, 1/16, 1/8, 1/4, 1/2
∙ 6, 7 scale down velocity multuplying by 2/3, 1/2
∙ 8 no velocity change
∙ 9, A, B, C, D increase velocity by adding 1/32, 1/16, 1/8, 1/4, 1/2
∙ E, F scale up velocity multiplying by 3/2, 2
!
!Tuning commentStamp: '<historical>' prior: 0!
A tuning system is defined by a list of intervals from the root note, in cents of a semitone. The last interval is assumed to be the octave (normally 1200.0 cents, but not always). This is the same definition of tuning system that Scala uses. We also include optional names for the notes, in order to support special notation for some tunings such as 31-EDO.!
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
acceptButton
^ self successColor! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
background
^ Color black! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
buttonColorFrom: paneColor
^ paneColor adjustSaturation: -0.03 brightness: -0.1! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
buttonLabel
^ Color black! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
cancelButton
^ self errorColor! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
errorColor
^ Color lightRed! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
failureColor
^ Color yellow duller! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
focusIndicator
^ self textHighlight lighter! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
listMultiHighlightFocused: aBoolean
^ (self listHighlightFocused: aBoolean)
adjustSaturation: 0.0 brightness: 0.15! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
paneBackgroundFrom: aColor
" ^ aColor adjustSaturation: 0 brightness: -0.7"
^ aColor alphaMixed: 0.14 with: Color black! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
scrollbarButtonColor
^Color black! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
scrollbarColor
^ Color black! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
scrollbarSliderShadowColor
^Color black! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
shout
"
SHTextStylerST80 releaseClassCachedState
"
| green yellow pink blue lilac |
"fav:"
yellow := '#F6FA70'.
blue := '#80DAFF'.
" blue := '#62CDFF'."
green := '#B4FF9F'.
pink := '#FF8AAE'.
" orange := '#FFCBA3'."
lilac := '#ACBCFF'.
"classic:"
" yellow := '#FFFE82'.
blue := '#9ED6FF'.
green := '#ADFFD3'.
purple := '#FF709C'."
"fluo:"
" green := '#A3F307'.
yellow := '#e2f9e2'.
purple := '#f50b86'.
blue := '#05f9e2'."
"neon:"
" yellow := '#F6FA70'.
blue := '#0079FF'.
green := '#00DFA2'.
purple := '#FF0060'."
^ {
#selector -> nil.
#defaults -> #white.
#undefined -> #white. "#(lightRed lighter lighter lighter lighter)."
#comment -> #(lightGray lighter).
#literals -> blue.
#pseudoVariables -> pink. "and bold"
#messages -> #(white).
#incompleteMessages -> #(white).
#arguments -> yellow.
#instVar -> lilac.
#tempBar -> #(white darker).
" #tempVars -> '#F0FFC4'."
" #tempVars -> '#ADFFD3'."
#tempVars -> green.
" #blockTemps -> '#5CFFA7'."
#blockTemps -> green.
" #block -> #(white)."
#blockLevelZero -> #(white).
#blockLevelOne -> #(red muchLighter).
#blockLevelTwo -> #(yellow muchLighter).
#blockLevelThree -> #(green muchLighter).
#blockLevelFour -> #(blue muchLighter).
#blockLevelFive -> #(white darker).
#blockLevelSix -> #(white darker).
#blockLevelSeven -> #(white darker).
#methodTags -> #(lightGray lighter). "#(hotPink)"
}
"
SHTextStylerST80 initialize
"
! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
successColor
^ Color lightGreen duller! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
text
^ Color white! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 27/Jun/2026, 9:53:18 pm (UTC)'!
textAutoHighlight
" ^ (Color colorFrom: '#FF005C') alpha: 0.5"
" ^ (Color colorFrom: '#ff2f8e') alpha: 0.5"
^ (Color colorFrom: '#FF4466') alpha: 0.5! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
textCursor
^ Color white! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
textHighlight
^ Color gray "Color r: 0.2 g: 0.35 b: 0.45"! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
unfocusedTextHighlightFrom: aColor
^aColor adjustSaturation: 0.0 brightness: -0.08! !
!DarkerTheme methodsFor: 'colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
windowLabel
^ `Color gray: 0.2`! !
!DarkerTheme methodsFor: 'icons' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
closeIcon
^ self cancelIcon! !
!DarkerTheme methodsFor: 'initialization' stamp: 'len 19/Aug/2026, 5:59:09 am (UTC)'!
initialize
super initialize.
"
TTFontReader smalltalkAssignmentArrowGlyphCodePoint: 16r2B05.
TTFontReader smalltalkReturnArrowGlyphCodePoint: 16r2B06.
TrueTypeFontFamily readAllTrueTypeFontsIn: DirectoryEntry trueTypeFontsDirectory / 'DejaVu' / 'DejaVuSans'.
TrueTypeFontFamily readAllTrueTypeFontsIn: DirectoryEntry trueTypeFontsDirectory / 'JetBrainsMono'.
TrueTypeFontFamily readAllTrueTypeFontsIn: DirectoryEntry trueTypeFontsDirectory / 'Commodore 64'.
PreferenceSet setDefaultFont: 'DejaVu Sans'.
PreferenceSet defaultFontSize: 18.
"
Preferences
at: #focusFollowsMouse put: true;
at: #showAssignmentAsLeftArrow put: true;
at: #biggerCursors put: false;
at: #dismissAllOnOptionClose put: true;
at: #subPixelRenderColorFonts put: true;
at: #italicsInShout put: true;
at: #shoutInWorkspaces put: true;
at: #optionalButtons put: false;
at: #showAnnotations put: true.
PreferenceSet defaultFontSize: 18.
SHTextStylerST80 initialize.
(self runningWorld taskbar color: Color transparent; submorphs) last hide! !
!DarkerTheme methodsFor: 'menu colors' stamp: 'len 17/Jun/2026, 10:50:11 am (UTC)'!
menu
^ Color darkGray! !
!DarkerTheme methodsFor: 'menu colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
menuText
^ Color white! !
!DarkerTheme methodsFor: 'menu colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
menuTitleBar
^ self menu darker! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
buttonBorderWidth
^ 1! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
buttonPaneHeight
"Answer the user's preferred default height for button panes."
^(Preferences at: #standardButtonFont) lineSpacing * 10 // 8! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
embossedButtonLabels
^ false! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
embossedTitles
^ false! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
fullScreenDeskMargin
^ 0! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 18/Jun/2026, 2:04:07 pm (UTC)'!
layoutAdjusterThickness
^ 4! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
roundButtons
^ true! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
roundWindowCorners
^ true! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
roundedButtonRadius
^ 4! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
roundedWindowRadius
^6! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
scrollbarShowButtons
^ false! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
scrollbarThickness
^ 16! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
useUniformColors
^false! !
!DarkerTheme methodsFor: 'other options' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
windowBorderWidth
^ 6! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
browser
^ `(Color fromHexString: '#00FFAB') duller`
" ^ Color lightGreen duller"! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
changeList
^ Color lightCyan duller! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
changeSorter
^ Color lightCyan duller! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
debugger
^ Color lightRed darker! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 20/Jun/2026, 11:19:46 am (UTC)'!
defaultButtonColor
^ self defaultWindowColor lighter "lighter"! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
defaultWindowColor
^ `Color hue: 212 chroma: 0.015 luminance: 0.35`! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
fileContentsBrowser
^ Color tan! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
fileList
^ Color lightMagenta duller! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
messageNames
^ Color lightBlue duller! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
messageSet
^ Color lightBlue duller! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
packageList
^ Color tan! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
testRunner
^ Color blue quiteWhiter duller! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
transcript
^ Color lightOrange! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
versionsBrowser
^ Color pink whiter duller! !
!DarkerTheme methodsFor: 'tool colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
workspace
^ Color lightYellow duller! !
!DarkerTheme methodsFor: 'widget colors' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
textPane
^ Color black! !
!DarkerTheme methodsFor: 'private - shout mappings' stamp: 'len 11/Apr/2026, 5:42:14 am (UTC)'!
generateShoutConfig
| styles colors |
styles := OrderedCollection new.
colors := self shout as: Dictionary.
{
{self undefined. colors at: #undefined}.
{self defaults . colors at: #defaults}.
{self pseudoVariables . colors at: #pseudoVariables. #bold}.
{self literals . colors at: #literals}.
{self instVar . colors at: #instVar}.
{self messages . colors at: #messages}.
{self blockLevelZero . colors at: #blockLevelZero}.
{self blockLevelOne . colors at: #blockLevelOne}.
{self blockLevelTwo . colors at: #blockLevelTwo}.
{self blockLevelThree . colors at: #blockLevelThree}.
{self blockLevelFour . colors at: #blockLevelFour}.
{self blockLevelFive . colors at: #blockLevelFive}.
{self blockLevelSix . colors at: #blockLevelSix}.
{self blockLevelSeven . colors at: #blockLevelSeven}.
{self tempBar . colors at: #tempBar}.
{self methodTags . colors at: #methodTags . #bold}.
{self globals . colors at: #defaults . #bold}.
{self incompleteMessages . colors at: #incompleteMessages . #underlined}.
{self argumentTypes . colors at: #arguments . self italic}.
{self symbols . colors at: #messages . #bold}.
{self pattern . colors at: #selector . #bold}.
{self ansiAssignment . nil . #bold}.
{self assignment . nil . #bold}.
{self return . nil . #bold}.
{self tempVars . colors at: #tempVars . self italic}.
{self blockTemps . colors at: #blockTemps . self italic}
} do: [ :style |
styles addAll:
(style first
collect: [ :category | | elements |
elements _ style asOrderedCollection.
elements at: 1 put: category.
Array withAll: elements ])].
"Miscellaneous remainder after factoring out commonality:"
styles addAll: {
{#unfinishedString . colors at: #undefined . #normal}.
{#undefinedIdentifier . colors at: #undefined .#bold}.
{#unfinishedComment . colors at: #undefined . self italic}.
{#comment . colors at: #comment . self italic}.
{#string . colors at: #literals . #normal}.
{#literal . nil . self italic}.
{#incompleteIdentifier . colors at: #incompleteMessages . {#italic. #underlined}}.
{#classVar . colors at: #instVar . #bold}.
}.
^ styles! !
!DarkerTheme class methodsFor: 'as yet unclassified' stamp: 'len 11/Apr/2026, 5:49:05 am (UTC)'!
initialize
super initialize.
self beCurrent! !
!Tracker methodsFor: 'accessing' stamp: 'len 16/Dec/2025, 10:27:25 am (UTC)'!
bpm
^ bpm! !
!Tracker methodsFor: 'accessing' stamp: 'len 29/Jun/2026, 7:08:05 pm (UTC)'!
bpm: aNumber
bpm := aNumber.
self triggerEvent: #bpmChanged: with: bpm! !
!Tracker methodsFor: 'accessing' stamp: 'len 5/Mar/2026, 8:36:52 am (UTC)'!
buses
^ buses! !
!Tracker methodsFor: 'accessing' stamp: 'len 7/Jan/2026, 9:00:57 am (UTC)'!
followPlayhead
^ followPlayhead! !
!Tracker methodsFor: 'accessing' stamp: 'len 10/Jun/2026, 5:09:15 pm (UTC)'!
inputOctave
^ inputOctave! !
!Tracker methodsFor: 'accessing' stamp: 'len 22/Jun/2026, 11:59:12 am (UTC)'!
inputOctave: anInteger
inputOctave := anInteger.
self triggerEvent: #inputOctaveChanged: with: inputOctave! !
!Tracker methodsFor: 'accessing' stamp: 'len 18/Feb/2026, 9:58:40 am (UTC)'!
instruments
^ instruments! !
!Tracker methodsFor: 'accessing' stamp: 'len 10/Feb/2026, 8:05:40 am (UTC)'!
label
^ label! !
!Tracker methodsFor: 'accessing' stamp: 'len 10/Feb/2026, 8:05:55 am (UTC)'!
label: aString
label := aString.
self triggerEvent: #labelChanged! !
!Tracker methodsFor: 'accessing' stamp: 'len 24/Jan/2026, 7:02:29 am (UTC)'!
level
^ level! !
!Tracker methodsFor: 'accessing' stamp: 'len 24/Jan/2026, 7:20:55 am (UTC)'!
level: aNumber
level := aNumber min: 1.0 max: 0.0.
self triggerEvent: #levelChanged! !
!Tracker methodsFor: 'accessing' stamp: 'len 9/Jul/2026, 5:40:28 pm (UTC)'!
lps
"Answer the number of lines per second."
^ bpm * self playingPattern lpb / 60.0! !
!Tracker methodsFor: 'accessing' stamp: 'len 24/Jan/2026, 3:29:37 pm (UTC)'!
peakLeft
^ peakLeft := peakLeft * 0.95! !
!Tracker methodsFor: 'accessing' stamp: 'len 24/Jan/2026, 3:29:52 pm (UTC)'!
peakRight
^ peakRight := peakRight * 0.95! !
!Tracker methodsFor: 'accessing' stamp: 'len 21/Feb/2026, 9:39:00 am (UTC)'!
sequence
^ sequence! !
!Tracker methodsFor: 'accessing' stamp: 'len 21/Feb/2026, 9:40:24 am (UTC)'!
sequencePatternNumbers
| unique |
unique := self sequenceUniquePatterns.
^ sequence collect: [:each| unique indexOf: each key]! !
!Tracker methodsFor: 'accessing' stamp: 'len 21/Feb/2026, 9:40:36 am (UTC)'!
sequenceUniquePatterns
| answer |
answer := OrderedCollection new.
sequence do: [:each| (answer identityIncludes: each key) ifFalse: [answer add: each key]].
^ answer! !
!Tracker methodsFor: 'accessing' stamp: 'len 9/Feb/2026, 6:41:17 pm (UTC)'!
swing
^ swing! !
!Tracker methodsFor: 'accessing' stamp: 'len 22/Jun/2026, 11:28:24 am (UTC)'!
swing: aNumber
swing := aNumber min: 1.0 max: 0.0.
self triggerEvent: #swingChanged: with: swing! !
!Tracker methodsFor: 'accessing' stamp: 'len 4/Jul/2026, 3:47:00 pm (UTC)'!
ticksToNextLine
^ ticksToNextLine! !
!Tracker methodsFor: 'accessing' stamp: 'len 5/Aug/2026, 7:35:55 am (UTC)'!
tpb
"Answer the number of ticks per beat."
^ Module controlRate * 60.0 / bpm! !
!Tracker methodsFor: 'accessing' stamp: 'len 5/Aug/2026, 7:36:18 am (UTC)'!
tpl
"Answer the number of ticks per line."
^ self tpb / self playingPattern lpb! !
!Tracker methodsFor: 'accessing' stamp: 'len 16/Dec/2025, 2:18:23 pm (UTC)'!
tracks
^ tracks! !
!Tracker methodsFor: 'cursor' stamp: 'len 1/Jan/2026, 10:06:02 am (UTC)'!
cursorLine
^ cursorLine! !
!Tracker methodsFor: 'cursor' stamp: 'len 1/Jan/2026, 10:08:09 am (UTC)'!
cursorPattern
^ cursorPattern! !
!Tracker methodsFor: 'cursor' stamp: 'len 1/Jan/2026, 9:37:16 am (UTC)'!
cursorTrack
^ cursorTrack! !
!Tracker methodsFor: 'cursor' stamp: 'len 22/Jun/2026, 11:59:35 am (UTC)'!
inputOctaveDown
inputOctave > 0 ifFalse: [^ self].
self inputOctave: inputOctave - 1! !
!Tracker methodsFor: 'cursor' stamp: 'len 22/Jun/2026, 11:59:57 am (UTC)'!
inputOctaveUp
inputOctave < 9 ifFalse: [^ self].
self inputOctave: inputOctave + 1! !
!Tracker methodsFor: 'cursor' stamp: 'len 14/Mar/2026, 11:22:50 am (UTC)'!
moveCursorBeatDown
self moveCursorLineDown: self selectedPattern lpb! !
!Tracker methodsFor: 'cursor' stamp: 'len 14/Mar/2026, 11:22:59 am (UTC)'!
moveCursorBeatUp
self moveCursorLineUp: self selectedPattern lpb! !
!Tracker methodsFor: 'cursor' stamp: 'len 13/Jun/2026, 5:47:39 pm (UTC)'!
moveCursorLineBottom
self isPlaying ifTrue: [self followPlayhead: false].
cursorLine := self selectedPattern length.
self triggerEvent: #cursorChanged! !
!Tracker methodsFor: 'cursor' stamp: 'len 10/Jan/2026, 3:27:29 pm (UTC)'!
moveCursorLineDown
self moveCursorLineDown: 1! !
!Tracker methodsFor: 'cursor' stamp: 'len 23/Jul/2026, 2:33:14 pm (UTC)'!
moveCursorLineDown: anInteger
| n |
self isPlaying ifTrue: [self followPlayhead: false].
cursorLine := cursorLine + anInteger.
n := self selectedPattern length.
cursorLine > n ifTrue:
[cursorPattern < sequence size
ifTrue:
[cursorPattern := cursorPattern + 1.
cursorLine := cursorLine - n min: self selectedPattern length]
ifFalse: [cursorLine := n]].
self triggerEvent: #cursorChanged! !
!Tracker methodsFor: 'cursor' stamp: 'len 13/Jun/2026, 5:47:34 pm (UTC)'!
moveCursorLineTop
self isPlaying ifTrue: [self followPlayhead: false].
cursorLine := 1.
self triggerEvent: #cursorChanged! !
!Tracker methodsFor: 'cursor' stamp: 'len 10/Jan/2026, 3:27:36 pm (UTC)'!
moveCursorLineUp
self moveCursorLineUp: 1! !
!Tracker methodsFor: 'cursor' stamp: 'len 23/Jul/2026, 2:33:06 pm (UTC)'!
moveCursorLineUp: anInteger
self isPlaying ifTrue: [self followPlayhead: false].
cursorLine := cursorLine - anInteger.
cursorLine < 1 ifTrue:
[cursorPattern > 1
ifTrue:
[cursorPattern := cursorPattern - 1.
cursorLine := self selectedPattern length + cursorLine max: 1]
ifFalse: [cursorLine := 1]].
self triggerEvent: #cursorChanged! !
!Tracker methodsFor: 'cursor' stamp: 'len 13/Jun/2026, 5:46:59 pm (UTC)'!
moveCursorPatternDown
self isPlaying ifTrue: [self followPlayhead: false].
cursorPattern < sequence size ifFalse: [^ self].
cursorPattern := cursorPattern + 1.
cursorLine := cursorLine min: self selectedPattern length.
self triggerEvent: #cursorChanged! !
!Tracker methodsFor: 'cursor' stamp: 'len 13/Jun/2026, 5:47:06 pm (UTC)'!
moveCursorPatternUp
self isPlaying ifTrue: [self followPlayhead: false].
cursorPattern > 1 ifFalse: [^ self].
cursorPattern := cursorPattern - 1.
cursorLine := cursorLine min: self selectedPattern length.
self triggerEvent: #cursorChanged! !
!Tracker methodsFor: 'cursor' stamp: 'len 14/Feb/2026, 12:54:17 pm (UTC)'!
moveCursorTrackLeft
self setCursorTrack: cursorTrack - 1! !
!Tracker methodsFor: 'cursor' stamp: 'len 14/Feb/2026, 12:54:07 pm (UTC)'!
moveCursorTrackRight
self setCursorTrack: cursorTrack + 1! !
!Tracker methodsFor: 'cursor' stamp: 'len 22/Jun/2026, 9:27:57 am (UTC)'!
setCursorTrack: anInteger
((anInteger between: 1 and: tracks size) and: [cursorTrack ~= anInteger]) ifFalse: [^ self].
cursorTrack := anInteger.
self triggerEvent: #cursorChanged.
self triggerEvent: #selectedTrackTuningChanged: with: self selectedTrack tuning! !
!Tracker methodsFor: 'initialization' stamp: 'len 7/Jul/2026, 6:36:23 am (UTC)'!
initialize
instruments := Dictionary new.
tracks := #().
sequence := #().
bpm := 120.
swing := 0.0.
level := 1.0.
inputOctave := 4.
cursorPattern := 1.
cursorLine := 1.
cursorTrack := 1.
playheadPattern := 1.
playheadLine := 0.
followPlayhead := true.
loop := false.
playStartPattern := 1.
playStartLine := 1.
anyTrackSoloed := false.
buses := (Array new: 10) at: 1 put: Bus new; yourself. "the master bus at 0"
peakLeft := 0.0.
peakRight := 0.0.
random := Random new.
undoStack := OrderedCollection new.
redoStack := OrderedCollection new.
bitblt := BitBlt toForm: (Form extent: 227 @ 128 "16:9" depth: Display depth).
videoTrackA := videoTrackB := 0.
videoOperation := 16r11.
self insertTrack: 1.
self insertPattern: 1.
self selectedPattern track: 1 at: 1 position: 2 put: 1 "set instrument to 1"! !
!Tracker methodsFor: 'patterns' stamp: 'len 21/Feb/2026, 9:20:33 am (UTC)'!
deletePattern
sequence size > 1 ifFalse: [^ self]. "don't delete last pattern"
self deletePattern: cursorPattern! !
!Tracker methodsFor: 'patterns' stamp: 'len 21/Feb/2026, 9:23:15 am (UTC)'!
deletePattern: anInteger
sequence := (sequence copyFrom: 1 to: anInteger - 1), (sequence copyFrom: anInteger + 1 to: sequence size).
cursorPattern := cursorPattern min: sequence size.
cursorLine := cursorLine min: self selectedPattern length.
self triggerEvent: #sequenceChanged! !
!Tracker methodsFor: 'patterns' stamp: 'len 1/Jan/2026, 10:00:10 am (UTC)'!
deleteTrigger
self selectedPattern track: cursorTrack at: cursorLine put: nil! !
!Tracker methodsFor: 'patterns' stamp: 'len 10/Jan/2026, 3:55:11 pm (UTC)'!
insertPattern
self insertPattern: (cursorPattern := cursorPattern + 1).
cursorLine := cursorLine min: self selectedPattern length! !
!Tracker methodsFor: 'patterns' stamp: 'len 21/Feb/2026, 9:21:43 am (UTC)'!
insertPattern: anInteger
| answer |
answer := Pattern new: tracks size.
sequence := (sequence copyFrom: 1 to: anInteger - 1), {answer -> (tracks collect: [:each| true])}, (sequence copyFrom: anInteger to: sequence size).
self triggerEvent: #sequenceChanged.
^ answer! !
!Tracker methodsFor: 'patterns' stamp: 'len 21/Feb/2026, 12:37:25 pm (UTC)'!
insertSequence: anArray
"Insert a list of patterns and masks after the current pattern."
sequence := (sequence copyFrom: 1 to: cursorPattern), (anArray collect: [:each| each key -> each value copy]), (sequence copyFrom: cursorPattern + 1 to: sequence size).
self triggerEvent: #sequenceChanged! !
!Tracker methodsFor: 'patterns' stamp: 'len 18/Feb/2026, 9:58:40 am (UTC)'!
selectedInstrument
^ instruments at: (self selectedInstrumentNumber ifNil: [^ nil]) ifAbsentPut: [Instrument new]! !
!Tracker methodsFor: 'patterns' stamp: 'len 18/Feb/2026, 9:41:16 am (UTC)'!
selectedInstrumentNumber
^ self selectedPattern track: cursorTrack instrumentAbove: cursorLine! !
!Tracker methodsFor: 'patterns' stamp: 'len 20/Feb/2026, 3:39:55 pm (UTC)'!
selectedInstrumentNumberAtTrack: trackIndex
^ self selectedPattern track: trackIndex instrumentAbove: cursorLine! !
!Tracker methodsFor: 'patterns' stamp: 'len 21/Feb/2026, 9:22:40 am (UTC)'!
selectedPattern
^ (sequence at: cursorPattern) key! !
!Tracker methodsFor: 'patterns' stamp: 'len 1/Jan/2026, 9:55:05 am (UTC)'!
selectedTrigger
^ self selectedPattern track: cursorTrack at: cursorLine! !
!Tracker methodsFor: 'patterns' stamp: 'len 20/Jan/2026, 9:40:37 am (UTC)'!
selectedTriggerAt: position put: value
self selectedPattern track: cursorTrack at: cursorLine position: position put: value! !
!Tracker methodsFor: 'patterns' stamp: 'len 20/Jan/2026, 9:41:51 am (UTC)'!
selectedTriggerPut: aTrigger
self selectedPattern track: cursorTrack at: cursorLine put: aTrigger! !
!Tracker methodsFor: 'patterns' stamp: 'len 31/Jul/2026, 12:06:52 pm (UTC)'!
setSelectedPatternLength: anInteger
| pattern |
(pattern := self selectedPattern) length = anInteger ifTrue: [^ self].
pattern length: anInteger.
cursorLine <= anInteger ifFalse: [cursorLine := anInteger. self triggerEvent: #cursorChanged].
(playheadPattern = cursorPattern and: [playheadLine <= anInteger])
ifFalse: [playheadLine := anInteger - 1. self triggerEvent: #playheadChanged].
self triggerEvent: #sequenceChanged! !
!Tracker methodsFor: 'patterns' stamp: 'len 14/Jun/2026, 7:42:11 pm (UTC)'!
swapInstrument: anInteger with: anotherInteger
| instrument1 instrument2 |
anInteger = anotherInteger ifTrue: [^ self].
instrument1 := instruments at: anInteger ifAbsent: [].
instrument2 := instruments at: anotherInteger ifAbsent: [].
self sequenceUniquePatterns do: [:each| each swapInstrument: anInteger with: anotherInteger].
instrument1 ifNil: [instruments removeKey: anotherInteger ifAbsent: []] ifNotNil: [instruments at: anotherInteger put: instrument1].
instrument2 ifNil: [instruments removeKey: anInteger ifAbsent: []] ifNotNil: [instruments at: anInteger put: instrument2].
self triggerEvent: #sequenceChanged! !
!Tracker methodsFor: 'patterns' stamp: 'len 21/Feb/2026, 9:23:00 am (UTC)'!
swapPattern: anInteger with: anotherInteger
anInteger = anotherInteger ifTrue: [^ self].
sequence swap: anInteger with: anotherInteger.
self triggerEvent: #sequenceChanged! !
!Tracker methodsFor: 'playing' stamp: 'len 22/Jun/2026, 10:49:25 am (UTC)'!
followPlayhead: aBoolean
followPlayhead = aBoolean ifTrue: [^ self].
followPlayhead := aBoolean.
self triggerEvent: #followPlayheadChanged: with: aBoolean! !
!Tracker methodsFor: 'playing' stamp: 'len 2/Jan/2026, 8:12:17 am (UTC)'!
isPlaying
^ AudioPlayer isPlaying: self! !
!Tracker methodsFor: 'playing' stamp: 'len 13/Jun/2026, 5:38:02 pm (UTC)'!
isPlayingFollowingPlayhead
^ followPlayhead and: [self isPlaying]! !
!Tracker methodsFor: 'playing' stamp: 'len 9/Jul/2026, 11:23:03 am (UTC)'!
loop
^ loop! !
!Tracker methodsFor: 'playing' stamp: 'len 9/Jul/2026, 11:23:25 am (UTC)'!
loop: aBoolean
loop = aBoolean ifTrue: [^ self].
loop := aBoolean.
self triggerEvent: #loopChanged: with: loop! !
!Tracker methodsFor: 'playing' stamp: 'len 4/Jul/2026, 3:44:51 pm (UTC)'!
play
self isPlaying ifTrue: [^ self].
playStartPattern := 1.
playStartLine := 1.
playEndPattern := sequence size.
playEndLine := sequence last key length.
playingMask := nil.
playheadPattern := cursorPattern.
playheadLine := cursorLine - 1.
ticksToNextLine := 0.
buses from: 2 to: buses size put: nil. "remove all buses except the master bus"
"if playing from the begining, reset all modules (for reproducibility):"
(playheadPattern = 1 and: [playheadLine = 0]) ifTrue: [instruments do: [:each| each reset]].
Smalltalk garbageCollect. "just in case, to make a GC less likely during playback"
AudioPlayer startPlaying: self.
self triggerEvent: #playheadChanged.
self triggerEvent: #playingStatusChanged! !
!Tracker methodsFor: 'playing' stamp: 'len 4/Jul/2026, 3:44:51 pm (UTC)'!
playFrom: startPattern line: startLine to: endPattern line: endLine tracks: tracksToPlay
self isPlaying ifTrue: [^ self].
playStartPattern := startPattern.
playStartLine := startLine.