-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontroller.html
More file actions
4321 lines (3918 loc) · 204 KB
/
Copy pathcontroller.html
File metadata and controls
4321 lines (3918 loc) · 204 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>
<html>
<head>
<meta charset="utf-8">
<title>Controller (for Audiosphere)</title>
<style>
:root {
--bg0: #060813;
--bg1: #0d1230;
--panel: rgba(10, 18, 44, 0.74);
--panel-border: rgba(86, 214, 255, 0.35);
--text: #cfe9ff;
--accent: #58f6ff;
--accent-2: #c17dff;
}
* {
box-sizing: border-box;
}
/* Keep the canvas backdrop on html so the body background stays inside
the body's paint layer — otherwise the theme filters (below) can't
recolor it and the page edges stay blue. */
html {
background: #04060c;
}
body {
margin: 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
color: var(--text);
font-family: "JetBrains Mono", "SF Mono", "Menlo", "Consolas", monospace;
background:
radial-gradient(circle at 20% 20%, rgba(88, 246, 255, 0.18), transparent 38%),
radial-gradient(circle at 80% 0%, rgba(193, 125, 255, 0.2), transparent 45%),
linear-gradient(170deg, var(--bg0), var(--bg1));
}
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
opacity: 0.22;
background-image:
linear-gradient(rgba(90, 180, 255, 0.18) 1px, transparent 1px),
linear-gradient(90deg, rgba(90, 180, 255, 0.18) 1px, transparent 1px);
background-size: 34px 34px;
mix-blend-mode: screen;
}
input, textarea {
padding: 6px 8px;
margin: 3px;
border-radius: 6px;
border: 1px solid rgba(118, 230, 255, 0.45);
background: rgba(7, 14, 35, 0.88);
color: var(--text);
box-shadow: inset 0 0 0 1px rgba(12, 32, 72, 0.6);
}
input[type="button"] {
border-color: rgba(88, 246, 255, 0.6);
color: #ecfdff;
background: linear-gradient(180deg, rgba(47, 115, 159, 0.65), rgba(20, 43, 78, 0.8));
text-transform: uppercase;
letter-spacing: 0.04em;
font-size: 11px;
cursor: pointer;
box-shadow:
0 0 14px rgba(88, 246, 255, 0.2),
inset 0 0 12px rgba(88, 246, 255, 0.18);
}
input[type="button"]:hover {
border-color: var(--accent);
box-shadow:
0 0 20px rgba(88, 246, 255, 0.35),
inset 0 0 14px rgba(193, 125, 255, 0.22);
}
input:focus, textarea:focus {
outline: none;
border-color: var(--accent-2);
box-shadow:
0 0 0 2px rgba(193, 125, 255, 0.25),
inset 0 0 0 1px rgba(193, 125, 255, 0.4);
}
.input-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 14px;
width: min(96vw, 1600px);
max-height: 92vh;
overflow-y: auto;
padding: 18px;
border-radius: 14px;
border: 1px solid var(--panel-border);
background: var(--panel);
backdrop-filter: blur(8px);
box-shadow:
0 14px 38px rgba(2, 5, 16, 0.65),
inset 0 0 28px rgba(88, 246, 255, 0.08);
}
.input-group {
padding: 8px;
border-radius: 10px;
border: 1px solid rgba(88, 246, 255, 0.22);
background: rgba(7, 16, 40, 0.58);
}
/* The switches reached for mid-set lead the grid: which look is on the
polygons, the fibonacci mosaic, videos-only, and the preset that swaps
the whole show. Everything else keeps the default order of 0. */
#visualUrlGroup,
#presetsGroup,
#clipJumpGroup,
#mosaicGroup,
#fxModeGroup,
#basicVideoGroup {
order: -1;
}
.clip-jump {
margin-top: 8px;
max-height: 220px;
overflow-y: auto;
padding: 8px;
border-radius: 8px;
border: 1px solid rgba(118, 230, 255, 0.28);
background: rgba(4, 10, 28, 0.65);
font-size: 11px;
line-height: 1.35;
}
.clip-jump.empty {
color: rgba(207, 233, 255, 0.55);
font-style: italic;
}
.clip-jump button.clip-row {
display: block;
width: 100%;
text-align: left;
margin: 0 0 3px;
padding: 4px 6px;
cursor: pointer;
border-radius: 6px;
border: 1px solid rgba(118, 230, 255, 0.22);
background: rgba(7, 16, 40, 0.72);
color: inherit;
font: inherit;
}
.clip-jump button.clip-row:hover {
border-color: rgba(88, 246, 255, 0.7);
background: rgba(14, 32, 70, 0.85);
}
.clip-jump button.clip-row.is-current {
border-color: rgba(88, 246, 255, 0.9);
background: rgba(20, 54, 96, 0.9);
}
.clip-jump button.clip-row.is-skipped {
opacity: 0.45;
}
.clip-jump span.clip-meta {
color: rgba(207, 233, 255, 0.55);
margin-left: 6px;
}
/* The band meters and the MIDI readouts are appended to the grid at runtime,
so markup order alone can't keep these panels at the bottom. */
#otherOutputsDivider,
#projRigPanel,
#hypermoonPanel,
#poemPanel {
order: 2;
}
.flash {
animation: flash .15s;
}
@keyframes flash {
50% {
background: rgba(88, 246, 255, 0.85);
}
100% {
background: transparent;
}
}
.folder-loop-groups {
margin-top: 8px;
max-height: 220px;
overflow-y: auto;
padding: 8px;
border-radius: 8px;
border: 1px solid rgba(118, 230, 255, 0.28);
background: rgba(4, 10, 28, 0.65);
font-size: 11px;
line-height: 1.35;
}
.folder-loop-groups.empty {
color: rgba(207, 233, 255, 0.55);
font-style: italic;
}
.folder-loop-groups label.loop-row {
display: grid;
grid-template-columns: 22px minmax(0, 1fr) auto auto;
align-items: baseline;
gap: 8px;
padding: 4px 0;
border-bottom: 1px solid rgba(88, 246, 255, 0.12);
}
.folder-loop-groups span.loop-name {
color: var(--accent);
font-weight: 600;
word-break: break-all;
}
.folder-loop-groups span.loop-meta {
color: rgba(207, 233, 255, 0.55);
font-size: 10px;
}
.color-board {
margin-top: 8px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
gap: 8px;
padding: 8px;
border-radius: 8px;
border: 1px solid rgba(118, 230, 255, 0.28);
background: rgba(4, 10, 28, 0.65);
}
.color-board.empty {
color: rgba(207, 233, 255, 0.55);
font-style: italic;
display: block;
font-size: 11px;
line-height: 1.35;
}
.color-board label.color-chip {
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
padding: 6px 4px;
border-radius: 8px;
border: 1px solid rgba(88, 246, 255, 0.18);
background: rgba(7, 16, 40, 0.55);
cursor: pointer;
font-size: 10px;
text-transform: capitalize;
}
.color-board label.color-chip.is-current {
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}
.color-board label.color-chip.is-disabled {
opacity: 0.38;
filter: grayscale(0.85);
}
.color-board span.swatch {
width: 34px;
height: 34px;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.35);
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.color-board span.chip-meta {
color: rgba(207, 233, 255, 0.55);
font-size: 9px;
line-height: 1.2;
text-align: center;
}
/* ── Controller color themes ─────────────────────────────────────────
The palette is graded as a whole (sepia collapses everything to one
channel, hue-rotate re-tints it), so every panel, slider and inline
style follows the theme without per-rule overrides. "crt green" and
"green mono" match the phosphor of the Ikegami terminals. */
body.theme-crt { filter: sepia(1) saturate(2.4) hue-rotate(62deg) brightness(1.06); }
body.theme-mono { filter: sepia(1) saturate(1.1) hue-rotate(62deg) brightness(1.02) contrast(1.05); }
body.theme-amber { filter: sepia(1) saturate(2.8) hue-rotate(-14deg) brightness(1.05); }
body.theme-red { filter: sepia(1) saturate(3.2) hue-rotate(-46deg); }
/* phosphor scanlines on the CRT-flavored themes */
body.theme-crt::after, body.theme-mono::after {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
z-index: 9999;
background: repeating-linear-gradient(
0deg,
rgba(0, 0, 0, 0.16) 0px, rgba(0, 0, 0, 0.16) 1px,
transparent 1px, transparent 3px
);
}
</style>
<script src="js/threejs.org_build_three.js"></script>
<!-- <script src="js/cdn.jsdelivr.net_npm_@tonejs_midi.js"></script>
<script src="js/js/cdn.jsdelivr.net_npm_tone.js"></script> -->
<!-- <script src="https://unpkg.com/delaunator@3.0.2/delaunator.js"></script>
<script src="https://josephg.github.io/noisejs/perlin.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.7.3/dat.gui.min.js"></script> -->
</head>
<body>
<div id="thresholds" class="input-grid">
<div class="input-group" id="visualUrlGroup">
<div id="visualLinkStatus" style="font-size:11px;margin-bottom:6px;line-height:1.4;">checking for a visual…</div>
Visualizer URL:
<input type="text" id="visualUrl" size="80" value="sonicsphere.html?mode=classic&fxtimeline=0&mic=1"/>
<input type="button" id="openVisualButton" value="open/reopen visual"/>
</div>
<div class="input-group" id="presetsGroup">
Presets:
<input type="button" id="presetCells12AutoplayButton" value="cells1+cells2 autoplay (with logo)"/>
<input type="button" id="presetCells12NoLogoButton" value="cells1+cells2 autoplay (no logo)"/>
<input type="button" id="presetClassicSoundButton" value="classic + sound" title="the original look — coloured polygon slices on the lane spheres, reacting to the mic, pinned in classic"/>
<input type="button" id="presetClassicVideoSlicesButton" value="classic + sound + video slices" title="the sphere geometry, but each polygon slice takes a video frame as its texture instead of a flat colour — loading a set is what turns the slices into video"/>
<input type="button" id="presetVideoWallButton" value="all-loops video wall" title="full-screen video backdrop with every loop in the default set — heavy, expect it to drop frames on a laptop"/>
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:6px 0 0;line-height:1.4;">
Presets reload the visual, reusing the same window. To change the look without a
reload, use the live switches: FX Mode, Basic Video, Triangle (mosaic), and below.
</div>
<input type="button" id="liveVideoSlicesButton" value="video on slices (live)" title="loads the default loop set into the visual you are already running, so the polygon slices take a video frame as their texture — no reload and no new window"/>
</div>
<div class="input-group">
Controller style:
<select id="controllerThemeSelect" title="recolors this control panel only — outputs are untouched">
<option value="">hypermuse blue (default)</option>
<option value="crt">crt green — phosphor + scanlines</option>
<option value="mono">green mono — flat terminal</option>
<option value="amber">amber terminal</option>
<option value="red">red alert</option>
</select>
</div>
<div class="input-group">
SynBioBeta Logo:
<input type="button" id="logoShowButton" value="show logo"/>
<input type="button" id="logoHideButton" value="hide logo"/>
position:
<select id="logoPositionSelect">
<option value="top">top</option>
<option value="center">center</option>
<option value="bottom">bottom</option>
</select>
opacity <input type="text" id="logoOpacityInput" value="0.92" size="4"/>
</div>
<div class="input-group" id="sphereMotionGroup">
Sphere motion:
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:4px 0 8px;line-height:1.4;">
The spin is applied to the whole scene and the lane spheres sit off-centre, so
it swings them out of frame instead of turning them in place. Off by default;
turning it off also snaps them back to square.
</div>
<input type="button" id="rotateOffButton" value="rotation off"/>
<input type="button" id="rotateOnButton" value="rotation on"/>
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:10px 0 8px;line-height:1.4;">
Sphere outlines are the faint wireframe shells around each lane. Their
brightness is re-set every frame per mode, so use these rather than expecting
one nudge to hold.
</div>
<input type="button" id="shellsOffButton" value="outlines off"/>
<input type="button" id="shellsFaintButton" value="outlines faint"/>
<input type="button" id="shellsOnButton" value="outlines on"/>
</div>
<div class="input-group" id="clipJumpGroup">
Clips (click to play):
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:4px 0 8px;line-height:1.4;">
Every clip in the loaded set. Click one to cut to it now, which overrides the
folder and colour filters. Dimmed rows are ones auto-advance would skip.
</div>
<input type="text" id="clipJumpFilter" placeholder="filter by name…" style="width:100%;box-sizing:border-box;"/>
<div id="clipJumpHost" class="clip-jump empty"></div>
</div>
<div class="input-group" id="mosaicGroup">
Fibonacci mosaic (triangle vids):
<input type="button" id="triangleOnButton" value="fibonacci on"/>
<input type="button" id="triangleFxButton" value="fibonacci + fx"/>
<input type="button" id="triangleOffButton" value="fibonacci off"/>
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:6px 0 4px;line-height:1.4;">
Per-tile content. <code>auto</code> keeps the alternating default; pick an effect or
the moon to pin a tile. Tiles are rebuilt on apply, so they all restart.
The orbit gifs field feeds every tile set to <code>hypermoon + orbit gifs</code>.
</div>
<div id="mosaicTileHost" style="display:flex;flex-wrap:wrap;gap:4px;"></div>
<label style="font-size:11px;display:block;margin:6px 0 0;">
Orbit gifs
<input type="text" id="mosaicMoonOrbit" list="gifThemeList" value="wizard,wand,pyramid"
style="width:100%;box-sizing:border-box;"
title="which gifs circle the moon on any tile set to hypermoon + orbit gifs. Comma for one mixed orbit, | to make separate acts that hand over to each other."/>
</label>
<datalist id="gifThemeList"></datalist>
<input type="button" id="mosaicTilesApplyButton" value="apply tiles"/>
<input type="button" id="mosaicTilesResetButton" value="all auto"/>
</div>
<div class="input-group">
Folder loops (playlist):
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:4px 0 8px;line-height:1.4;">
One row per immediate subfolder of <code>loops/</code> when the manifest has <code>"folderLoopRoot":"loops"</code>
or per-clip <code>loopGroup</code>. Tick to include that folder's clips in auto-advance; untick to skip.
</div>
<div id="folderLoopGroupsHost" class="folder-loop-groups empty"></div>
<div style="display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;">
<input type="button" id="loopGroupsRefreshButton" value="refresh folder list"/>
<input type="button" id="loopGroupsEnableAllButton" value="enable all folders"/>
<input type="button" id="loopGroupsDisableAllButton" value="disable all folders"/>
</div>
</div>
<div class="input-group">
Color board (playlist filter):
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:4px 0 8px;line-height:1.4;">
Toggle hue families from <code>artifacts/color-dataset.json</code>. Only clips tagged with an enabled color play.
Run <code>node scripts/build-color-dataset.mjs</code> to refresh tags.
</div>
<div id="colorBoardHost" class="color-board empty"></div>
<div style="display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;">
<input type="button" id="colorBoardRefreshButton" value="refresh color board"/>
<input type="button" id="colorBoardEnableAllButton" value="enable all colors"/>
<input type="button" id="colorBoardDisableAllButton" value="disable all colors"/>
</div>
</div>
<div class="input-group">
Color cube board (tiled rows):
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:4px 0 8px;line-height:1.4;">
One horizontal band per color family (black, silver, gray, …). Cubes come from
<code>npm run build:color:cubes</code> plus live capture from the playing loop.
</div>
<input type="button" id="colorCubeBoardOnButton" value="cube board on"/>
<input type="button" id="colorCubeBoardOffButton" value="cube board off"/>
<input type="button" id="colorCubeBoardStatsButton" value="refresh cube stats"/>
<div id="colorCubeStatsHost" class="muted" style="font-size:11px;margin-top:8px;line-height:1.5;"></div>
</div>
<div class="input-group">
Bridge:
<input type="button" id="bridgeFadeOutButton" value="fade to black"/>
<input type="button" id="bridgeFadeInButton" value="fade in"/>
</div>
<div class="input-group" id="audioDeckPanel" style="grid-column: 1 / -1;">
<b>Audio deck</b>
<span style="color:rgba(207,233,255,0.5);font-size:10px;">looped bed + interjections on a period — plays from this window; feed the PA from here</span>
<span id="adCount" style="color:rgba(207,233,255,0.5);font-size:10px;"></span>
<datalist id="adAudioList"></datalist>
<div style="margin-top:4px;">
bed loop <input type="text" id="adBedInput" list="adAudioList" size="44" placeholder="type to search all audio…"/>
vol <input type="range" id="adBedVol" min="0" max="1" step="0.02" value="0.8" style="width:90px;vertical-align:middle;"/>
<input type="button" id="adBedButton" value="play bed"/>
<span id="adBedStatus" style="color:rgba(207,233,255,0.62);font-size:10px;">stopped</span>
</div>
<table style="border-collapse:collapse;font-size:11px;margin-top:4px;">
<tr style="color:rgba(207,233,255,0.45);">
<td style="padding:2px 6px;">interjection</td><td>file</td><td>every (s)</td>
<td>± jitter (s)</td><td>vol</td><td>duck bed</td><td>on</td><td>next in</td>
</tr>
<tr>
<td style="padding:2px 6px;color:rgba(207,233,255,0.62);">A</td>
<td><input type="text" class="ad-slot-file" data-slot="0" list="adAudioList" size="40"/></td>
<td><input type="text" class="ad-slot-period" data-slot="0" value="60" size="4"/></td>
<td><input type="text" class="ad-slot-jitter" data-slot="0" value="0" size="4"/></td>
<td><input type="range" class="ad-slot-vol" data-slot="0" min="0" max="1" step="0.02" value="1" style="width:70px;"/></td>
<td style="text-align:center;"><input type="checkbox" class="ad-slot-duck" data-slot="0" checked/></td>
<td style="text-align:center;"><input type="checkbox" class="ad-slot-on" data-slot="0"/></td>
<td style="padding:2px 6px;"><span class="ad-slot-next" data-slot="0" style="color:rgba(207,233,255,0.62);">–</span></td>
</tr>
<tr>
<td style="padding:2px 6px;color:rgba(207,233,255,0.62);">B</td>
<td><input type="text" class="ad-slot-file" data-slot="1" list="adAudioList" size="40"/></td>
<td><input type="text" class="ad-slot-period" data-slot="1" value="120" size="4"/></td>
<td><input type="text" class="ad-slot-jitter" data-slot="1" value="20" size="4"/></td>
<td><input type="range" class="ad-slot-vol" data-slot="1" min="0" max="1" step="0.02" value="1" style="width:70px;"/></td>
<td style="text-align:center;"><input type="checkbox" class="ad-slot-duck" data-slot="1" checked/></td>
<td style="text-align:center;"><input type="checkbox" class="ad-slot-on" data-slot="1"/></td>
<td style="padding:2px 6px;"><span class="ad-slot-next" data-slot="1" style="color:rgba(207,233,255,0.62);">–</span></td>
</tr>
<tr>
<td style="padding:2px 6px;color:rgba(207,233,255,0.62);">C</td>
<td><input type="text" class="ad-slot-file" data-slot="2" list="adAudioList" size="40"/></td>
<td><input type="text" class="ad-slot-period" data-slot="2" value="300" size="4"/></td>
<td><input type="text" class="ad-slot-jitter" data-slot="2" value="60" size="4"/></td>
<td><input type="range" class="ad-slot-vol" data-slot="2" min="0" max="1" step="0.02" value="1" style="width:70px;"/></td>
<td style="text-align:center;"><input type="checkbox" class="ad-slot-duck" data-slot="2" checked/></td>
<td style="text-align:center;"><input type="checkbox" class="ad-slot-on" data-slot="2"/></td>
<td style="padding:2px 6px;"><span class="ad-slot-next" data-slot="2" style="color:rgba(207,233,255,0.62);">–</span></td>
</tr>
</table>
<div style="margin-top:2px;font-size:10px;color:rgba(207,233,255,0.45);">
"every" counts from the moment an interjection starts; "fire now" = <input type="button" id="adFireA" value="A"/> <input type="button" id="adFireB" value="B"/> <input type="button" id="adFireC" value="C"/>
· duck lowers the bed to 25% while the interjection plays
</div>
<div style="margin-top:6px;border-top:1px solid rgba(207,233,255,0.15);padding-top:5px;">
<b style="font-size:11px;">music → moon</b>
<label style="font-size:11px;"><input type="checkbox" id="adReactOn" checked/> drive hypermoon</label>
source <select id="adAudioSource" title="what the beat analyser listens to">
<option value="deck">audio deck (this window)</option>
<option value="http://192.168.1.83:1984/api/webrtc?src=sentinel">camera: sentinel (go2rtc)</option>
<option value="http://192.168.1.83:1984/api/webrtc?src=sparkle">camera: sparkle (go2rtc)</option>
<option value="custom">custom go2rtc URL…</option>
</select>
<input type="text" id="adCamUrl" size="36" style="display:none;" placeholder="http://host:1984/api/webrtc?src=name"/>
<label style="font-size:11px;" title="also hear the camera audio in this window"><input type="checkbox" id="adCamListen"/> listen</label>
<span id="adCamStatus" style="font-size:10px;color:rgba(207,233,255,0.62);"></span>
intensity <input type="range" id="adReactAmt" min="0" max="2" step="0.05" value="1" style="width:110px;vertical-align:middle;"/>
<span id="adReactVal" style="font-size:10px;color:rgba(207,233,255,0.62);">1.00×</span>
<label style="font-size:11px;" title="the moon output listens to its own microphone — for external / live music not played from this deck"><input type="checkbox" id="adMicOn"/> moon uses its mic</label>
<span id="adReactMeter" style="font-family:monospace;font-size:11px;color:rgba(140,220,255,0.85);letter-spacing:1px;"></span>
</div>
<div style="font-size:10px;color:rgba(207,233,255,0.45);">
bass beats flare the vajras, earthshine breathes with the bass, the window glow shimmers with the highs, letters shake faster when it's loud
</div>
</div>
<div class="input-group" id="fxModeGroup">
FX Mode:
<input type="button" id="modeClassicButton" value="classic"/>
<input type="button" id="modeLifeButton" value="life"/>
<input type="button" id="modeHierLifeButton" value="hier life"/>
<input type="button" id="modeHexLifeButton" value="hex life"/>
<input type="button" id="modeKuramotoButton" value="kuramoto"/>
<input type="button" id="modeGrayScottButton" value="gray-scott"/>
<input type="button" id="modePhysarumButton" value="physarum"/>
<input type="button" id="modeMoleculeButton" value="molecule"/>
<input type="button" id="modeNextButton" value="next mode"/>
</div>
<div class="input-group">
Hex CA:
speed <input type="text" id="hexSpeedInput" value="1.0" size="4"/>
sync audio <input type="checkbox" id="hexSyncInput" checked/>
sweep rows <input type="text" id="hexSweepRowsInput" value="2" size="3"/>
rule
<select id="hexRuleSelect">
<option value="hexlife">hexlife (B2/S34)</option>
<option value="bloom">bloom (B2/S3)</option>
<option value="maze">maze (B3/S12345)</option>
<option value="pulse">pulse (B13/S24)</option>
<option value="coral">coral (B2/S2)</option>
</select>
<input type="button" id="hexRuleCycleButton" value="cycle rule"/>
aperiodic <input type="text" id="hexAperiodicInput" value="0.0" size="4"/>
palette
<select id="hexPaletteSelect">
<option value="aurora">aurora</option>
<option value="magma">magma</option>
<option value="violet">violet</option>
<option value="mono">mono</option>
<option value="neon">neon</option>
</select>
<input type="button" id="applyHexCaButton" value="apply hex"/>
</div>
<div class="input-group" id="basicVideoGroup">
Basic Video Mode:
<input type="button" id="basicVideoOnButton" value="basic on"/>
<input type="button" id="basicVideoOffButton" value="basic off"/>
<input type="button" id="basicVideoToggleButton" value="toggle basic"/>
</div>
<div class="input-group">
Loop Rating:
<input type="button" id="likeLoopButton" value="like loop"/>
<input type="button" id="dislikeLoopButton" value="dislike & skip"/>
</div>
<div class="input-group">
Recent Loop Rating:
loops back <input type="text" id="recentOffsetBack" value="1" size="3"/>
<input type="button" id="likeRecentLoopButton" value="like recent"/>
<input type="button" id="dislikeRecentLoopButton" value="dislike recent"/>
</div>
<div class="input-group">
Clip Drift (per-loop variation):
<input type="button" id="clipDriftOnButton" value="drift on"/>
<input type="button" id="clipDriftOffButton" value="drift off"/>
offset sec/visit <input type="text" id="clipDriftOffsetSec" value="1"/>
hold +ms/visit <input type="text" id="clipDriftHoldMs" value="350"/>
</div>
<!-- music add: <input type="file" id="audioInput" multiple accept="audio/*, .midi, .mid">
<input type="text" id="audiopop" value="pop"/>
video: <input type="file" id="videoInput" accept="video/*" multiple>
<input type="text" id="videopop" value="pop"/> -->
<!-- <audio id="audioElement" controls></audio> -->
<div class="input-group">
Hue is a degree on the color wheel from 0 to 360. 0 is red, 120 is green, and 240 is blue.
Hueoffset1: <input type="text" id="hueoffset" value="20"/>
Hueoffset2: <input type="text" id="hueoffset" value="20"/>
Hueoffset3: <input type="text" id="hueoffset" value="20"/>
Hueoffset4: <input type="text" id="hueoffset" value="20"/>
Hueoffset5: <input type="text" id="hueoffset" value="20"/>
</div>
<div class="input-group">
Loaded videos: <input type="textarea" id="loadedvideos" value=""/>
</div>
<div class="input-group">
Video change: <input type="button" id="videochange" value="change"/>
</div>
<div class="input-group">
Video loop change: <input type="button" id="videochangeloop" value="change"/>
</div>
<div class="input-group">
Mode (classic/life/hierarchical-life/hex-life/kuramoto/gray-scott/physarum/morphospace): <input type="text" id="mode" value="classic"/>
</div>
<div class="input-group">
Xrotationspeed: <input type="text" id="xrotation" value="0.0001"/>
</div>
<div class="input-group">
Yrotationspeed: <input type="text" id="yrotation" value="0.0005"/>
</div>
<div class="input-group">
Saturation: <input type="text" id="saturation" value="100"/>
</div>
<div class="input-group">
Brightness: <input type="text" id="brightness" value="50"/>
</div>
<div class="input-group">
Volume magnifier: <input type="text" id="volumemagnification" value="1.2"/>
</div>
<div class="input-group">
Active Geometries limit: <input type="text" id="activegeometrieslimit" value="25"/>
</div>
<div class="input-group">
Playback speed (1 is normal) <input type="text" id="playbackrate" value="1"/>
</div>
<div class="input-group">
render density (1 is normal) <input type="text" id="renderdensity" value="1"/>
</div>
<div class="input-group">
Pointlight position x <input type="text" id="pointlightx" value="5"/>
</div>
<div class="input-group">
y <input type="text" id="pointlighty" value="5"/>
</div>
<div class="input-group">
z <input type="text" id="pointlightz" value="5"/>
</div>
<div class="input-group">
intensity <input type="text" id="pointlightintensity" value="5"/>
</div>
<div class="input-group">
Camera position x <input type="text" id="cxposition" value="1"/>
</div>
<div class="input-group">
y <input type="text" id="cyposition" value="0"/>
</div>
<div class="input-group">
z <input type="text" id="czposition" value="0"/>
</div>
<div class="input-group">
history: <textarea id="changelog" rows="8" cols="30">
</textarea>
</div>
<div class="input-group">
active videos: <textarea id="videoList" rows="8" cols="30">
</textarea>
</div>
<!-- Number of frequency bands <input type="text" id="numbands" value="48"/>
holofan mode (0 is false 1 is true) <input type="text" id="holofanmode" value="0"/> -->
<!-- Hue cycle (changes how fast the hues change) <input type="text" id="hueoffsetspeed" value="0"/>
Refresh rate (changes how fast the audio signal updates ) <input type="text" id="refreshrate" value="0"/>
Base frequency (in Hz) <input type="text" id="baseFrequency" value="20"/>
Max frequency (in Hz) <input type="text" id="maxFrequency" value="20000"/> -->
<!-- image: <input type="file" id="folderInput" webkitdirectory directory multiple /> -->
<div class="input-group">
<div id="master-control">
<span>Master Volume Threshold: </span>
<input type="range" id="master" min="-100" max="355" value="150">
<br>
</div>
</div>
<div class="input-group" id="otherOutputsDivider" style="grid-column: 1 / -1;">
<b>Other output windows</b>
<span style="color:rgba(207,233,255,0.5);font-size:10px;">the moon rig, hypermoon and the poem screen — separate surfaces, none of them the music-reactive visual</span>
</div>
<div class="input-group" id="projRigPanel" style="grid-column: 1 / -1;">
Projection Rig (3-projector moon):
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:4px 0 8px;line-height:1.4;">
Live geometry + alignment for <code>moon-projection-rig.html</code>. Changes broadcast instantly to the
diagram below and to any open rig output window. Values persist in the browser and can be copied
as a query string for baked exports.
</div>
<div style="display:flex;flex-wrap:wrap;gap:8px;margin:6px 0;align-items:center;">
<input type="button" id="rigOpenOutputButton" value="open triple output (3x1)"/>
<input type="button" id="rigOpenQuadButton" value="open quad output (2x2)"/>
aux video <input type="text" id="rigAuxVideoInput" value="docs/hyperstition/hyperstition-moon-vajra.mp4" size="42"/>
<input type="button" id="rigShowDiagramButton" value="show/refresh diagram"/>
<input type="button" id="rigPatternOnButton" value="test pattern on"/>
<input type="button" id="rigPatternOffButton" value="test pattern off"/>
<input type="button" id="rigResetTrimsButton" value="reset trims"/>
<input type="button" id="rigCopyQueryButton" value="copy export query"/>
</div>
<iframe id="rigDiagramFrame" style="display:none;width:100%;height:340px;border:1px solid rgba(88,246,255,0.35);border-radius:8px;background:#000;" allow="autoplay"></iframe>
<table style="border-collapse:collapse;font-size:11px;margin-top:8px;">
<tr style="color:rgba(207,233,255,0.62);">
<td style="padding:2px 8px;"></td>
<td style="padding:2px 8px;">angle °</td>
<td style="padding:2px 8px;">dist m</td>
<td style="padding:2px 8px;">height m</td>
<td style="padding:2px 8px;">fov °V</td>
<td style="padding:2px 8px;">nudge px / zoom / roll</td>
</tr>
<tr>
<td style="color:#ff8888;font-weight:bold;padding:2px 8px;">A</td>
<td><input type="text" class="rig-geom" id="rigAzA" value="0" size="5"/></td>
<td><input type="text" class="rig-geom" id="rigDistA" value="4.80" size="5"/></td>
<td><input type="text" class="rig-geom" id="rigHtA" value="0" size="5"/></td>
<td><input type="text" class="rig-geom" id="rigFovA" value="" size="5" placeholder="auto"/></td>
<td>
<input type="button" class="rig-nudge" data-proj="0" data-dx="-1" value="◀"/>
<input type="button" class="rig-nudge" data-proj="0" data-dx="1" value="▶"/>
<input type="button" class="rig-nudge" data-proj="0" data-dy="1" value="▲"/>
<input type="button" class="rig-nudge" data-proj="0" data-dy="-1" value="▼"/>
<input type="button" class="rig-nudge" data-proj="0" data-zoom="1.002" value="z+"/>
<input type="button" class="rig-nudge" data-proj="0" data-zoom="0.998" value="z−"/>
<input type="button" class="rig-nudge" data-proj="0" data-roll="0.1" value="r+"/>
<input type="button" class="rig-nudge" data-proj="0" data-roll="-0.1" value="r−"/>
</td>
</tr>
<tr>
<td style="color:#88ff99;font-weight:bold;padding:2px 8px;">B</td>
<td><input type="text" class="rig-geom" id="rigAzB" value="120" size="5"/></td>
<td><input type="text" class="rig-geom" id="rigDistB" value="4.80" size="5"/></td>
<td><input type="text" class="rig-geom" id="rigHtB" value="0" size="5"/></td>
<td><input type="text" class="rig-geom" id="rigFovB" value="" size="5" placeholder="auto"/></td>
<td>
<input type="button" class="rig-nudge" data-proj="1" data-dx="-1" value="◀"/>
<input type="button" class="rig-nudge" data-proj="1" data-dx="1" value="▶"/>
<input type="button" class="rig-nudge" data-proj="1" data-dy="1" value="▲"/>
<input type="button" class="rig-nudge" data-proj="1" data-dy="-1" value="▼"/>
<input type="button" class="rig-nudge" data-proj="1" data-zoom="1.002" value="z+"/>
<input type="button" class="rig-nudge" data-proj="1" data-zoom="0.998" value="z−"/>
<input type="button" class="rig-nudge" data-proj="1" data-roll="0.1" value="r+"/>
<input type="button" class="rig-nudge" data-proj="1" data-roll="-0.1" value="r−"/>
</td>
</tr>
<tr>
<td style="color:#88aaff;font-weight:bold;padding:2px 8px;">C</td>
<td><input type="text" class="rig-geom" id="rigAzC" value="240" size="5"/></td>
<td><input type="text" class="rig-geom" id="rigDistC" value="4.80" size="5"/></td>
<td><input type="text" class="rig-geom" id="rigHtC" value="0" size="5"/></td>
<td><input type="text" class="rig-geom" id="rigFovC" value="" size="5" placeholder="auto"/></td>
<td>
<input type="button" class="rig-nudge" data-proj="2" data-dx="-1" value="◀"/>
<input type="button" class="rig-nudge" data-proj="2" data-dx="1" value="▶"/>
<input type="button" class="rig-nudge" data-proj="2" data-dy="1" value="▲"/>
<input type="button" class="rig-nudge" data-proj="2" data-dy="-1" value="▼"/>
<input type="button" class="rig-nudge" data-proj="2" data-zoom="1.002" value="z+"/>
<input type="button" class="rig-nudge" data-proj="2" data-zoom="0.998" value="z−"/>
<input type="button" class="rig-nudge" data-proj="2" data-roll="0.1" value="r+"/>
<input type="button" class="rig-nudge" data-proj="2" data-roll="-0.1" value="r−"/>
</td>
</tr>
</table>
<div style="margin-top:6px;">
blend ° <input type="text" id="rigBlendInput" value="18" size="4"/>
band ° <input type="text" id="rigBandInput" value="58" size="4"/>
nudge step px <input type="text" id="rigNudgeStep" value="1" size="4"/>
</div>
<div id="rigStateReadout" style="font-size:10px;color:rgba(207,233,255,0.62);margin-top:6px;word-break:break-all;line-height:1.4;"></div>
</div>
<div class="input-group" id="hypermoonPanel" style="grid-column: 1 / -1;">
Hypermoon (dark side of the moon):
<div class="muted" style="font-size:11px;color:rgba(207,233,255,0.62);margin:4px 0 8px;line-height:1.4;">
Live control for <code>hypermoon.html</code>. Sliders broadcast instantly to any open hypermoon window
(the on-page "i" panel stays in sync). Source changes reload the output. Copy the export query for
baked video renders.
</div>
<div style="display:flex;flex-wrap:wrap;gap:8px;margin:6px 0;align-items:center;">
<input type="button" id="hmOpenOutputButton" value="open hypermoon output"/>
moon
<select id="hmMoonSelect">
<option value="loops/3d moon/web/moon-rotating-6s-alpha.webm">moon 6s (dark space)</option>
<option value="loops/3d moon/web/moon-rotating-30s-alpha.webm">moon 30s (render)</option>
<option value="loops/3d moon/web/moon-planet-loop-10s-alpha.webm">moon 10s (planet loop)</option>
<option value="loops/3d moon/web/moon-neon-blue-25s-alpha.webm">moon 25s (neon blue)</option>
</select>
word <input type="text" id="hmWordInput" value="hyperstition" size="14"/>
window
<select id="hmContentPreset">
<option value="__keep">custom…</option>
<option value="">none (word only)</option>
<option value="crt">CRT terminal (live, editable time)</option>
<option value="vajra">vajras inside the moon</option>
<option value="fold">bucky fold (triangle → tetrahedron)</option>
<option value="foldsonic">bucky fold × sonicsphere (video panels)</option>
<option value="foldhelix">bucky helixes (1 + 1 = 4, two spirals → tetra)</option>
<option value="foldjitter">bucky jitterbug (VE → icosa → octa)</option>
<option value="foldgeo">bucky geodesic (icosa blooms into a dome)</option>
<option value="foldivm">bucky octet truss (isotropic vector matrix)</option>
<option value="mumins">dancing mumins (little trolls)</option>
<option value="fisher">star fisher (troll on a crescent, hearts)</option>
<option value="harmonics">sonic sphere (spherical harmonic modes)</option>
<option value="cymatics">cymatics plate (sand on the nodal lines)</option>
<option value="gifswarm">gifcities swarm (geocities gifs sync into words)</option>
<option value="orbit:ankh">orbiting ankhs only (bare moon, no word — reloads)</option>
<option value="orbit:ankh|seahorse,jellyfish,seaweed|vajra|starfish|boobs|metavillan">orbiting acts: the show's run — ankhs, reef, vajras, starfish, boobs, marks (reloads)</option>
<option value="orbit:metavillan">metavillan marks only (orbit, then mandala — reloads)</option>
<option value="artifacts/sample-sonicsphere-silent.webm">sonicsphere (baked loop)</option>
<option value="screen">another window (screen capture)</option>
<option value="artifacts/crt-terminal-green.mp4">CRT terminal (baked video)</option>
<option value="incant">incantation mantras</option>
<option value="assets/estoteric/web/IMG_1900.jpg,assets/estoteric/web/IMG_1901.jpg,assets/estoteric/web/IMG_1902.jpg,assets/estoteric/web/IMG_1903.jpg,assets/estoteric/web/IMG_1904.jpg">sutra pages (slideshow)</option>
</select>
content <input type="text" id="hmContentInput" value="" size="30" placeholder="empty = word mosaic, 'incant' = mantras"/>
<input type="button" id="hmGifCuratorButton" value="curate gifs…"
title="open the GifCities curator: reject the passengers a themed scrape always lands, star the good ones. A gif rejected there leaves a running moon within a second or two."/>
backdrop <input type="text" id="hmBackdropInput" value="" size="30"
placeholder="circle gifs behind the moon, comma-separated"
title="animated gifs (or images) pinned exactly behind the moon disc — fade the moon opacity slider down to reveal them; applies live on enter"/>
<span style="white-space:nowrap;">
guest logo <input type="text" id="hmLogoInput" value="" size="30"
placeholder="logo image path(s) — 'word' = the mosaic word"
title="someone else's mark takes the word's place on the shadowed panel, riding the same tracked dark patch. Comma-separated for several guests: they change hands while the panel is round the back of the moon. Include the token 'word' to keep hyperstition in the rotation."/>
<select id="hmLogoMode" title="plain draws the supplied artwork, dimmed to sit in the surface — a mark in dark ink is shown as its own silhouette in moonlight so it doesn't vanish. cubes rebuilds the mark out of the same astronaut/moon image cubes the letters are made of, which suits a bold monogram and will shred a wordmark.">
<option value="plain">artwork as given</option>
<option value="cubes">built from moon cubes</option>
</select>
hold <input type="number" id="hmLogoSec" value="24" min="0" max="900" step="1" style="width:56px"
title="seconds each guest holds the panel (0 = never change). The swap always waits for the panel to turn away, so nobody watches one logo cut to another."/>s
<input type="button" id="hmLogoClearButton" value="clear" title="give the panel back to the word"/>
<span id="hmLogoStatus" style="color:rgba(207,233,255,0.5);font-size:10px;"></span>
</span>
<input type="button" id="hmEyeRevealButton" value="◉ reveal eye seal"
title="loads the esoteric eye-seal gif behind the moon and irises the disc open so it shows through the centre"/>
<input type="button" id="hmIrisSealButton" value="● seal moon"
title="eases the iris closed again — the moon returns to a solid disc"/>
<span style="white-space:nowrap;">
circle clip <select id="hmClipPick"
title="clips cut for the circle by npm run clips. Picking one loads it behind the disc; 'all (crossfade)' loads the lot and they change hands on the backdrop timer. Nothing here until the fetch script has run.">
<option value="">— none —</option>
</select>
<input type="button" id="hmClipRevealButton" value="◉ reveal clip"
title="loads the chosen clip (or the whole set) behind the moon and irises the disc open onto it, with the reveal zoom off so the footage is seen as framed rather than punched into"/>
</span>
<span style="white-space:nowrap;">
any video <input type="text" id="hmVideoPicker" list="hmVideoList" size="34"
placeholder="type to search all loops…" title="every playable video found by npm run manifest:videos — pick one and it plays inside the moon window immediately"/>
<datalist id="hmVideoList"></datalist>
<input type="button" id="hmVideoRandomButton" value="random" title="random video (respects the search text as a filter)"/>
<span id="hmVideoCount" style="color:rgba(207,233,255,0.5);font-size:10px;"></span>
</span>
when <input type="text" id="hmWhenInput" value="WEDNESDAY 22:00" size="16" title="announced time on the live CRT screen"/>
program
<select id="hmProgramSelect" title="rotation-based sequencer: dark rotations show just the word, every 3rd rotation the window opens wordless on the current act's content, acts progress over ~an hour, then it loops">
<option value="">off (manual)</option>
<option value="hour">hour progression (reveal every 3rd rotation)</option>
<option value="library">whole library (a different effect every 3rd rotation)</option>
<option value="carousel">carousel (a different effect every single rotation)</option>
<option value="gifcities">gifcities exhibit (a scraped gif theme per act)</option>
<option value="eye10">eye seal (irises open every 10th rotation)</option>
<option value="folds">bucky folds (reveal every 3rd rotation)</option>
<option value="eyefolds">folds + eye (folds every 3rd, eye every 10th)</option>
<option value="nightfishing">night fishing (star fisher, mumins, eye)</option>
<option value="custom">custom (from the editor below)</option>
</select>
<input type="button" id="hmApplySourcesButton" value="apply sources (reloads)"/>
<input type="button" id="hmResurveyButton" value="re-survey anchor"/>
<input type="button" id="hmCopyQueryButton" value="copy export query"/>
<label style="margin-left:8px;" title="broadcast the running hypermoon to stream-view.html on other devices (needs npm run stream:server)">
<input type="checkbox" id="hmStreamToggle"/> stream to LAN
<span id="hmStreamStatus" style="color:rgba(207,233,255,0.62);font-size:10px;"></span>
</label>
</div>
<table style="border-collapse:collapse;font-size:11px;margin-top:4px;">
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">speed</td>
<td><input type="range" class="hm-slider" id="hmSpeed" data-key="speed" min="0.05" max="2" step="0.05" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmSpeedVal">–</span></td>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">brightness</td>
<td><input type="range" class="hm-slider" id="hmBright" data-key="bright" min="0" max="4" step="0.05" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmBrightVal">–</span></td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">bleed area %</td>
<td><input type="range" class="hm-slider" id="hmBleed" data-key="bleed" min="0.2" max="12" step="0.1" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmBleedVal">–</span></td>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">feather</td>
<td><input type="range" class="hm-slider" id="hmFeather" data-key="feather" min="0" max="0.4" step="0.005" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmFeatherVal">–</span></td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">dark threshold (manual)</td>
<td><input type="range" class="hm-slider" id="hmThresh" data-key="thresh" min="0" max="0.6" step="0.005" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmThreshVal">–</span></td>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">apparition s (0 = steady)</td>
<td><input type="range" class="hm-slider" id="hmApparition" data-key="apparition" min="0" max="30" step="0.5" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmApparitionVal">–</span></td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">orbiting vajras</td>
<td><input type="range" class="hm-slider" id="hmVajras" data-key="vajras" min="0" max="6" step="1" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmVajrasVal">–</span></td>
<td colspan="3" style="padding:2px 8px;color:rgba(207,233,255,0.45);">spinning dorje clips circle the moon, hide behind the disc</td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">vajra orbit radius</td>
<td><input type="range" class="hm-slider" id="hmVajraRadius" data-key="vajraRadius" min="0.3" max="2.2" step="0.05" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmVajraRadiusVal">–</span></td>
<td colspan="3" style="padding:2px 8px;color:rgba(207,233,255,0.45);">how far the dorje clips orbit from the moon (1× = the halo ring)</td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">vajra lane opening</td>
<td><input type="range" class="hm-slider" id="hmVajraTilt" data-key="vajraTilt" min="0.05" max="1" step="0.05" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmVajraTiltVal">–</span></td>
<td colspan="3" style="padding:2px 8px;color:rgba(207,233,255,0.45);">how far the lanes open vertically — they always turn inside the limb, so each one passes behind the moon</td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">fisher companion</td>
<td style="padding:2px 8px;">
<label style="font-size:11px;" title="hangs the star fisher in the sky beside the moon on his own layer, so he keeps fishing whatever the window is running">
<input type="checkbox" id="hmFisherLive"/> on
</label>
</td>
<td style="padding:2px 8px;"><span id="hmFisherLiveVal">–</span></td>
<td colspan="3" style="padding:2px 8px;">
size <input type="range" class="hm-slider" id="hmFisherLiveSize" data-key="fisherlivesize" min="0.4" max="2.5" step="0.05" style="width:80px;vertical-align:middle;"/>
angle <input type="range" class="hm-slider" id="hmFisherLiveAngle" data-key="fisherliveangle" min="0" max="359" step="1" style="width:80px;vertical-align:middle;"/>
out <input type="range" class="hm-slider" id="hmFisherLiveDist" data-key="fisherlivedist" min="0" max="2.5" step="0.05" style="width:80px;vertical-align:middle;"/>
<span style="color:rgba(207,233,255,0.45);">he runs alongside the window content, not instead of it</span>
</td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">moon size</td>
<td><input type="range" class="hm-slider" id="hmMoonScale" data-key="moonscale" min="0.2" max="1.5" step="0.01" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmMoonScaleVal">–</span></td>
<td colspan="3" style="padding:2px 8px;color:rgba(207,233,255,0.45);">shrinks/grows the whole moon on screen — backdrop and vajra orbits follow</td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">nudge X / Y</td>
<td colspan="5" style="padding:2px 8px;">
X <input type="range" class="hm-slider" id="hmMoonX" data-key="moonx" min="-0.5" max="0.5" step="0.005" style="width:110px;vertical-align:middle;"/>
<span id="hmMoonXVal">–</span>
Y <input type="range" class="hm-slider" id="hmMoonY" data-key="moony" min="-0.5" max="0.5" step="0.005" style="width:110px;vertical-align:middle;"/>
<span id="hmMoonYVal">–</span>
<span style="color:rgba(207,233,255,0.45);">in disc radii, so it means the same at any size — the disc centres itself, this is for squaring it up to a fan hub or a projected frame by eye</span>
</td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">moon opacity</td>
<td><input type="range" class="hm-slider" id="hmAlpha" data-key="alpha" min="0" max="1" step="0.01" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmAlphaVal">–</span></td>
<td colspan="3" style="padding:2px 8px;color:rgba(207,233,255,0.45);">fades the whole moon out, revealing the backdrop gifs behind it</td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">blood moon</td>
<td><input type="range" class="hm-slider" id="hmBloodMoon" data-key="bloodmoon" min="0" max="1" step="0.01" style="width:130px;"/></td>
<td style="padding:2px 8px;"><span id="hmBloodMoonVal">–</span></td>
<td colspan="3" style="padding:2px 8px;">
<input type="button" id="hmBloodMoonButton" value="🌕→🔴 blood moon"
title="eases the whole disc to the copper-red eclipse grade (craters and the word mosaic keep their relief)"/>
<input type="button" id="hmBloodClearButton" value="natural moon"
title="back to the ungraded gray moon"/>
tint <input type="color" id="hmBloodTint" value="#ff2c12" title="eclipse color - deep red by default"/>
</td>
</tr>
<tr>
<td style="padding:2px 8px;color:rgba(207,233,255,0.62);">blood fade timer</td>
<td colspan="5" style="padding:2px 8px;">
over <input type="number" id="hmBloodFadeMin" value="45" min="1" max="720" step="1" style="width:52px;"