Commit 54af4a8
committed
feat(studio): two faces — a module opens on one knob, the rest one click away
Rule 1 of `plans/audio-fx-ux/README.md`. A module opens on its name, a
line saying what it is for, and the single control that carries it; every
other parameter is behind a Details disclosure. Nothing is hidden — it is
ordered. `EFFECT_COPY.primary` names that control and `primaryEnds` says
what its two ends sound like, which is the question an author actually
has: a number tells them where the knob is, not which way to move it.
The DSP name moves onto the disclosure itself, so it is read at the
moment the author asks what this really is and never before.
Ten of the fifteen effects get this. The other five — compressor, gate,
saturate, reverb, bitcrush — name their primary as "strength", meaning
they want a single DERIVED control over several parameters, which is
`PROFILES`, whose figures are proposed rather than measured and which has
not shipped. They open on all their controls until it does. That is the
honest state: inventing one knob for them now would be a knob that lies
about what it sets. The lookup needs no special case for it either —
"strength" names no parameter today, and the day it does name one, this
starts using it without being told.
Worth naming: `peaking`'s primary is "how much", and that only became
coherent in the commit before this one. Boosting an unspecified frequency
means nothing, so one knob was a lie while the module was generic; now
that picking the job is what picks the range, it is the whole truth.
The disclosure is local state, keyed by node like the row itself, so it
stays with its effect across a reorder — and an effect arriving in the
open slot arrives closed, like any other.
Tests that address a non-primary knob now open Details first, which is
also the gesture a user makes. Falsified: expanding Details unconditionally
fails the two-faces test, and dropping the "is it a real parameter" guard
fails three.
studio 3688 passing, 18 todo.1 parent d10375c commit 54af4a8
3 files changed
Lines changed: 164 additions & 24 deletions
File tree
- packages/studio/src/components/editor
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
67 | 78 | | |
68 | 79 | | |
69 | 80 | | |
| |||
111 | 122 | | |
112 | 123 | | |
113 | 124 | | |
| 125 | + | |
| 126 | + | |
114 | 127 | | |
| 128 | + | |
| 129 | + | |
115 | 130 | | |
116 | 131 | | |
117 | 132 | | |
| |||
139 | 154 | | |
140 | 155 | | |
141 | 156 | | |
| 157 | + | |
142 | 158 | | |
143 | 159 | | |
144 | 160 | | |
| |||
164 | 180 | | |
165 | 181 | | |
166 | 182 | | |
| 183 | + | |
167 | 184 | | |
168 | 185 | | |
169 | 186 | | |
| |||
Lines changed: 97 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
25 | 48 | | |
26 | 49 | | |
27 | 50 | | |
| |||
250 | 273 | | |
251 | 274 | | |
252 | 275 | | |
253 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
254 | 287 | | |
255 | 288 | | |
256 | 289 | | |
| |||
285 | 318 | | |
286 | 319 | | |
287 | 320 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
| 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 | + | |
306 | 383 | | |
307 | 384 | | |
308 | 385 | | |
| |||
Lines changed: 50 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
105 | 116 | | |
106 | 117 | | |
107 | 118 | | |
| |||
284 | 295 | | |
285 | 296 | | |
286 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
287 | 301 | | |
288 | 302 | | |
289 | 303 | | |
| |||
295 | 309 | | |
296 | 310 | | |
297 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
298 | 315 | | |
299 | 316 | | |
300 | 317 | | |
| |||
331 | 348 | | |
332 | 349 | | |
333 | 350 | | |
334 | | - | |
335 | | - | |
336 | | - | |
| 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 | + | |
337 | 376 | | |
338 | 377 | | |
339 | 378 | | |
| |||
654 | 693 | | |
655 | 694 | | |
656 | 695 | | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
657 | 699 | | |
658 | 700 | | |
659 | 701 | | |
| |||
705 | 747 | | |
706 | 748 | | |
707 | 749 | | |
| 750 | + | |
708 | 751 | | |
709 | 752 | | |
710 | 753 | | |
| |||
747 | 790 | | |
748 | 791 | | |
749 | 792 | | |
| 793 | + | |
750 | 794 | | |
751 | 795 | | |
752 | 796 | | |
| |||
1024 | 1068 | | |
1025 | 1069 | | |
1026 | 1070 | | |
1027 | | - | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1028 | 1074 | | |
1029 | 1075 | | |
1030 | 1076 | | |
| |||
0 commit comments