-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
3153 lines (3091 loc) · 149 KB
/
Copy pathindex.html
File metadata and controls
3153 lines (3091 loc) · 149 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 lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
<meta name="referrer" content="no-referrer">
<meta name="color-scheme" content="dark">
<meta name="theme-color" content="#121214">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>404 Busdriver</title>
<meta property="og:type" content="website">
<meta property="og:title" content="404 Busdriver">
<meta property="og:description" content="MIDI controller for the five FX buses of the Roland SP-404 MkII. Chrome/Edge (Web MIDI).">
<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='6' fill='%23121214'/%3E%3Crect x='7' y='7' width='18' height='18' rx='3' fill='%23ff7a1a'/%3E%3C/svg%3E">
<style>
/* ============ 01 tokens ============ */
:root {
--bg: #121214; --panel: #1c1c20; --raised: #26262b; --line: #35353b;
--text: #e8e6e1; --muted: #8a8880;
--accent: #ff7a1a; --accent-dim: rgba(255,122,26,.25); --glow: rgba(255,122,26,.35);
--ok: #4cd07d; --warn: #ff4545;
--statusbar-h: 46px; --tabs-h: 60px;
--font-label: system-ui, -apple-system, "Segoe UI", sans-serif;
--font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* ============ 02 reset + shell ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overscroll-behavior: none; }
body {
position: fixed; inset: 0; width: 100%; height: 100dvh;
touch-action: none; overflow: hidden;
background: var(--bg); color: var(--text);
font-family: var(--font-label);
-webkit-font-smoothing: antialiased;
user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
/* subtle film grain + vignette, no external assets */
background-image:
radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.025), transparent 70%),
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; touch-action: none; }
#app {
display: grid; height: 100dvh;
grid-template-rows: calc(var(--statusbar-h) + env(safe-area-inset-top)) var(--tabs-h) 1fr;
grid-template-columns: minmax(0, 1fr); /* no item may inflate the track */
grid-template-areas: "status" "tabs" "main";
}
.label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.display {
background: #000; border-radius: 4px; box-shadow: inset 0 0 0 1px #2a2a2e;
font-family: var(--font-mono); color: var(--text);
text-shadow: 0 0 6px rgba(232,230,225,.4);
background-image: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.02) 2px 3px);
}
.pad {
background: var(--raised); border-radius: 8px;
box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.4), 0 0 0 1px var(--line);
}
.pad.on { background: var(--accent); color: #1a1105; box-shadow: 0 0 14px var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
/* ============ 03 statusbar ============ */
#statusbar {
grid-area: status; display: flex; align-items: center; gap: 10px;
padding: env(safe-area-inset-top) calc(10px + env(safe-area-inset-right)) 0 calc(10px + env(safe-area-inset-left));
border-bottom: 1px solid var(--line); background: var(--panel);
}
#conn { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; height: 100%; text-align: left; }
#conn-dot { width: 9px; height: 9px; border-radius: 50%; background: #555; flex: none; }
#conn-dot.ok { background: var(--ok); box-shadow: 0 0 6px rgba(76,208,125,.6); }
#conn-dot.err { background: var(--warn); box-shadow: 0 0 6px rgba(255,69,69,.6); }
#conn-name { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tx { width: 7px; height: 7px; border-radius: 50%; background: #3a3a40; flex: none; transition: background .05s; }
#tx.blink { background: var(--accent); box-shadow: 0 0 6px var(--glow); }
#statusbar .sbtn {
height: 34px; padding: 0 12px; border-radius: 7px; flex: none;
font-size: 11px; letter-spacing: .07em; font-weight: 600;
}
#alloff { color: #ff9a9a; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.4), 0 0 0 1px #5a3535; }
#alloff.armed { background: var(--warn); color: #fff; box-shadow: 0 0 12px rgba(255,69,69,.5); }
/* ============ 04 bus tabs ============ */
#bustabs {
grid-area: tabs; display: flex; gap: 6px; align-items: stretch;
padding: 6px calc(8px + env(safe-area-inset-right)) 6px calc(8px + env(safe-area-inset-left));
background: var(--panel); border-bottom: 1px solid var(--line);
}
.bustab {
flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
border-radius: 8px; background: var(--raised);
box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--line);
font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted);
position: relative; min-width: 0;
}
.bustab.active { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent), inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--line); }
.led { width: 10px; height: 10px; border-radius: 50%; flex: none;
background: radial-gradient(circle at 35% 35%, #4a4a50, #333338); box-shadow: inset 0 0 2px #000; }
.led.on { background: radial-gradient(circle at 35% 35%, #ffc48f, var(--accent)); box-shadow: 0 0 8px var(--glow); }
/* ============ 05 focus view ============ */
/* min-width 0: as a grid item, main must never inflate the track -
wide overview content scrolls inside #view-overview instead */
main { grid-area: main; min-height: 0; min-width: 0; position: relative; }
#view-focus { display: flex; flex-direction: column; height: 100%; padding: 10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left)); gap: 10px; }
#focus-head { display: flex; gap: 10px; align-items: stretch; flex: none; height: 58px; }
#efx-pad { width: 104px; flex: none; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
#fx-select { flex: 1; display: flex; gap: 6px; min-width: 0; }
#fx-prev, #fx-next { width: 46px; flex: none; border-radius: 8px; background: var(--raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px var(--line); font-size: 17px; color: var(--muted); }
#fx-name {
flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
padding: 4px 10px; font-size: 15px; overflow: hidden;
}
#fx-name .fx-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#fx-name .fx-sub { font-size: 9px; letter-spacing: .12em; color: var(--muted); text-shadow: none; }
#faders { flex: 1; display: flex; gap: 8px; min-height: 0; }
/* ============ 06 fader component ============ */
.slot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; min-height: 0; }
.slot.empty { opacity: .22; pointer-events: none; }
.fader { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; width: 100%; min-height: 0; position: relative; touch-action: none; }
.fader-val { font-size: 12px; padding: 3px 4px; min-width: 52px; max-width: 100%; text-align: center; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fader-track-wrap { flex: 1; width: 100%; display: flex; justify-content: center; min-height: 0; position: relative; }
.fader-track { width: 10px; height: 100%; border-radius: 5px; background: #0d0d0f; box-shadow: inset 0 0 0 1px #2c2c31; position: relative; }
.fader-fill { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 5px; background: var(--accent-dim); }
.fader-thumb {
--thumb-h: 26px;
position: absolute; left: 50%; width: 44px; height: var(--thumb-h); border-radius: 6px;
transform: translateX(-50%);
background: var(--raised);
box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 -1px 0 rgba(0,0,0,.5), 0 2px 5px rgba(0,0,0,.5), 0 0 0 1px var(--line);
}
.fader-thumb::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; transform: translateY(-50%); background: var(--accent); border-radius: 1px; }
.fader.drag .fader-thumb { background: #3a3126; box-shadow: 0 0 12px var(--glow), inset 0 1px 0 rgba(255,255,255,.15), 0 0 0 1px var(--accent); }
.slot-label { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; flex: none; }
.bigval {
position: absolute; top: -6px; left: 50%; transform: translate(-50%, -100%);
font-size: 30px; padding: 4px 12px; z-index: 6; pointer-events: none;
opacity: 0; transition: opacity .15s; white-space: nowrap;
}
.bigval.show { opacity: 1; }
/* toggle pad + segment stepper in a slot */
.slot-toggle { flex: 1; width: 100%; max-width: 74px; border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; min-height: 0; }
.seg { flex: 1; width: 100%; max-width: 74px; display: flex; flex-direction: column-reverse; gap: 4px; min-height: 0; }
.seg button { flex: 1; border-radius: 6px; background: var(--raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--line); font-size: 10px; font-weight: 600; color: var(--muted); min-height: 0; overflow: hidden; }
.seg button.on { background: var(--accent); color: #1a1105; box-shadow: 0 0 10px var(--glow); }
/* stepper popover */
#stepper { position: fixed; z-index: 40; display: none; gap: 8px; padding: 8px; border-radius: 10px; background: var(--panel); box-shadow: 0 6px 24px rgba(0,0,0,.6), 0 0 0 1px var(--line); }
#stepper.open { display: flex; }
#stepper button { width: 56px; height: 48px; border-radius: 8px; font-size: 20px; }
/* ============ 07 overview ============ */
#view-overview { display: none; height: 100%; padding: 10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left)); gap: 8px; }
body.overview #view-overview { display: flex; }
body.overview #view-focus { display: none; }
.busstrip { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; background: var(--panel); border-radius: 10px; padding: 8px; box-shadow: 0 0 0 1px var(--line); }
.busstrip.on { box-shadow: 0 0 0 1px var(--accent), 0 0 12px rgba(255,122,26,.12); }
.strip-head { display: flex; align-items: center; gap: 8px; flex: none; }
.strip-head .label { flex: 1; text-align: left; }
.strip-efx { width: 64px; height: 44px; border-radius: 7px; font-size: 10px; font-weight: 700; letter-spacing: .06em; flex: none; }
.strip-fx { flex: none; padding: 5px 8px; font-size: 12px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.strip-faders { flex: 1; display: flex; gap: 5px; min-height: 0; }
.strip-faders .fader-val { display: none; }
.strip-faders .slot-label { font-size: 8.5px; }
.strip-faders .fader-thumb { --thumb-h: 16px; width: 26px; }
/* ============ 08 picker ============ */
.overlay { position: fixed; inset: 0; z-index: 20; display: none; background: rgba(8,8,10,.72); }
.overlay.open { display: flex; }
#picker-panel {
margin-left: auto; width: min(420px, 100%); height: 100%;
background: var(--panel); box-shadow: -8px 0 30px rgba(0,0,0,.5);
display: flex; flex-direction: column; position: relative;
padding-top: env(safe-area-inset-top);
}
#picker-head { display: flex; align-items: center; gap: 10px; padding: 12px calc(14px + env(safe-area-inset-right)) 12px 14px; border-bottom: 1px solid var(--line); flex: none; }
#picker-title { flex: 1; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
#picker-close { width: 44px; height: 40px; border-radius: 8px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); font-size: 16px; }
#picker-body { flex: 1; overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; padding: 10px calc(46px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) 12px; position: relative; }
.pick-cat { margin-top: 14px; }
.pick-cat h3 { font-size: 10px; letter-spacing: .12em; color: var(--muted); font-weight: 700; padding: 6px 2px; position: sticky; top: -10px; background: var(--panel); z-index: 2; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pick-item {
min-height: 48px; border-radius: 8px; background: var(--raised);
box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--line);
display: flex; align-items: center; gap: 8px; padding: 4px 10px;
font-size: 12.5px; text-align: left; color: var(--text); position: relative;
}
.pick-item.sel { background: var(--accent); color: #1a1105; font-weight: 700; }
.pick-item.off-item { grid-column: 1 / -1; justify-content: center; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.pick-item.sel.off-item { color: #1a1105; }
.pick-item .star { margin-left: auto; font-size: 13px; color: var(--muted); opacity: .45; flex: none; }
.pick-item .star.fav { color: var(--accent); opacity: 1; }
.pick-item.sel .star.fav { color: #1a1105; }
/* buttons in scroll panels must not defeat the panel's pan-y (global button rule is none) */
.pick-item, .setup-btn, .snap-slot { touch-action: pan-y; }
.pick-note { font-size: 11px; line-height: 1.5; color: var(--muted); padding: 2px 2px 10px; }
@media (min-width: 700px) { .pick-grid { grid-template-columns: 1fr 1fr 1fr; } }
#jumpbar { position: absolute; right: calc(6px + env(safe-area-inset-right)); top: calc(70px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 4px; z-index: 3; }
#jumpbar button { width: 36px; height: 40px; font-size: 9px; font-weight: 700; color: var(--muted); border-radius: 8px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
/* ============ 09 setup ============ */
#setup-panel, #snaps-panel, #xypick-panel, #padpick-panel, #help-panel {
margin: auto; width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 40px);
background: var(--panel); border-radius: 14px; box-shadow: 0 10px 40px rgba(0,0,0,.6), 0 0 0 1px var(--line);
display: flex; flex-direction: column; overflow: hidden;
}
#setup-head, #snaps-head, #xypick-head, #padpick-head, #help-head { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); flex: none; }
#setup-head h2, #snaps-head h2, #xypick-head h2, #padpick-head h2, #help-head h2 { flex: 1; font-size: 14px; letter-spacing: .08em; font-weight: 700; }
#setup-body, #snaps-body, #xypick-body, #padpick-body, #help-body { overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
#setup-body h4, #snaps-body h4, #xypick-body h4, #padpick-body h4 { font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
#help-panel { width: min(560px, calc(100% - 24px)); }
#help-body { gap: 6px; }
#help-body h3 { font-size: 11px; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin-top: 10px; text-transform: uppercase; }
#help-body p { font-size: 12.5px; line-height: 1.65; color: var(--text); }
#help-body b { font-weight: 700; }
/* xy view */
#view-xy { display: none; height: 100%; padding: 10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left)); flex-direction: column; gap: 10px; }
body.xy #view-xy { display: flex; }
body.xy #view-focus, body.xy #view-overview { display: none; }
#xy-head { display: flex; gap: 8px; flex: none; height: 46px; }
#xy-xa, #xy-ya { flex: 1; min-width: 0; font-size: 12px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#xy-mom { width: 112px; flex: none; font-size: 10px; font-weight: 700; letter-spacing: .06em; border-radius: 8px; }
#xy-pad { flex: 1; position: relative; border-radius: 12px; background: #0d0d0f;
box-shadow: inset 0 0 0 1px #2c2c31; touch-action: none; overflow: hidden;
background-image:
repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), rgba(255,255,255,.04) calc(25% - 1px) 25%),
repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), rgba(255,255,255,.04) calc(25% - 1px) 25%); }
#xy-lineh, #xy-linev { position: absolute; background: rgba(255,122,26,.28); pointer-events: none; }
#xy-lineh { left: 0; right: 0; height: 1px; top: 50%; }
#xy-linev { top: 0; bottom: 0; width: 1px; left: 50%; }
#xy-cross { position: absolute; width: 24px; height: 24px; border-radius: 50%;
border: 2px solid var(--accent); box-shadow: 0 0 14px var(--glow);
transform: translate(-50%, -50%); pointer-events: none; left: 50%; top: 50%; }
#xy-vals { position: absolute; left: 10px; top: 8px; padding: 4px 9px; font-size: 11px; pointer-events: none; }
/* lfo row (inside xy view) */
#lfo-row { display: flex; gap: 6px; flex: none; height: 42px; }
#lfo-row .pad { border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 0 10px; flex: none; }
#lfo-target { flex: 1; min-width: 0; font-size: 11px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* pattern view */
#view-pattern { display: none; height: 100%; padding: 10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left)); flex-direction: column; gap: 10px; }
body.pattern #view-pattern { display: flex; }
body.pattern #view-focus, body.pattern #view-overview, body.pattern #view-xy { display: none; }
#ptn-banks, #pad-banks { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
#ptn-banks button, #pad-banks button { flex: 1; min-width: 44px; height: 40px; border-radius: 8px; background: var(--raised);
box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--line);
font-size: 12px; font-weight: 700; color: var(--muted); }
#ptn-banks button.active, #pad-banks button.active { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent), 0 0 0 1px var(--line); }
#ptn-grid, #pad-grid, #scale-grid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 8px; min-height: 0; }
#ptn-grid button, #pad-grid button, #scale-grid button { border-radius: 10px; font-size: 15px; font-weight: 700; color: var(--text); min-height: 0; overflow: hidden; }
#ptn-grid button.sent { background: var(--accent); color: #1a1105; box-shadow: 0 0 14px var(--glow), inset 0 1px 0 rgba(255,255,255,.25); }
#pad-grid button.hit, #scale-grid button.hit { background: var(--accent); color: #1a1105; box-shadow: 0 0 14px var(--glow); }
#scale-grid button.root { box-shadow: inset 0 -3px 0 var(--accent), inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px var(--line); }
#scale-grid button.oor { opacity: .22; pointer-events: none; }
#pad-grid button .pl { display: block; font-size: 9px; font-weight: 600; color: inherit; opacity: .65; }
#view-pattern .pick-note, #view-play .pick-note { flex: none; }
#loop-row, #auto-row { display: flex; flex-wrap: wrap; gap: 6px; flex: none; align-items: center; }
#loop-row .pad, #auto-row .pad { height: 40px; border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 0 10px; }
#loop-row h4, #auto-row h4 { width: 100%; font-size: 10px; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
#loop-bpm { flex: 1; min-width: 90px; accent-color: var(--accent); }
/* play view: chromatic keys + pad board */
#view-play { display: none; height: 100%; padding: 10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left)); flex-direction: column; gap: 10px; }
body.play #view-play { display: flex; }
body.play #view-focus, body.play #view-overview, body.play #view-xy, body.play #view-pattern { display: none; }
#play-head { display: flex; gap: 6px; flex: none; height: 42px; }
#play-head .pad { border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: .05em; padding: 0 12px; flex: none; }
#play-head .spacer { flex: 1; }
#keys-area { flex: 1; display: flex; gap: 8px; min-height: 0; }
#view-play.pads #keys-area, #view-play.scale #keys-area { display: none; }
#pads-area { flex: 1; display: none; flex-direction: column; gap: 10px; min-height: 0; }
#view-play.pads #pads-area { display: flex; }
#scale-area { flex: 1; display: none; flex-direction: column; gap: 10px; min-height: 0; }
#view-play.scale #scale-area { display: flex; }
#keys { flex: 1; position: relative; touch-action: none; min-width: 0; }
.key { position: absolute; bottom: 0; top: 0; border-radius: 0 0 6px 6px; }
.key.white { background: #e8e6e1; box-shadow: inset 0 0 0 1px #9a988f, inset 0 -6px 0 rgba(0,0,0,.08); }
.key.black { background: #1a1a1e; height: 56%; bottom: auto; z-index: 2; border-radius: 0 0 5px 5px; box-shadow: 0 3px 6px rgba(0,0,0,.5), inset 0 0 0 1px #000; }
.key.on { background: var(--accent); }
.key .kl { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font-size: 9px; color: #6a685f; pointer-events: none; }
#bend { width: 54px; flex: none; border-radius: 8px; background: #0d0d0f; box-shadow: inset 0 0 0 1px #2c2c31; position: relative; touch-action: none; }
#bend.off { display: none; }
#bend-ind { position: absolute; left: 6px; right: 6px; height: 24px; top: calc(50% - 12px); border-radius: 5px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); pointer-events: none; }
#bend-ind::after { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 2px; transform: translateY(-50%); background: var(--accent); border-radius: 1px; }
/* lfo slot chips */
#lfo-slots { display: flex; gap: 4px; flex: none; }
#lfo-slots button { width: 34px; border-radius: 8px; background: var(--raised); box-shadow: 0 0 0 1px var(--line); font-size: 10px; font-weight: 700; color: var(--muted); position: relative; }
#lfo-slots button.sel { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent), 0 0 0 1px var(--line); }
#lfo-slots button.running::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 5px var(--glow); }
/* bpm display */
#bpm { display: none; align-items: center; gap: 6px; padding: 4px 9px; flex: none;
background: #000; border-radius: 4px; box-shadow: inset 0 0 0 1px #2a2a2e;
font-family: var(--font-mono); font-size: 11px; color: var(--text);
text-shadow: 0 0 6px rgba(232,230,225,.4); }
#bpm.on { display: flex; }
#beat { width: 6px; height: 6px; border-radius: 50%; background: #3a3a40; }
#beat.tick { background: var(--accent); box-shadow: 0 0 5px var(--glow); }
/* snapshots */
.snap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.snap-slot { min-height: 64px; border-radius: 10px; background: var(--raised);
box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--line);
display: flex; flex-direction: column; align-items: center; justify-content: center;
gap: 3px; padding: 8px 32px 8px 12px; position: relative; color: var(--text); cursor: pointer; user-select: none; }
.snap-slot.empty { color: var(--muted); background: transparent; box-shadow: 0 0 0 1px var(--line); }
.snap-slot .sn-name { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snap-slot .sn-meta { font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.snap-slot .sn-sum { font-size: 9.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-edit { width: 100%; background: #000; border: 1px solid var(--accent); color: var(--text);
border-radius: 5px; font: inherit; font-size: 12.5px; padding: 3px 6px; text-align: center;
user-select: text; -webkit-user-select: text; }
#snap-current { padding: 8px 10px; font-size: 11.5px; line-height: 1.65; white-space: pre-line; }
.snap-slot .sn-del { position: absolute; top: 2px; right: 2px; width: 30px; height: 30px; border-radius: 7px; color: var(--muted); font-size: 12px; }
#sync-status { font-size: 11px; color: var(--muted); letter-spacing: .05em; }
#exchange { width: 100%; min-height: 90px; background: #000; color: var(--text);
font-family: var(--font-mono); font-size: 11px; border-radius: 6px;
border: 1px solid var(--line); padding: 8px; resize: vertical; margin-bottom: 8px; }
#rnd-btn { width: 46px; flex: none; border-radius: 8px; background: var(--raised);
box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px var(--line);
font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
#rnd-btn.undo { color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.setup-row { display: flex; flex-wrap: wrap; gap: 8px; }
.setup-btn { min-height: 44px; padding: 8px 14px; border-radius: 8px; background: var(--raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--line); font-size: 12.5px; }
.setup-btn.primary { background: var(--accent); color: #1a1105; font-weight: 700; }
#help-btn { color: var(--accent); font-weight: 700; letter-spacing: .03em;
box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 0 0 1px var(--accent);
display: inline-flex; align-items: center; gap: 7px; }
#help-btn svg { width: 15px; height: 15px; flex: none; }
.setup-btn.sel { box-shadow: 0 0 0 2px var(--accent); }
#diag { font-size: 12px; line-height: 1.6; color: var(--muted); }
#diag b { color: var(--text); font-weight: 600; }
#clock-diag { font-size: 12px; color: var(--muted); }
.infobox { border-left: 3px solid var(--accent); background: rgba(255,122,26,.06); border-radius: 0 8px 8px 0; padding: 10px 12px; font-size: 12.5px; line-height: 1.55; color: var(--text); }
.infobox .label { display: block; margin-bottom: 4px; color: var(--accent); }
/* ============ 10 no-midi hint ============ */
#nomidi { position: fixed; inset: 0; z-index: 30; display: none; background: var(--bg); padding: max(30px, env(safe-area-inset-top)) 24px 24px; overflow-y: auto; touch-action: pan-y; }
#nomidi.open { display: block; }
#nomidi .inner { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
#nomidi h1 { font-size: 20px; letter-spacing: .04em; }
#nomidi p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }
#nomidi p b { color: var(--text); font-weight: 600; }
/* ============ 11 banner ============ */
#banner { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 25;
background: var(--warn); color: #fff; font-size: 12.5px; font-weight: 600; padding: 10px 16px; border-radius: 9px;
box-shadow: 0 4px 18px rgba(0,0,0,.5); display: none; max-width: calc(100% - 28px); text-align: center; }
#banner.show { display: block; }
#banner.info { background: var(--raised); color: var(--text); box-shadow: 0 4px 18px rgba(0,0,0,.5), 0 0 0 1px var(--line); }
#banner:not(.info) { cursor: pointer; }
/* ============ 12 responsive ============ */
/* phone portrait <=520: overview becomes stacked cards, strip faders read-only */
@media (max-width: 520px) {
#view-overview { flex-direction: column; overflow-y: auto; touch-action: pan-y; }
.busstrip { flex: none; height: 116px; flex-direction: row; align-items: stretch; }
.strip-head { flex-direction: column; align-items: flex-start; gap: 6px; width: 92px; flex: none; justify-content: center; }
.strip-fx { width: 92px; align-self: center; flex: none; }
.strip-faders { pointer-events: none; }
.strip-faders .fader-thumb { display: none; }
#efx-pad { width: 96px; }
#statusbar { gap: 6px; }
#statusbar .sbtn { padding: 0 6px; font-size: 10px; letter-spacing: .03em; }
.strip-efx { width: 100%; height: 44px; }
.strip-fx, .strip-head .label { touch-action: pan-y; }
#lfo-row { flex-wrap: wrap; height: auto; }
#lfo-row .pad, #lfo-target, #lfo-slots button { height: 40px; }
#lfo-target { min-width: 130px; }
#play-head { flex-wrap: wrap; height: auto; }
#play-head .pad { height: 38px; }
}
/* tablet/desktop overview: strips keep a playable width, container scrolls */
@media (min-width: 521px) {
.busstrip { min-width: 190px; touch-action: pan-x; }
#view-overview { overflow-x: auto; touch-action: pan-x; overscroll-behavior-x: contain; }
/* horizontal pan may start on card head/name (click won't fire after a pan);
faders and EFX pads keep touch-action none */
.strip-fx, .strip-head .label { touch-action: pan-x; }
}
/* phone landscape: tabs become a left rail */
@media (max-height: 500px) and (orientation: landscape) {
#app { grid-template-rows: calc(var(--statusbar-h) + env(safe-area-inset-top)) 1fr; grid-template-columns: calc(70px + env(safe-area-inset-left)) minmax(0, 1fr);
grid-template-areas: "status status" "tabs main"; }
#bustabs { flex-direction: column; border-bottom: none; border-right: 1px solid var(--line);
padding: 8px 6px calc(8px + env(safe-area-inset-bottom)) calc(6px + env(safe-area-inset-left)); }
#view-focus { flex-direction: row; }
#focus-head { flex-direction: column; height: auto; width: 120px; flex: none; }
#efx-pad { width: 100%; height: 58px; flex: none; }
#fx-select { flex-direction: column; }
#fx-prev, #fx-next, #rnd-btn { width: 100%; height: 40px; flex: none; }
#fx-name { flex: 1; }
#view-overview { overflow-x: auto; }
#view-pattern { overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain; }
#ptn-grid { flex: none; min-height: 210px; }
#view-pattern button, #loop-bpm { touch-action: pan-y; }
}
/* wide: desktop hover niceties */
@media (hover: hover) {
.pick-item:hover, .setup-btn:hover, .bustab:hover { filter: brightness(1.15); }
}
</style>
</head>
<body>
<div id="app">
<header id="statusbar">
<button id="conn" title="Setup">
<span id="conn-dot"></span>
<span id="conn-name" class="mono">nicht verbunden</span>
</button>
<span id="tx"></span>
<span id="bpm"><span id="beat"></span><span id="bpm-val">–</span></span>
<button id="view-toggle" class="sbtn pad">Overview</button>
<button id="xy-btn" class="sbtn pad">XY</button>
<button id="alloff" class="sbtn">ALL OFF</button>
<button id="snaps-btn" class="sbtn pad">Snap</button>
<button id="setup-btn" class="sbtn pad">Setup</button>
</header>
<nav id="bustabs"></nav>
<main>
<section id="view-focus">
<div id="focus-head">
<button id="efx-pad" class="pad">EFX</button>
<div id="fx-select">
<button id="fx-prev">‹</button>
<button id="fx-name" class="display">
<span class="fx-title">(OFF)</span>
<span class="fx-sub">choose effect</span>
</button>
<button id="fx-next">›</button>
<button id="rnd-btn" title="Randomize / Undo">RND</button>
</div>
</div>
<div id="faders"></div>
</section>
<section id="view-overview"></section>
<section id="view-xy">
<div id="xy-head">
<button id="xy-xa" class="display mono">X: –</button>
<button id="xy-ya" class="display mono">Y: –</button>
<button id="xy-mom" class="pad">MOMENTARY</button>
</div>
<div id="lfo-row">
<div id="lfo-slots"></div>
<button id="lfo-on" class="pad">LFO</button>
<button id="lfo-target" class="display mono">Ziel: –</button>
<button id="lfo-wave" class="pad">SIN</button>
<button id="lfo-rate" class="pad">1/4</button>
<button id="lfo-depth" class="pad">50%</button>
<button id="lfo-tap" class="pad">TAP</button>
</div>
<div id="xy-pad">
<div id="xy-lineh"></div>
<div id="xy-linev"></div>
<div id="xy-cross"></div>
<div id="xy-vals" class="display mono"></div>
</div>
</section>
<section id="view-pattern">
<div id="ptn-banks"></div>
<div id="ptn-grid"></div>
<div id="auto-row">
<h4>Autopilot</h4>
<button id="auto-on" class="pad">AUTO</button>
<button id="auto-bars" class="pad">every 4 bars</button>
<button id="auto-scope" class="pad">bank only</button>
</div>
<div id="loop-row">
<h4>Looper (device in looper mode, CH 1)</h4>
<button id="lp-rec" class="pad">REC</button>
<button id="lp-dub" class="pad">OVERDUB</button>
<button id="lp-del" class="pad">DEL</button>
<button id="lp-undo" class="pad">UNDO</button>
<button id="lp-redo" class="pad">REDO</button>
<button id="lp-stop" class="pad">STOP ALL</button>
<button id="lp-treset" class="pad">TEMPO RST</button>
<input id="loop-bpm" type="range" min="0" max="127" value="64" title="BPM / play rate (CC#90)">
</div>
<p class="pick-note">Program change: bank = MIDI channel, pattern = PC 0–15.
Requires <b>MIDI mode B</b> on the device and "PC Rx" = ON.
The device does not confirm switches via MIDI – highlighted is the last one sent.</p>
</section>
<section id="view-play">
<div id="play-head">
<button id="play-keys-btn" class="pad">KEYS</button>
<button id="play-scale-btn" class="pad">SCALE</button>
<button id="play-pads-btn" class="pad">PADS</button>
<span class="spacer"></span>
<button id="play-target" class="pad">SAMPLE CH16</button>
<button id="play-root" class="pad">C</button>
<button id="play-scalesel" class="pad">DUR</button>
<button id="play-layout" class="pad">ISO</button>
<button id="play-oct-down" class="pad">OCT −</button>
<button id="play-oct-up" class="pad">OCT +</button>
</div>
<div id="keys-area">
<div id="keys"></div>
<div id="bend" class="off"><div id="bend-ind"></div></div>
</div>
<div id="pads-area">
<div id="pad-banks"></div>
<div id="pad-grid"></div>
</div>
<div id="scale-area">
<div id="scale-grid"></div>
</div>
<p class="pick-note" id="play-note">Chromatic: plays the current sample (CH 16, C2–C4).</p>
</section>
</main>
</div>
<div id="stepper">
<button id="step-minus">−</button>
<button id="step-plus">+</button>
</div>
<div id="picker" class="overlay">
<div id="picker-panel">
<div id="picker-head">
<span id="picker-title" class="label">Effekt</span>
<button id="picker-close">✕</button>
</div>
<div id="picker-body"></div>
</div>
</div>
<div id="setup" class="overlay">
<div id="setup-panel">
<div id="setup-head">
<h2>404 BUSDRIVER – SETUP</h2>
<button id="setup-close" class="setup-btn">Close</button>
</div>
<div id="setup-body">
<div id="diag" class="mono"></div>
<div id="clock-diag" class="mono">Clock: –</div>
<div class="setup-row" id="setup-actions">
<button id="midi-connect" class="setup-btn primary">Connect to SP-404</button>
<button id="midi-rescan" class="setup-btn">Reconnect</button>
<button id="push-state" class="setup-btn">Send state to device</button>
<button id="wake-toggle" class="setup-btn">Keep screen awake: off</button>
<button id="help-btn" class="setup-btn"><svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linejoin="round"><path d="M8 3.4C6.6 2.3 4.6 2 2.5 2v10.2c2.1 0 4.1.3 5.5 1.4 1.4-1.1 3.4-1.4 5.5-1.4V2C11.4 2 9.4 2.3 8 3.4z"/><path d="M8 3.4v10.2"/></svg>Manual</button>
</div>
<div>
<h4>MIDI output</h4>
<div class="setup-row" id="out-list"></div>
</div>
<div>
<h4>MIDI input</h4>
<div class="setup-row" id="in-list"></div>
</div>
<div>
<h4>Direct FX assignment (BUS 1+2)</h4>
<div class="setup-row" id="dfx-list"></div>
<p class="pick-note">Mirrors the device setting: which effect sits on
Direct FX 1–5? The faders then show the real
parameter names (e.g. Sync Delay on DFX3).</p>
</div>
<div class="infobox">
<span class="label">Tempo / Ableton Link</span>
The BPM display in the status bar reads incoming MIDI clock
– from any connected port. Link route: Ableton Live or
a Link-to-MIDI bridge sends clock to the SP-404
(UTILITY > SYSTEM > MIDI: "MIDI Sync") and to this
computer – device and app then run in sync with the Link session.
If the SP-404 itself sends clock (MIDI Sync Out), the app shows
its tempo.
</div>
<div class="infobox">
<span class="label">On the device: MIDI mode</span>
FX control works in mode <b>A</b> and <b>B</b> (Roland
documents it for B only; A verified on the device). Later
pattern switching needs mode B: [SHIFT] + [PAD 12]
> SYSTEM > MIDI > "MIDI Mode". Connect the SP-404 MkII
directly via USB-C to the computer or iPad.
</div>
<div class="infobox">
<span class="label">iPhone / iPad</span>
No iOS browser can do Web MIDI. Open this page there in the app
<b>MIDIWeb Browser</b> or <b>Web MIDI Browser</b>
(App Store), connect the SP-404 via USB-C.
</div>
</div>
</div>
</div>
<div id="snaps" class="overlay">
<div id="snaps-panel">
<div id="snaps-head">
<h2>SNAPSHOTS</h2>
<button id="snaps-close" class="setup-btn">Close</button>
</div>
<div id="snaps-body">
<div id="sync-status" class="mono">Sync: …</div>
<div>
<h4>Current state (what gets saved)</h4>
<div id="snap-current" class="display mono"></div>
</div>
<div class="snap-grid" id="snap-grid"></div>
<p class="pick-note">Tap loads the slot onto all 5 buses (empty slot: saves).
Hold saves into the slot. After saving, type the name right in the slot.</p>
<div>
<h4>Export / Import (JSON)</h4>
<textarea id="exchange" spellcheck="false" placeholder="Export writes JSON here for copying – import reads pasted JSON."></textarea>
<div class="setup-row">
<button id="exp-btn" class="setup-btn">Export</button>
<button id="imp-btn" class="setup-btn">Import</button>
</div>
</div>
</div>
</div>
</div>
<div id="padpick" class="overlay">
<div id="padpick-panel">
<div id="padpick-head">
<h2 id="padpick-title">ASSIGN PAD</h2>
<button id="padpick-close" class="setup-btn">Close</button>
</div>
<div id="padpick-body">
<h4>Bank</h4>
<div class="setup-row" id="padpick-bank"></div>
<h4>Pad</h4>
<div class="setup-row" id="padpick-pad"></div>
<div class="setup-row"><button id="padpick-none" class="setup-btn">Clear</button></div>
</div>
</div>
</div>
<div id="xypick" class="overlay">
<div id="xypick-panel">
<div id="xypick-head">
<h2 id="xypick-title">X AXIS</h2>
<button id="xypick-close" class="setup-btn">Close</button>
</div>
<div id="xypick-body">
<h4>Bus</h4>
<div class="setup-row" id="xypick-bus"></div>
<h4>Control</h4>
<div class="setup-row" id="xypick-slot"></div>
<div class="setup-row"><button id="xypick-none" class="setup-btn">No assignment</button></div>
</div>
</div>
</div>
<div id="help" class="overlay">
<div id="help-panel">
<div id="help-head">
<h2>HANDBUCH</h2>
<button id="help-close" class="setup-btn">Close</button>
</div>
<div id="help-body">
<h3>Connection</h3>
<p>Connect the SP-404 MkII via USB-C, then Setup > "Connect to SP-404".
On desktop use Chrome or Edge; on iPhone/iPad use the <b>MIDIWeb Browser</b> app.
FX control works in MIDI mode A and B; patterns need mode B + "PC Rx" ON.
If the app seems outdated, load the URL with <b>?v=99</b> (cache); the build number is shown in Setup.</p>
<h3>Status bar and tabs</h3>
<p>Connection dot (tap = Setup), TX blinker, BPM on incoming clock,
Overview/Focus, XY, <b>ALL OFF</b> (all buses off + remembered; a second tap restores),
Snap, Setup. Tabs: BUS 1–4, IN, PLAY, PTN – the LEDs show active effects.</p>
<h3>Fader gestures (Focus)</h3>
<p>Relative drag – the first touch never jumps. <b>Fine-tune:</b> while dragging,
pull sideways (finer from 60 px, very fine from 120 px). <b>Double tap</b> = default.
Tap the value window = ±1 stepper. Desktop: mouse wheel ±1, Shift ±10.
<b>EFX pad:</b> tap = on/off, <b>hold = momentary</b>.
‹/› step through favorites. <b>RND</b> randomizes (sparing LEVEL/SEND/GAIN),
then acts as <b>UNDO</b> for 6 s.</p>
<h3>Effects</h3>
<p>Tap the effect name to open the picker: Recent, Favorites (star via hold),
categories. The bus types have different sets (Roland's spec) –
Sync Delay & co. only on BUS 3/4, voice effects only on INPUT.
<b>Direct FX:</b> mirror in Setup what sits on the device's DFX 1–5 –
the faders then show real parameter names. The app remembers values per effect
and sends everything to the device on each switch.</p>
<h3>Snapshots (Snap)</h3>
<p>8 slots for all 5 buses. <b>Tap loads</b> (empty: saves),
<b>hold saves</b> with inline naming, ✕ deletes. Export/import as JSON –
also for moving snapshots between devices.</p>
<h3>XY pad and LFOs</h3>
<p>Assign both axes at the top; position = value. <b>MOMENTARY</b> springs back on release.
Four LFO slots (chips 1–4): target, wave (SIN/TRI/SQR/SAW/<b>RND</b> = drift),
rate in note values, depth. Time source: <b>CLK</b> (MIDI clock) or <b>TAP</b>
(tap the beat). A finger on the target fader pauses and re-centers;
switching off parks at the center.</p>
<h3>PLAY</h3>
<p><b>KEYS:</b> keyboard – sample chromatic (CH 16, C2–C4) or
vocoder (CH 11) with pitch-bend strip. <b>SCALE:</b> 4×4 grid with only
in-scale notes; ISO = Move layout (rows a fourth apart), LIN = continuous;
roots highlighted. <b>PADS:</b> pad board laid out like the device
(pad 1 top left), banks A–J, ★ = custom layout (hold to assign);
PAD-CH must match the device setting "Pad MIDI Channels".</p>
<h3>PTN: patterns, autopilot, looper</h3>
<p>Pick a bank, tap a pattern (mode B + PC Rx ON; highlighted = last sent).
The <b>autopilot</b> wanders quantized every 2/4/8 bars, optionally within the bank.
The <b>looper panel</b> remote-controls the device's looper mode (REC, OVERDUB, DEL,
UNDO/REDO, STOP ALL, BPM).</p>
<h3>Tempo / Ableton Link</h3>
<p>BPM reads MIDI clock from any port (AUM, Ableton, a bridge). Link route:
the Link source sends clock to the SP-404 (UTILITY > SYSTEM > MIDI: "MIDI Sync")
and to this computer – everything runs in sync. LFOs/autopilot use the clock, else tap tempo.</p>
<h3>Keyboard (desktop)</h3>
<p>1–5 = bus · Space = EFX · O = overview · X = XY · Esc = close.</p>
<h3>Tips and limits</h3>
<p>No SysEx: the app cannot see effect changes made on the device (encoders do arrive) –
switch effects from the app. <b>BUS 3/4 silent?</b> Device-side bypass: toggle the EFX pad
off/on once (the app does this automatically on effect switches). The app never sends
on load – align via "Send state to device" or the first gesture.</p>
<h3>About</h3>
<p>404 Busdriver is an unofficial open-source project (MIT license) and is not
affiliated with or endorsed by Roland Corporation. "SP-404" is a trademark of
Roland Corporation. Effect data derived from the public SP-404MK2 reference manual.</p>
</div>
</div>
</div>
<div id="nomidi">
<div class="inner">
<h1>404 Busdriver</h1>
<p><b>This browser cannot do Web MIDI.</b></p>
<p>On desktop, use <b>Chrome</b> or <b>Edge</b>.</p>
<p>On iPhone/iPad: install <b>MIDIWeb Browser</b> or <b>Web MIDI Browser</b>
from the App Store and open this address there.
Connect the SP-404 MkII via USB-C.</p>
<p>Device MIDI mode: <b>A and B</b> both work for
FX control ([SHIFT] + [PAD 12] > SYSTEM > MIDI).</p>
<div class="setup-row"><button id="demo-btn" class="setup-btn">View the UI anyway (demo mode)</button></div>
</div>
</div>
<div id="banner"></div>
<script>
// Generated from Roland SP-404MK2 reference manual v5 (effect pages).
// Param order = hardware knobs Ctrl 1-6 = CC 16/17/18/80/81/82.
const EFFECTS={
"Back Spin":{c:"weird",p:[
{"n":"LENGTH","t":"e","v":["1/1","1/2","1/4","1/8","1/16"],"d":0},
{"n":"SPEED","t":"c","a":0,"b":100,"d":50},
{"n":"BACK SW","t":"b","d":0},
]},
"DJFX Delay":{c:"delayverb",p:[
{"n":"LENGTH","t":"c","a":0.23,"b":0.012,"d":0.12,"u":"sec"},
{"n":"TIME","t":"c","a":0,"b":100,"d":40,"sv":["1/32","1/16T","1/32D","1/16","1/8T","1/16D","1/8","1/4T","1/8D","1/4","1/2T","1/4D","1/2","1/1T","1/2D","1/1"],"sb":5},
{"n":"LOOP SW","t":"b","d":0},
{"n":"FEEDBACK","t":"c","a":0,"b":99,"d":30},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
{"n":"SYNC","t":"b","d":0},
]},
"Auto Pitch":{c:"voice",p:[
{"n":"PITCH","t":"c","a":-100,"b":100,"d":0},
{"n":"FORMANT","t":"c","a":-100,"b":100,"d":0},
{"n":"BALANCE","t":"bal","d":50},
{"n":"AT PITCH","t":"c","a":0,"b":100,"d":80},
{"n":"KEY","t":"e","v":["CHROMA","A","Bb","B","C","Db","D","Eb","E","F","Gb","G","Ab"],"d":0},
{"n":"ROBOT","t":"b","d":0},
]},
"Vocoder":{c:"voice",p:[
{"n":"NOTE","t":"e","v":["-17","-16","-15","-14","-13","-12","-11","-10","-9","-8","-7","-6","-5","-4","-3","-2","-1","+1","+2","+3","+4","+5","+6","+7","+8","+9","+10","+11","+12","+13","+14","+15","+16","+17","+18"],"d":17},
{"n":"FORMANT","t":"c","a":-100,"b":100,"d":0},
{"n":"TONE","t":"c","a":-100,"b":100,"d":0},
{"n":"SCALE","t":"e","v":["C Maj","Db Maj","D Maj","Eb Maj","E Maj","F Maj","Gb Maj","G Maj","Ab Maj","A Maj","Bb Maj","B Maj","C min","Db min","D min","Eb min","E min","F min","Gb min","G min","Ab min","A min","Bb min","B min"],"d":0},
{"n":"CHORD","t":"e","v":["Root","P5","Oct","UpDn","UpDnP5","3rd","5thUp","5thDn","7thUp","7thDn"],"d":0},
{"n":"BALANCE","t":"bal","d":50},
]},
"Harmony":{c:"voice",p:[
{"n":"PITCH","t":"c","a":-100,"b":100,"d":0},
{"n":"FORMANT","t":"c","a":-100,"b":100,"d":0},
{"n":"BALANCE","t":"bal","d":50},
{"n":"AT PITCH","t":"c","a":0,"b":100,"d":80},
{"n":"KEY","t":"e","v":["CHROMA","A","Bb","B","C","Db","D","Eb","E","F","Gb","G","Ab"],"d":0},
{"n":"HARMONY","t":"e","v":["Root","P5","Oct","UpDn","UpDnP5","3rd","5thUp","5thDn","7thUp","7thDn"],"d":0},
]},
"Gt Amp Sim":{c:"drive",p:[
{"n":"AMP TYPE","t":"e","v":["JC","TWIN","BG","MATCH","MS","SLDN"],"d":0},
{"n":"DRIVE","t":"c","a":0,"b":100,"d":30},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
{"n":"BASS","t":"c","a":-100,"b":100,"d":0},
{"n":"MIDDLE","t":"c","a":-100,"b":100,"d":0},
{"n":"TREBLE","t":"c","a":-100,"b":100,"d":0},
]},
"Crusher":{c:"lofi",p:[
{"n":"FILTER","t":"c","a":331,"b":15392,"d":8000,"u":"Hz"},
{"n":"RATE","t":"c","a":0,"b":100,"d":50},
{"n":"BALANCE","t":"bal","d":50},
]},
"Overdrive":{c:"drive",p:[
{"n":"DRIVE","t":"c","a":0,"b":100,"d":30},
{"n":"TONE","t":"c","a":-100,"b":100,"d":0},
{"n":"BALANCE","t":"bal","d":50},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
]},
"Distortion":{c:"drive",p:[
{"n":"DRIVE","t":"c","a":0,"b":100,"d":30},
{"n":"TONE","t":"c","a":-100,"b":100,"d":0},
{"n":"BALANCE","t":"bal","d":50},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
]},
"Equalizer":{c:"drive",p:[
{"n":"LOW GAIN","t":"c","a":-15,"b":15,"d":0,"u":"dB"},
{"n":"MID GAIN","t":"c","a":-15,"b":15,"d":0,"u":"dB"},
{"n":"HIGH GAIN","t":"c","a":-15,"b":15,"d":0,"u":"dB"},
{"n":"LOW FREQ","t":"e","v":["20","25","31","40","50","63","80","100","125","160","200","250","315","400"],"d":0},
{"n":"MID FREQ","t":"e","v":["200","250","315","400","500","630","800","1000","1250","1600","2000","2500","3150","4000","5000","6300","8000"],"d":0},
{"n":"HIGH FREQ","t":"e","v":["2000","2500","3150","4000","5000","6300","8000","10000","12500","16000"],"d":0},
]},
"Compressor":{c:"drive",p:[
{"n":"SUSTAIN","t":"c","a":0,"b":100,"d":50},
{"n":"ATTACK","t":"c","a":0,"b":100,"d":30},
{"n":"RATIO","t":"c","a":0,"b":100,"d":50},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
]},
"SX Reverb":{c:"delayverb",p:[
{"n":"TIME","t":"c","a":0,"b":100,"d":40},
{"n":"TONE","t":"c","a":-100,"b":100,"d":0},
{"n":"BALANCE","t":"bal","d":50},
]},
"SX Delay":{c:"delayverb",p:[
{"n":"TIME","t":"e","v":["1/32","1/16T","1/32D","1/16","1/8T","1/16D","1/8","1/4T","1/8D","1/4","1/2T","1/4D","1/2","1/1T","1/2D","1/1"],"d":0},
{"n":"FEEDBACK","t":"c","a":0,"b":99,"d":30,"u":"%"},
{"n":"BALANCE","t":"bal","d":50},
]},
"Cloud Delay":{c:"delayverb",p:[
{"n":"WINDOW","t":"c","a":0,"b":100,"d":50},
{"n":"PITCH","t":"c","a":-12,"b":12,"d":0},
{"n":"BALANCE","t":"bal","d":50},
{"n":"FEEDBACK","t":"c","a":-100,"b":100,"d":30},
{"n":"CLOUDY","t":"c","a":0,"b":100,"d":50},
{"n":"LOFI","t":"b","d":0},
]},
"WrmSaturator":{c:"drive",p:[
{"n":"DRIVE","t":"c","a":0,"b":48,"d":30,"u":"dB"},
{"n":"Eq LOW","t":"c","a":-24,"b":24,"d":0,"u":"dB"},
{"n":"Eq HIGH","t":"c","a":-24,"b":24,"d":0,"u":"dB"},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
]},
"303 VinylSim":{c:"lofi",p:[
{"n":"COMP","t":"c","a":0,"b":100,"d":30},
{"n":"NOISE","t":"c","a":0,"b":100,"d":20},
{"n":"WOW FLUT","t":"c","a":0,"b":100,"d":30},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
]},
"404 VinylSim":{c:"lofi",p:[
{"n":"FREQUENCY","t":"c","a":0,"b":100,"d":50},
{"n":"NOISE","t":"c","a":0,"b":100,"d":20},
{"n":"WOW FLUT","t":"c","a":0,"b":100,"d":30},
]},
"Cassette Sim":{c:"lofi",p:[
{"n":"TONE","t":"c","a":0,"b":100,"d":0},
{"n":"HISS","t":"c","a":0,"b":100,"d":20},
{"n":"AGE","t":"c","a":0,"b":60,"d":10,"u":"J"},
{"n":"DRIVE","t":"c","a":0,"b":100,"d":30},
{"n":"WOW FLUT","t":"c","a":0,"b":100,"d":30},
{"n":"Catch","t":"c","a":0,"b":100,"d":0},
]},
"Lo-fi":{c:"lofi",p:[
{"n":"PRE FILT","t":"e","v":["1","2","3","4","5","6"],"d":0},
{"n":"LOFI TYPE","t":"e","v":["1","2","3","4","5","6","7","8","9"],"d":0},
{"n":"TONE","t":"c","a":-100,"b":100,"d":0},
{"n":"CUTOFF","t":"e","v":["200","250","315","400","500","630","800","1000","1250","1600","2000","2500","3150","4000","5000","6300","8000"],"d":0},
{"n":"BALANCE","t":"bal","d":50},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
]},
"Reverb":{c:"delayverb",p:[
{"n":"TYPE","t":"e","v":["AMBI","ROOM","HALL1","HALL2"],"d":0},
{"n":"TIME","t":"c","a":0,"b":100,"d":40},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
{"n":"LOW CUT","t":"e","v":["FLAT","20","25","31","40","50","63","80","100","125","160","200","250","315","400","500","630","800"],"d":0},
{"n":"HIGH CUT","t":"e","v":["630","800","1000","1250","1600","2000","2500","3150","4000","5000","6300","8000","10000","12500","FLAT"],"d":14},
{"n":"PRE DELAY","t":"c","a":0,"b":100,"d":0,"u":"ms"},
]},
"Chorus":{c:"mod",p:[
{"n":"DEPTH","t":"c","a":0,"b":100,"d":40},
{"n":"RATE","t":"c","a":0.33,"b":2.3,"d":1.0,"u":"sec"},
{"n":"BALANCE","t":"bal","d":50},
{"n":"EQ LOW","t":"c","a":-15,"b":15,"d":0,"u":"dB"},
{"n":"EQ HIGH","t":"c","a":-15,"b":15,"d":0,"u":"dB"},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
]},
"JUNO Chorus":{c:"mod",p:[
{"n":"MODE","t":"e","v":["JUNO 1","JUNO 2","JUNO12","JX-1 1","JX-1 2"],"d":0},
{"n":"NOISE","t":"c","a":0,"b":100,"d":20},
{"n":"BALANCE","t":"bal","d":50},
]},
"Filter+Drive":{c:"filter",p:[
{"n":"CUTOFF","t":"c","a":20,"b":16000,"d":800,"u":"Hz"},
{"n":"RESONANCE","t":"c","a":0,"b":100,"d":20},
{"n":"DRIVE","t":"c","a":0,"b":100,"d":30},
{"n":"FLT TYPE","t":"e","v":["HPF","LPF"],"d":0},
{"n":"LOW FREQ","t":"c","a":20,"b":16000,"d":100,"u":"Hz"},
{"n":"LOW GAIN","t":"c","a":-24,"b":24,"d":0,"u":"dB"},
]},
"Resonator":{c:"weird",p:[
{"n":"ROOT","t":"nt","d":48},
{"n":"BRIGHT","t":"c","a":0,"b":100,"d":50},
{"n":"FEEDBACK","t":"c","a":0,"b":99,"d":30,"u":"%"},
{"n":"CHORD","t":"e","v":["Root","Oct","UpDn","P5","m3","m5","m7","m7oct","m0","m11","M3","M5","M7","M7oct","M9","M11"],"d":0},
{"n":"PANNING","t":"c","a":0,"b":100,"d":50},
{"n":"ENV MOD","t":"c","a":0,"b":100,"d":0},
]},
"Sync Delay":{c:"delayverb",p:[
{"n":"TIME","t":"e","v":["1/32","1/16T","1/32D","1/16","1/8T","1/16D","1/8","1/4T","1/8D","1/4","1/2T","1/4D","1/2","1/1T","1/2D","1/1"],"d":0},
{"n":"FEEDBACK","t":"c","a":0,"b":99,"d":30,"u":"%"},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
{"n":"L DAMP F","t":"e","v":["FLAT","80","100","125","160","200","250","315","400","500","630","800"],"d":0},
{"n":"H DAMP F","t":"e","v":["630","800","1000","1250","1600","2000","2500","3150","4000","5000","6300","8000","10000","12500","FLAT"],"d":14},
]},
"Isolator":{c:"filter",p:[
{"n":"LOW","t":"c","a":-42,"b":12,"d":0,"u":"dB","inf":1},
{"n":"MID","t":"c","a":-42,"b":12,"d":0,"u":"dB","inf":1},
{"n":"HIGH","t":"c","a":-42,"b":12,"d":0,"u":"dB","inf":1},
]},
"DJFX Looper":{c:"weird",p:[
{"n":"LENGTH","t":"c","a":0.23,"b":0.012,"d":0.12,"u":"sec"},
{"n":"SPEED","t":"c","a":-100,"b":100,"d":50},
{"n":"LOOP SW","t":"b","d":0},
]},
"Scatter":{c:"weird",p:[
{"n":"TYPE","t":"e","v":["1","2","3","4","5","6","7","8","9","10"],"d":0},
{"n":"DEPTH","t":"e","v":["10","20","30","40","50","60","70","80","90","100"],"d":0},
{"n":"SCATTER","t":"b","d":0},
{"n":"SPEED","t":"e","v":["SINGLE","DOUBLE"],"d":0},
]},
"Downer":{c:"lofi",p:[
{"n":"DEPTH","t":"c","a":0,"b":100,"d":40},
{"n":"RATE","t":"e","v":["2/1","1/1","1/2","1/4","1/8","1/16","1/32"],"d":0},
{"n":"FILTER","t":"c","a":0,"b":100,"d":50},
{"n":"PITCH","t":"b","d":0},
{"n":"RESONANCE","t":"c","a":0,"b":100,"d":20},
]},
"Ha-Dou":{c:"delayverb",p:[
{"n":"MOD DEPTH","t":"c","a":0,"b":100,"d":50},
{"n":"TIME","t":"c","a":0,"b":100,"d":40},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
{"n":"LOW CUT","t":"e","v":["FLAT","20","25","31","40","50","63","80","100","125","160","200","250","315","400","500","630","800"],"d":0},
{"n":"HIGH CUT","t":"e","v":["630","800","1000","1250","1600","2000","2500","3150","4000","5000","6300","8000","10000","12500","FLAT"],"d":14},
{"n":"PRE DELAY","t":"c","a":0,"b":100,"d":0,"u":"msec"},
]},
"Ko-Da-Ma":{c:"delayverb",p:[
{"n":"TIME","t":"e","v":["1/32","1/16T","1/32D","1/16","1/8T","1/16D","1/8","1/4T","1/8D","1/4","1/2T","1/4D","1/2","1/1T","1/2D","1/1"],"d":0},
{"n":"FEEDBACK","t":"c","a":0,"b":99,"d":30,"u":"%"},
{"n":"SEND","t":"c","a":0,"b":100,"d":80},
{"n":"L DAMP F","t":"e","v":["FLAT","80","100","125","160","200","250","315","400","500","630","800"],"d":0},
{"n":"H DAMP F","t":"e","v":["630","800","1000","1250","1600","2000","2500","3150","4000","5000","6300","8000","10000","12500","FLAT"],"d":14},
{"n":"MODE","t":"e","v":["SINGLE","PAN"],"d":0},
]},
"Zan-Zou":{c:"delayverb",p:[
{"n":"TIME","t":"c","a":0,"b":100,"d":40,"sv":["1/32","1/16T","1/32D","1/16","1/8T","1/16D","1/8","1/4T","1/8D","1/4","1/2T","1/4D","1/2","1/1T","1/2D","1/1"],"sb":5},
{"n":"FEEDBACK","t":"c","a":0,"b":99,"d":30},
{"n":"HF DAMP","t":"e","v":["200","250","315","400","500","630","800","1000","1250","1600","2000","2500","3150","4000","5000","6300","8000","OFF"],"d":17},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
{"n":"MODE","t":"e","v":["2TAP","3TAP","4TAP"],"d":0},
{"n":"SYNC","t":"b","d":0},
]},
"To-Gu-Ro":{c:"weird",p:[
{"n":"DEPTH","t":"c","a":0,"b":100,"d":40},
{"n":"RATE","t":"c","a":0,"b":100,"d":50,"sv":["2/1","1/1","1/2","1/4","1/8","1/16","1/32","1/64","1/128"],"sb":5},
{"n":"RESONANCE","t":"c","a":0,"b":100,"d":20},
{"n":"FLT MOD","t":"c","a":0,"b":100,"d":50},
{"n":"AMP MOD","t":"c","a":0,"b":100,"d":50},
{"n":"SYNC","t":"b","d":0},
]},
"SBF":{c:"filter",p:[
{"n":"INTERVAL","t":"c","a":0,"b":100,"d":50},
{"n":"WIDTH","t":"c","a":0,"b":100,"d":50},
{"n":"BALANCE","t":"bal","d":50},
{"n":"TYPE","t":"e","v":["SBF1","SBF2","SBF3","SBF4","SBF5","SBF6"],"d":0},
{"n":"GAIN","t":"c","a":-52.3,"b":10,"d":0,"u":"dB","inf":1},
]},
"Stopper":{c:"weird",p:[
{"n":"DEPTH","t":"c","a":0,"b":100,"d":40},
{"n":"RATE","t":"e","v":["4/1","2/1","1/1","1/2","1/4","1/8","1/16","1/32","1/64"],"d":0},
{"n":"RESONANCE","t":"c","a":0,"b":100,"d":20},
{"n":"FLT MOD","t":"c","a":0,"b":100,"d":50},
{"n":"AMP MOD","t":"c","a":0,"b":100,"d":50},
]},
"Tape Echo":{c:"delayverb",p:[
{"n":"TIME","t":"c","a":10,"b":800,"d":300,"u":"msec"},
{"n":"FEEDBACK","t":"c","a":0,"b":99,"d":30,"u":"%"},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
{"n":"MODE","t":"e","v":["S","M","L","S+M","S+L","M+L","S+M+L"],"d":0},
{"n":"W/F RATE","t":"c","a":0,"b":100,"d":30},
{"n":"W/F DEPTH","t":"c","a":0,"b":100,"d":30},
]},
"TimeCtrlDly":{c:"delayverb",p:[
{"n":"TIME","t":"c","a":0,"b":100,"d":40,"sv":["1/32","1/16T","1/32D","1/16","1/8T","1/16D","1/8","1/4T","1/8D","1/4","1/2T","1/4D","1/2","1/1T","1/2D","1/1"],"sb":5},
{"n":"FEEDBACK","t":"c","a":0,"b":99,"d":30,"u":"%"},
{"n":"LEVEL","t":"c","a":0,"b":100,"d":80},
{"n":"L DAMP F","t":"e","v":["FLAT","80","100","125","160","200","250","315","400","500","630","800"],"d":0},
{"n":"H DAMP F","t":"e","v":["630","800","1000","1250","1600","2000","2500","3150","4000","5000","6300","8000","10000","12500","FLAT"],"d":14},
{"n":"SYNC","t":"b","d":0},
]},
"Super Filter":{c:"filter",p:[
{"n":"CUTOFF","t":"c","a":0,"b":100,"d":60},
{"n":"RESONANCE","t":"c","a":0,"b":100,"d":20},
{"n":"FLT TYPE","t":"e","v":["LPF","BPF","HPF"],"d":0},
{"n":"DEPTH","t":"c","a":0,"b":100,"d":40},
{"n":"RATE","t":"c","a":0,"b":100,"d":50,"sv":["2/1","1/1D","2/1T","1/1","1/2D","1/1T","1/2","1/4D","1/2T","1/4","1/8D","1/4T","1/8","1/16D","1/8T","1/16","1/32D","1/16T","1/32","1/32T","1/64","1/64T"],"sb":5},
{"n":"SYNC","t":"b","d":0},
]},
"Flanger":{c:"mod",p:[
{"n":"DEPTH","t":"c","a":0,"b":100,"d":40},
{"n":"RATE","t":"c","a":0,"b":100,"d":50,"sv":{"hi":4.0,"lo":0.016,"u":"bar"},"sb":5},
{"n":"MANUAL","t":"c","a":0,"b":100,"d":50},
{"n":"RESONANCE","t":"c","a":0,"b":100,"d":20},
{"n":"BALANCE","t":"bal","d":50},
{"n":"SYNC","t":"b","d":0},
]},
"Phaser":{c:"mod",p:[
{"n":"DEPTH","t":"c","a":0,"b":100,"d":40},
{"n":"RATE","t":"c","a":0,"b":100,"d":50,"sv":{"hi":4.0,"lo":0.016,"u":"bar"},"sb":5},
{"n":"MANUAL","t":"c","a":0,"b":100,"d":50},
{"n":"RESONANCE","t":"c","a":0,"b":100,"d":20},
{"n":"BALANCE","t":"bal","d":50},