-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1077 lines (1046 loc) · 52.2 KB
/
Copy pathindex.html
File metadata and controls
1077 lines (1046 loc) · 52.2 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
<!doctype html>
<!-- Propagator — the cultivating surface for Spore.
SPDX-License-Identifier: GPL-3.0-or-later · Copyright (C) 2026 Joakim Langkilde -->
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>PROPAGATOR</title>
<link
rel="icon"
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%230e2c47'/%3E%3Cpath d='M16 27 V13' stroke='%2345c069' stroke-width='2.4'/%3E%3Cpath d='M16 17 q-9 -2 -10 -11 q9 0 10 9 q1 -9 10 -9 q-1 9 -10 11 Z' fill='%2393f06b'/%3E%3C/svg%3E"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Saira+Stencil+One&family=Shantell+Sans:ital,wght@0,400;0,600;0,700;1,500&family=Spline+Sans+Mono:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- ===== boiling / sketch filters (animated in app.js) ===== -->
<svg class="svg-defs" width="0" height="0" aria-hidden="true">
<defs>
<filter id="boil" x="-12%" y="-12%" width="124%" height="124%">
<feTurbulence
type="fractalNoise"
baseFrequency="0.018"
numOctaves="2"
seed="1"
result="n"
/>
<feDisplacementMap
in="SourceGraphic"
in2="n"
scale="3.2"
xChannelSelector="R"
yChannelSelector="G"
/>
</filter>
<filter id="boil-soft" x="-12%" y="-12%" width="124%" height="124%">
<feTurbulence
type="fractalNoise"
baseFrequency="0.012"
numOctaves="2"
seed="7"
result="n"
/>
<feDisplacementMap
in="SourceGraphic"
in2="n"
scale="1.8"
xChannelSelector="R"
yChannelSelector="G"
/>
</filter>
<filter id="paper-grain">
<feTurbulence
type="fractalNoise"
baseFrequency="0.9"
numOctaves="2"
stitchTiles="stitch"
result="g"
/>
<feColorMatrix in="g" type="saturate" values="0" />
<feComponentTransfer>
<feFuncA type="linear" slope="0.05" />
</feComponentTransfer>
</filter>
<!-- worn ink: GENTLE roughened edges for aged labels (no erosion holes) -->
<filter id="worn" x="-20%" y="-20%" width="140%" height="140%">
<feTurbulence
type="fractalNoise"
baseFrequency="0.016 0.022"
numOctaves="2"
seed="4"
result="warp"
/>
<feDisplacementMap
in="SourceGraphic"
in2="warp"
scale="1.1"
xChannelSelector="R"
yChannelSelector="G"
/>
</filter>
<!-- rustic metal backplate: brushed steel gradient + uneven sheen -->
<linearGradient id="metalPlate" x1="0.12" y1="0" x2="0.9" y2="1">
<stop offset="0" stop-color="#454a52" />
<stop offset="0.38" stop-color="#2c313a" />
<stop offset="0.7" stop-color="#22262d" />
<stop offset="1" stop-color="#15171c" />
</linearGradient>
<!-- vertical brushed-metal striations + grime, grayscale, low alpha -->
<filter id="brushed" x="-2%" y="-2%" width="104%" height="104%">
<feTurbulence
type="fractalNoise"
baseFrequency="0.9 0.04"
numOctaves="3"
seed="11"
stitchTiles="stitch"
result="n"
/>
<feColorMatrix in="n" type="saturate" values="0" />
<feComponentTransfer><feFuncA type="linear" slope="0.5" /></feComponentTransfer>
</filter>
<!-- faded-paint mottling: large soft blotches where the paint thinned -->
<filter id="paintWear" x="-5%" y="-5%" width="110%" height="110%">
<feTurbulence
type="fractalNoise"
baseFrequency="0.02 0.025"
numOctaves="2"
seed="6"
result="n"
/>
<feColorMatrix in="n" type="saturate" values="0" />
<feComponentTransfer>
<feFuncA type="gamma" amplitude="1" exponent="3" offset="0" />
</feComponentTransfer>
</filter>
<!-- warm rust/oxidation pooling toward the edges -->
<radialGradient id="rustEdge" cx="0.5" cy="0.46" r="0.62">
<stop offset="0.6" stop-color="#000" stop-opacity="0" />
<stop offset="0.92" stop-color="#7c4a26" stop-opacity="0.22" />
<stop offset="1" stop-color="#5a2f17" stop-opacity="0.42" />
</radialGradient>
</defs>
</svg>
<div class="paper-grain" aria-hidden="true"></div>
<div class="vignette" aria-hidden="true"></div>
<!-- ===== top connection frame (subtle) ===== -->
<header class="titleblock">
<div class="tb-left">
<div class="tb-mark">
<span class="tb-glyph" id="tbSprout">❀</span>
<span class="tb-name">PROPAGATOR</span>
</div>
<div class="tb-preset">
<label class="conn-field">
<span>PRESET ▸</span>
<select id="presetSel">
<option value="">— preset —</option>
</select>
</label>
<button
id="presetSave"
class="tb-btn"
title="save the current settings as a preset"
>
+ save
</button>
<span class="preset-saver" id="presetSaver" hidden>
<input
type="text"
id="presetName"
class="preset-name"
placeholder="preset name…"
maxlength="40"
autocomplete="off"
spellcheck="false"
/>
<button id="presetConfirm" class="tb-btn tb-btn-ok" title="save preset">
✓
</button>
</span>
<button
id="presetDel"
class="tb-btn tb-btn-icon"
title="delete the selected (user) preset"
aria-label="delete preset"
>
<svg viewBox="0 0 24 24" width="14" height="14" aria-hidden="true">
<path d="M4 7h16" />
<path d="M10 4h4" />
<path d="M6 7l1 13h10l1-13" />
<path d="M10 11v6" />
<path d="M14 11v6" />
</svg>
</button>
<button
id="presetNew"
class="tb-btn"
title="start a new patch (reset to defaults)"
>
✦ new
</button>
<button
id="presetExport"
class="tb-btn tb-btn-icon"
title="export your presets to a file"
aria-label="export presets"
>
⭳
</button>
<button
id="presetImport"
class="tb-btn tb-btn-icon"
title="import presets from a file"
aria-label="import presets"
>
⭱
</button>
<input type="file" id="presetFile" accept=".json,application/json" hidden />
<span class="tb-device" id="deviceSlotsBox" hidden>
<span class="tb-device-lbl">DEVICE ▸</span>
<span class="dslots" id="deviceSlots">
<button
type="button"
class="dslot"
data-slot="0"
title="recall device slot 1"
>
1
</button>
<button
type="button"
class="dslot"
data-slot="1"
title="recall device slot 2"
>
2
</button>
<button
type="button"
class="dslot"
data-slot="2"
title="recall device slot 3"
>
3
</button>
</span>
<button
type="button"
id="deviceSave"
class="tb-btn"
title="arm save, then pick a slot to store the current sound on the pedal"
>
⤓ save
</button>
<button
type="button"
id="devicePull"
class="tb-btn tb-btn-icon"
title="pull the pedal's live sound into the editor"
aria-label="pull patch from device"
>
⟳
</button>
</span>
</div>
</div>
<div class="tb-conn">
<div id="bpmMini" class="bpm-mini" hidden>
<button class="bpm-mini-btn" id="bpmMiniPlay" title="play / pause">⏸</button>
<span class="bpm-mini-led" id="bpmMiniLed"></span>
<button class="bpm-mini-open" id="bpmMiniOpen" title="open the tempo box">
<span id="bpmMiniVal">96</span><span class="bpm-mini-unit">bpm</span>
</button>
</div>
<label class="conn-field">
<span>OUT ▸</span>
<select id="midiOut">
<option value="">— no device —</option>
</select>
</label>
<label class="conn-field">
<span>IN ◂</span>
<select id="midiIn">
<option value="">— no device —</option>
</select>
</label>
<label
class="conn-field switch-field"
title="forward notes/CC from the IN device to Spore"
>
<span>thru</span>
<span class="pill">
<input type="checkbox" id="midiThru" checked />
<span class="pill-track"><span class="pill-knob"></span></span>
</span>
</label>
<div class="conn-status" id="connStatus" data-state="off">
<span class="dot"></span><span class="conn-label" id="connLabel">offline</span>
</div>
<div class="view-wrap">
<button id="viewBtn" class="tb-btn" title="show / hide panels">▦ view</button>
<div id="viewMenu" class="view-menu" hidden></div>
</div>
<button id="resetLayout" class="tb-btn" title="reset panels to the default layout">
⟲ layout
</button>
<button
id="dfuBtn"
class="tb-btn tb-dfu"
title="update firmware (flash over USB / DFU)"
>
⤓ dfu
</button>
</div>
</header>
<!-- ===== unsupported / permission notice ===== -->
<div class="notice" id="notice" hidden>
<div class="notice-card sketch">
<h2 id="noticeTitle">WebMIDI not available</h2>
<p id="noticeBody">
Propagator needs the Web MIDI API. Open it in <strong>Chrome</strong> or
<strong>Edge</strong> over <code>localhost</code> or https.
</p>
<button id="noticeRetry">retry</button>
</div>
</div>
<!-- ===== firmware update (WebUSB DFU) ===== -->
<div class="notice" id="flash" hidden>
<div class="notice-card sketch flash-card">
<h2 id="fwTitle">Update firmware</h2>
<p class="flash-sub" id="fwSub">
Flash the <b>Spore</b> app over USB — no extra tools.
</p>
<div class="flash-row">
<button id="fwModeToggle" class="flash-btn flash-btn-sm">
Install / repair bootloader (advanced)
</button>
</div>
<div class="flash-step">
<span class="flash-num">1</span>
<div class="flash-body">
<div class="flash-label" id="fwChooseLabel">Choose firmware</div>
<div class="flash-row">
<button id="fwUseLatest" class="flash-btn flash-btn-sm" hidden>
⤓ use latest
</button>
<span id="fwLatestInfo" class="flash-info">—</span>
</div>
<input type="file" id="fwFile" accept=".bin" hidden />
<div class="flash-row">
<button id="fwPick" class="flash-btn flash-btn-sm">
or choose a .bin…
</button>
<span id="fwFileInfo" class="flash-info"></span>
</div>
</div>
</div>
<div class="flash-step">
<span class="flash-num">2</span>
<div class="flash-body">
<div class="flash-label">Put Spore in DFU mode</div>
<button id="fwReboot" class="flash-btn">
⤓ Reboot to bootloader (via MIDI)
</button>
<div class="flash-info" id="fwRebootHint">
…or just reset the Daisy — a freshly-bootloadered board waits in DFU on
its own.
</div>
</div>
</div>
<div class="flash-step">
<span class="flash-num">3</span>
<div class="flash-body">
<div class="flash-label">Connect & flash</div>
<div class="flash-row">
<button id="fwConnect" class="flash-btn">🔌 Connect (WebUSB)</button>
<button id="fwFlash" class="flash-btn flash-go" disabled>
⤴ Flash
</button>
<button id="fwLeave" class="flash-btn flash-btn-sm" disabled>
↩ Reboot to app
</button>
</div>
<div class="flash-progress" id="fwProgWrap" hidden>
<div class="flash-bar" id="fwBar"></div>
</div>
<div id="fwStatus" class="flash-info">—</div>
</div>
</div>
<p class="flash-note">
Chrome/Edge only. On <b>Windows</b> the bootloader may need the
<b>WinUSB</b> driver once, via
<a href="https://zadig.akeo.ie/" target="_blank" rel="noopener">Zadig</a>. A
failed flash can't brick Spore — just re-enter DFU and retry.
</p>
<div class="flash-actions">
<button id="fwClose" class="flash-btn">Close</button>
</div>
</div>
</div>
<!-- ===== stage ===== -->
<main class="stage" id="stage">
<!-- ---- center: the Spore device ---- -->
<section class="pedal-wrap">
<div class="pedal" id="pedal">
<!-- boiling hand-inked chassis (portrait, Spore layout) -->
<svg
class="chassis"
viewBox="0 0 340 560"
preserveAspectRatio="none"
aria-hidden="true"
>
<g class="ink">
<rect class="body" x="14" y="14" width="312" height="532" rx="26" />
<rect
class="plate-wear"
x="14"
y="14"
width="312"
height="532"
rx="26"
/>
<rect
class="plate-grime"
x="14"
y="14"
width="312"
height="532"
rx="26"
/>
<rect
class="plate-rust"
x="14"
y="14"
width="312"
height="532"
rx="26"
/>
<rect
class="body-inner"
x="26"
y="26"
width="288"
height="508"
rx="20"
/>
<!-- chipped paint / bare-metal flecks + hairline cracks (worn look) -->
<g class="wearmarks">
<path class="chip" d="M52 104 l8 -4 5 6 -3 7 -8 1 -3 -5 z" />
<path class="chip" d="M287 148 l7 1 3 6 -5 5 -7 -2 -1 -7 z" />
<path class="chip" d="M38 372 l6 -3 6 4 -1 7 -7 3 -5 -5 z" />
<path class="chip" d="M298 452 l7 0 4 6 -4 5 -8 0 -2 -7 z" />
<path class="chip-sm" d="M132 28 l5 -2 2 4 -4 3 -3 -2 z" />
<path class="chip-sm" d="M212 520 l5 0 2 4 -4 3 -4 -2 z" />
<path class="chip-sm" d="M22 250 l5 -1 1 5 -5 2 -2 -3 z" />
<path class="crack" d="M30 214 q16 9 28 2 q11 -5 23 4" />
<path class="crack" d="M312 298 q-13 11 -28 6 q-10 -3 -19 5" />
<path class="crack" d="M150 540 q10 -9 24 -5 q9 3 19 -3" />
</g>
<!-- corner screws -->
<g class="screws">
<circle cx="40" cy="42" r="6" />
<circle cx="300" cy="42" r="6" />
<circle cx="40" cy="518" r="6" />
<circle cx="300" cy="518" r="6" />
</g>
<!-- top-edge jack nubs (audio out / in) -->
<g class="jacks">
<rect x="74" y="1" width="36" height="15" rx="4" />
<rect x="230" y="1" width="36" height="15" rx="4" />
</g>
<!-- decorative heat-coil (propagator warmth) — base band, below footswitch text, inside the plate (body bottom = y546) -->
<path
class="coil"
d="M56 424 q20 -14 40 0 q20 14 40 0 q20 -14 40 0 q20 14 40 0 q20 -14 40 0 q20 14 40 0"
/>
<!-- little sprout growing from a corner -->
<g class="sprout sprout-a">
<path d="M44 14 q2 -22 -10 -32 q16 4 14 24" />
<path d="M44 14 q-2 -20 12 -30 q-14 6 -10 26" />
<line x1="44" y1="14" x2="44" y2="-16" />
</g>
</g>
</svg>
<!-- crisp interactive face -->
<div class="face">
<div class="dc-label">+ ⎓ 9V</div>
<div class="row knobs" id="knobs">
<!-- 6 knobs (2 rows of 3) injected by app.js -->
</div>
<div class="row toggles" id="toggles">
<!-- 3 toggles injected by app.js -->
</div>
<div class="brandband">
<span class="brand-name">SPORE</span>
<span class="brand-sub">fertilize</span>
</div>
<div class="row stomps" id="stomps">
<!-- 2 footswitch units (LED + stomp) injected by app.js -->
</div>
<div class="jack jack-out">OUT</div>
<div class="jack jack-in">IN</div>
</div>
</div>
</section>
<!-- ---- right pod: FX bank (branches from Toggle 3) ---- -->
<aside class="pod pod-right sketch" id="fxPod" data-anchor="t3" data-active="off">
<div class="pod-tab">FX ▸ TOGGLE 3</div>
<div class="silk-group">
<span class="silk-label">EFFECT</span>
<div class="seg seg-fx" id="fxSeg">
<button data-fx="0" class="on">Off</button>
<button data-fx="1">Delay</button>
<button data-fx="2">Reverb</button>
</div>
</div>
<div class="silk-group">
<span class="silk-label">PARAMS</span>
<div class="fx-knobs" id="fxKnobs">
<!-- 6 fx knobs injected by app.js -->
</div>
<div class="dly-sync">
<span class="voice-cap">DLY SYNC</span>
<div
class="lfo-dest"
id="delaySyncSeg"
title="lock delay time to the clock tempo"
>
<button data-s="0" class="on">Off</button><button data-s="1">1/4</button
><button data-s="2">1/8</button><button data-s="3">1/8.</button
><button data-s="4">1/16</button>
</div>
</div>
</div>
</aside>
<!-- ---- MASTER output: filter + volume (applies in every mode) ---- -->
<aside class="pod pod-right sketch" id="masterPod">
<div class="pod-tab">MASTER ▸ OUT</div>
<div class="silk-group">
<span class="silk-label">FILTER + VOLUME</span>
<div class="lfo-dest" id="masterFiltSeg" title="master output filter (post-FX)">
<button data-t="0" class="on">Off</button><button data-t="1">LP</button
><button data-t="2">BP</button><button data-t="3">HP</button>
</div>
<canvas
class="filt-viz"
id="masterFiltViz"
width="190"
height="56"
title="master filter response"
></canvas>
<div class="mod-knobs" id="masterKnobs">
<!-- volume / cutoff / res knobs injected by app.js -->
</div>
</div>
</aside>
<!-- ---- SYNTH voice editor (shown in Synth mode) ---- -->
<!-- ---- GENERATIVE pod: steer the self-playing engine (shown in Generative mode) ---- -->
<aside class="pod pod-left sketch" id="genPod">
<div class="pod-tab">GENERATIVE ▸ STEER</div>
<div class="silk-group">
<span class="silk-label">BEHAVIOUR · TIMBRE BIAS</span>
<div class="mod-knobs" id="genKnobs">
<!-- chord/swell/motion/bright/texture/wander injected by app.js -->
</div>
</div>
<p class="pod-note">
timbre still rolls random on re-seed (FOOTSW 2); these bias the roll + steer
motion
</p>
</aside>
<!-- ---- GRANULAR pod: extra engine controls beyond the 6 knobs (shown in Granular mode) ---- -->
<aside class="pod pod-left sketch" id="granPod">
<div class="pod-tab">GRANULAR ▸ ENGINE</div>
<div class="silk-group">
<span class="silk-label">GRAIN ENGINE</span>
<div class="mod-knobs" id="granKnobs">
<!-- reverse/width/shape/scale injected by app.js -->
</div>
</div>
<p class="pod-note">
reverse: backwards grains · width: stereo spread · shape: soft→gate · scale:
off/maj/min/penta
</p>
</aside>
<aside class="pod pod-synth sketch" id="synthPod">
<div class="pod-tab">SYNTH ▸ VOICE</div>
<div class="silk-group">
<span class="silk-label">TONE</span>
<div class="synth-knobs" id="synthKnobs">
<!-- extended synth params injected by app.js -->
</div>
</div>
<div class="silk-group">
<span class="silk-label">VOICING</span>
<div class="voice-row">
<span class="voice-cap">VOICES</span>
<div
class="lfo-dest"
id="voiceSeg"
title="Polyphony — 1 = mono, fewer voices frees CPU"
>
<button data-v="1">1</button>
<button data-v="2">2</button>
<button data-v="3">3</button>
<button data-v="4" class="on">4</button>
<button data-v="5">5</button>
<button data-v="6">6</button>
</div>
</div>
<div class="voice-row">
<span class="voice-cap">FILTER</span>
<div
class="lfo-dest"
id="synthFilterSeg"
title="Clean 2-pole Svf vs fat 4-pole Moog"
>
<button data-f="0" class="on">Clean</button
><button data-f="1">Fat</button>
</div>
</div>
<div class="voice-row" id="unisonRow">
<span class="voice-cap">UNISON</span>
<div
class="lfo-dest"
id="synthUniSeg"
title="Stacked detuned oscillators (super-saw)"
>
<button data-u="1">1</button><button data-u="2" class="on">2</button
><button data-u="3">3</button><button data-u="4">4</button>
</div>
</div>
<div class="voice-row">
<span class="voice-cap">SUB OCT</span>
<div class="lfo-dest" id="subOctSeg" title="Sub-oscillator octave">
<button data-o="0" class="on">-1</button><button data-o="1">-2</button>
</div>
</div>
<div class="voice-row">
<span class="voice-cap">SUB WAV</span>
<div class="lfo-dest" id="subWaveSeg" title="Sub-oscillator shape">
<button data-w="0" class="on">Sqr</button
><button data-w="1">Sin</button>
</div>
</div>
</div>
<p class="pod-note">
super-saw unison · drive · clean/fat filter · sub octave + shape · glide
</p>
</aside>
<!-- ---- ENVELOPE editor: interactive ADSR graph (shown in Synth mode) ---- -->
<aside class="pod pod-env sketch" id="envPod">
<div class="pod-tab">ENV ▸ ADSR</div>
<div class="silk-group">
<span class="silk-label">AMP ENV</span>
<div
class="env-graph"
id="envGraph"
title="drag the handles to shape the amp envelope"
></div>
</div>
<div class="silk-group">
<span class="silk-label">FILTER ENV</span>
<canvas
class="filt-viz"
id="synthFiltViz"
width="216"
height="56"
title="filter response — base + filter-env 'pluck' peak"
></canvas>
<div class="env-filter" id="envFilter">
<!-- filter-env knobs injected by app.js -->
</div>
</div>
<p class="pod-note">
drag: ◦ attack · ◦ decay + sustain · ◦ release · filter-env amount + time
</p>
</aside>
<!-- ---- OSC: oscillator source (analog or wavetable) (shown in Synth mode) ---- -->
<aside class="pod pod-wave sketch" id="wavePod">
<div class="pod-tab">OSC</div>
<div class="silk-group">
<span class="silk-label">ENGINE</span>
<div class="seq-row">
<span class="seq-cap">TYPE</span>
<div class="seq-seg" id="waveEngineSeg">
<button data-e="0" class="on">Analog</button
><button data-e="1">Wavetable</button>
</div>
</div>
<div class="seq-row" id="oscWaveRow">
<span class="seq-cap">WAVE</span>
<div class="synth-wave" id="synthWaveSeg">
<button data-w="0" title="Sine">
<svg viewBox="0 0 26 16">
<path d="M2 8 q3 -6 6 0 q3 6 6 0 q3 -6 6 0" />
</svg>
</button>
<button data-w="1" title="Triangle">
<svg viewBox="0 0 26 16"><path d="M2 13 L9 3 L16 13 L23 3" /></svg>
</button>
<button data-w="2" class="on" title="Saw">
<svg viewBox="0 0 26 16">
<path d="M3 13 L12 3 L12 13 L21 3 L21 13" />
</svg>
</button>
<button data-w="3" title="Square">
<svg viewBox="0 0 26 16">
<path d="M2 12 L2 4 L10 4 L10 12 L18 12 L18 4 L24 4" />
</svg>
</button>
</div>
</div>
</div>
<div class="silk-group" id="wtControls">
<span class="silk-label">WAVETABLE</span>
<div class="seq-row">
<span class="seq-cap">TABLE</span>
<div class="seq-seg" id="waveBankSeg">
<button data-b="0" class="on">Saw</button><button data-b="1">Sqr</button
><button data-b="2">Org</button><button data-b="3">Voc</button
><button data-b="4">Dig</button>
</div>
</div>
<div class="wave-knobs" id="waveKnobs">
<!-- scan / FM / fold knobs injected by app.js -->
</div>
<div class="seq-row">
<span class="seq-cap">RATIO</span>
<div class="seq-seg" id="waveRatioSeg">
<button data-r="0">½</button><button data-r="1" class="on">1</button
><button data-r="2">2</button><button data-r="3">3</button>
</div>
</div>
</div>
<p class="pod-note" id="waveNote">
wavetable scan (sine→bright) · FM (carrier × ratio) · wavefold · sub kept for
body
</p>
</aside>
<!-- ---- MODULATION: LFO1 + LFO2 + 3-slot matrix (shown in Synth mode) ---- -->
<aside class="pod pod-matrix sketch" id="matrixPod">
<div class="pod-tab">MODULATION</div>
<div class="silk-group">
<span class="silk-label">LFO 1</span>
<div class="synth-wave" id="lfoShapeSeg" title="LFO1 shape">
<button data-w="0" class="on" title="Sine">
<svg viewBox="0 0 26 16">
<path d="M2 8 q3 -6 6 0 q3 6 6 0 q3 -6 6 0" />
</svg>
</button>
<button data-w="1" title="Triangle">
<svg viewBox="0 0 26 16"><path d="M2 13 L9 3 L16 13 L23 3" /></svg>
</button>
<button data-w="2" title="Saw">
<svg viewBox="0 0 26 16">
<path d="M3 13 L12 3 L12 13 L21 3 L21 13" />
</svg>
</button>
<button data-w="3" title="Square">
<svg viewBox="0 0 26 16">
<path d="M2 12 L2 4 L10 4 L10 12 L18 12 L18 4 L24 4" />
</svg>
</button>
</div>
<div class="mod-knobs" id="modKnobs">
<!-- LFO1 rate + depth injected by app.js -->
</div>
<div class="seq-row">
<span class="seq-cap">SYNC</span>
<div
class="seq-seg"
id="lfo1SyncSeg"
title="LFO1 rate: free (Hz) or locked to the clock"
>
<button data-s="0" class="on">Hz</button><button data-s="1">1/1</button
><button data-s="2">1/2</button><button data-s="3">1/4</button
><button data-s="4">1/8</button><button data-s="5">16</button>
</div>
</div>
</div>
<div class="silk-group">
<span class="silk-label">LFO 2</span>
<div class="synth-wave" id="lfo2ShapeSeg" title="LFO2 shape">
<button data-w="0" class="on" title="Sine">
<svg viewBox="0 0 26 16">
<path d="M2 8 q3 -6 6 0 q3 6 6 0 q3 -6 6 0" />
</svg>
</button>
<button data-w="1" title="Triangle">
<svg viewBox="0 0 26 16"><path d="M2 13 L9 3 L16 13 L23 3" /></svg>
</button>
<button data-w="2" title="Saw">
<svg viewBox="0 0 26 16">
<path d="M3 13 L12 3 L12 13 L21 3 L21 13" />
</svg>
</button>
<button data-w="3" title="Square">
<svg viewBox="0 0 26 16">
<path d="M2 12 L2 4 L10 4 L10 12 L18 12 L18 4 L24 4" />
</svg>
</button>
</div>
<div class="mod-knobs" id="lfo2Knobs">
<!-- LFO2 rate knob injected by app.js -->
</div>
<div class="seq-row">
<span class="seq-cap">SYNC</span>
<div
class="seq-seg"
id="lfo2SyncSeg"
title="LFO2 rate: free (Hz) or locked to the clock"
>
<button data-s="0" class="on">Hz</button><button data-s="1">1/1</button
><button data-s="2">1/2</button><button data-s="3">1/4</button
><button data-s="4">1/8</button><button data-s="5">16</button>
</div>
</div>
</div>
<div class="silk-group">
<span class="silk-label">PATCHBAY</span>
<div class="patchbay" id="patchbay">
<!-- SVG pins + cables injected by app.js -->
</div>
<div class="patch-inspect" id="patchInspect" hidden>
<span id="patchLabel">—</span>
<div
id="patchAmtKnob"
class="patch-knob"
title="amount (bipolar) — drag, wheel, double-click to centre"
></div>
<button id="patchRemove" title="remove this cable">✕</button>
</div>
</div>
<div class="silk-group">
<span class="silk-label">CHAOS</span>
<div class="chaos-row">
<canvas
class="chaos-viz"
id="chaosViz"
width="132"
height="84"
title="live Lorenz attractor streamed from the device (matrix source: Chaos)"
></canvas>
<div class="mod-knobs" id="chaosKnobs">
<!-- chaos speed knob injected by app.js -->
</div>
</div>
</div>
<p class="pod-note">
drag a cable from a source pin to a destination · click a cable to set amount /
remove · up to 6
</p>
</aside>
<!-- ---- MOD / LFO (shown in Synth mode) ---- -->
<!-- ---- MIDI thru breakout (shown when thru is on AND both devices connected) ---- -->
<aside class="pod pod-midi sketch" id="midiPod" hidden>
<div class="pod-tab">MIDI ▸ THRU</div>
<div class="silk-group">
<span class="silk-label">MONITOR</span>
<div class="midi-act-row">
<span class="midi-act" id="midiAct"></span>
<span class="midi-act-label">activity · last in:</span>
</div>
<div class="midi-last" id="midiLast">—</div>
</div>
<div class="silk-group">
<span class="silk-label">FORWARD</span>
<div class="midi-filters">
<label class="switch-field"
><span>notes</span
><span class="pill"
><input type="checkbox" id="fNotes" checked /><span
class="pill-track"
><span class="pill-knob"></span></span></span
></label>
<label class="switch-field"
><span>CC</span
><span class="pill"
><input type="checkbox" id="fCC" checked /><span class="pill-track"
><span class="pill-knob"></span></span></span
></label>
<label class="switch-field"
><span>other</span
><span class="pill"
><input type="checkbox" id="fOther" checked /><span
class="pill-track"
><span class="pill-knob"></span></span></span
></label>
<label class="switch-field"
><span>clock</span
><span class="pill"
><input type="checkbox" id="fClock" /><span class="pill-track"
><span class="pill-knob"></span></span></span
></label>
<label
class="switch-field"
title="set the tempo from the input device's MIDI clock"
><span>sync bpm</span
><span class="pill"
><input type="checkbox" id="fSync" checked /><span
class="pill-track"
><span class="pill-knob"></span></span></span
></label>
</div>
</div>
</aside>
<!-- ---- bottom pod: BPM + live beat ---- -->
<aside class="pod pod-bpm sketch" id="bpmPod" data-anchor="led">
<div class="pod-tab">TEMPO</div>
<div class="silk-group">
<span class="silk-label">TRANSPORT</span>
<button class="bpm-play" id="bpmPlay" title="play / pause the beat">
⏸ playing
</button>
<div class="bpm-main">
<div class="bpm-dial" id="bpmDial">
<span class="bpm-num" id="bpmNum">96</span>
<span class="bpm-unit">BPM</span>
</div>
<div class="beat-stack">
<div class="beat-seed" id="beatSeed" title="the beat">
<svg viewBox="0 0 48 48">
<path
class="seed-leaf"
d="M24 44 C8 36 8 14 24 6 C40 14 40 36 24 44 Z"
/>
<line class="seed-vein" x1="24" y1="10" x2="24" y2="40" />
</svg>
</div>
<div class="beat-dots" id="beatDots"><i></i><i></i><i></i><i></i></div>
</div>
</div>
</div>
<div class="silk-group">
<span class="silk-label">CLOCK</span>
<div class="lfo-dest" id="clockMasterSeg" title="who is tempo master for Spore">
<button data-c="off" class="on">Off</button><button data-c="gui">GUI</button
><button data-c="in">MIDI</button>
</div>
</div>
<p class="pod-note">
drag the number · scroll to fine-tune · CLOCK sends tempo to Spore (delay sync)
</p>
</aside>
<!-- ---- bottom-right pod: step SEQUENCER (web-side piano-roll) ---- -->
<aside class="pod pod-seq sketch" id="seqPod">
<div class="pod-tab">SEQ ▸ ROLL</div>
<div class="silk-group">
<span class="silk-label">ROLL</span>
<div class="seq-head">
<button class="seq-run" id="seqRun" title="run / stop the sequencer">
▶ run
</button>
<div class="seq-bartabs" id="seqBarTabs" title="bar to edit" hidden></div>
<div class="seq-mini">
<button id="seqClear" title="clear all notes">clr</button>
<button id="seqSeed" title="randomize">⚄</button>
</div>
</div>
<div class="seq-grid" id="seqGrid" title="click or drag to place notes"></div>
</div>
<div class="silk-group">
<span class="silk-label">PATTERN</span>
<div class="seq-row">
<span class="seq-cap">SCALE</span>
<div class="seq-seg" id="seqScaleSeg">
<button data-s="0" class="on">Maj</button><button data-s="1">Min</button
><button data-s="2">Dor</button><button data-s="3">Pent</button
><button data-s="4">Chr</button>
</div>
</div>
<div class="seq-row">
<span class="seq-cap">KEY</span>
<select class="seq-sel" id="seqRoot" title="root note">
<option value="0">C</option>
<option value="1">C#</option>
<option value="2">D</option>
<option value="3">D#</option>
<option value="4">E</option>
<option value="5">F</option>
<option value="6">F#</option>
<option value="7">G</option>
<option value="8">G#</option>
<option value="9">A</option>
<option value="10">A#</option>
<option value="11">B</option>