edith
Clone
https://git.tahinli.com/Tahinli/edith.git
0 watching0 forksRust18.3 MiB7f487c1Tahinli3 months ago659 commits
| 1 | //! The timeline's arithmetic: takes, trims, snapping and envelopes. |
| 2 | |
| 3 | use crate::*; |
| 4 | |
| 5 | /// Whether this clip is a whole take, i.e. whether deleting it may close the |
| 6 | /// hole under it: a take is what the first pair of lanes carries between them, |
| 7 | /// `V1`'s picture and the sound grouped with it, and dropping one moves the |
| 8 | /// frames after it on every lane. A caption a hand grouped with the clip |
| 9 | /// counts as its partner too: the group is what pairs, not the lane's kind -- |
| 10 | /// and a group answers `true` from *whichever* member's lane the question is |
| 11 | /// asked from, added row or not, because a grouped delete |
| 12 | /// ([`PlaybackSession::delete_clip`] -> `Project::delete_members`) closes |
| 13 | /// every member's own lane by its own span already, not just the first pair's. |
| 14 | /// |
| 15 | /// Everything else is a half or a layer, and is *lifted* instead: a half whose |
| 16 | /// picture was lifted (what a lift leaves behind) has no take to ripple, and an |
| 17 | /// *ungrouped* clip on a further lane is laid over the timeline rather than |
| 18 | /// part of it -- closing a hole under it would drag the take beneath out of |
| 19 | /// step with it. |
| 20 | pub |
| 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 | /// The clip a Group would pair this one with: the first clip on another track, |
| 63 | /// in the order the lanes are drawn, covering exactly the same frames and not in |
| 64 | /// this clip's group already. Exactly the same frames because that is all a |
| 65 | /// group id can mean (engine `links_are_consistent`), which is what leaves |
| 66 | /// nothing for a second click to choose. `None` when no track has one, and the |
| 67 | /// notice says so. |
| 68 | pub |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | /// What the timeline has picked: every clip and caption a hand ctrl-clicked |
| 91 | /// into the selection, in click order and with no two the same. The last of |
| 92 | /// them is the [`anchor`](Selection::anchor) -- the one every action that is |
| 93 | /// about *one* thing (delete, lift, copy, the equalizer) acts on -- and the |
| 94 | /// whole list is what a manual Group names to the engine. |
| 95 | /// |
| 96 | /// Indices move under every edit, exactly as the single mark this replaces |
| 97 | /// did, so every edit that renumbers a lane clears the picks it cannot keep |
| 98 | /// honest. Pure and engine-free, so a test can build one without a window. |
| 99 | |
| 100 | pub |
| 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 | /// The rate a caption's box plays its window at, read off the placement |
| 166 | /// itself: how long the words are, against how much timeline they cross. A |
| 167 | /// clip's badge comes from its own `speed`; a caption has none, so its box |
| 168 | /// derives one -- and keeps it even after the group that re-timed it comes |
| 169 | /// apart, because the proportion is the placement's own. `None` at unity: |
| 170 | /// placement rounding leaves an odd-width window a frame or so off real time, |
| 171 | /// and a badge is for a box that was *re-timed*, not one that rounds. |
| 172 | pub |
| 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 | /// The scrollbar's thumb over a track `w` px wide: `(x, width)` of the box |
| 199 | /// standing for the visible share of a timeline `duration` long whose window |
| 200 | /// starts at `start` and spans `span`. Full width when nothing is off-screen |
| 201 | /// (there is nothing to scroll and the strip says so by filling), never |
| 202 | /// narrower than [`SCROLL_THUMB_MIN`] when there is (a thumb a pixel wide is a |
| 203 | /// thumb no hand can hold), and never off the track either way -- the clamp, |
| 204 | /// not the caller, owns that, because a drag's samples arrive raw. |
| 205 | pub |
| 206 | |
| 207 | |
| 208 | |
| 209 | |
| 210 | |
| 211 | |
| 212 | |
| 213 | |
| 214 | |
| 215 | |
| 216 | |
| 217 | |
| 218 | |
| 219 | |
| 220 | /// The lane stack's thumb over a track `h` px tall: `(y, height)` of the box |
| 221 | /// standing for the visible share of a stack `content` px tall in a box |
| 222 | /// `box_h` px tall, taken down by `scrolled` px -- the time axis's |
| 223 | /// [`scroll_thumb`] turned through a right angle, and on the same terms: |
| 224 | /// full track when the whole stack is on screen, never shorter than |
| 225 | /// [`SCROLL_THUMB_MIN`] when it is not, and never off the track either way. |
| 226 | pub |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | |
| 241 | |
| 242 | |
| 243 | |
| 244 | |
| 245 | /// Whether a click marks this box: any pick on it always, and any box sharing |
| 246 | /// a group id with a pick -- the clip the anchor was ctrl-clicked beside, and |
| 247 | /// the caption a hand pinned to a clip. A group whose only member is picked |
| 248 | /// marks that member alone, which is what makes a detached half separately |
| 249 | /// deletable. |
| 250 | /// |
| 251 | /// `pick_links` are the group ids of the picks themselves, read by the caller |
| 252 | /// off the session in the same order as `picks` -- the one fact this pure |
| 253 | /// question cannot know. |
| 254 | pub |
| 255 | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 | |
| 263 | |
| 264 | /// Whether a clip is wide enough to be worth naming. |
| 265 | pub |
| 266 | |
| 267 | |
| 268 | |
| 269 | /// The clip a trim is *showing*, worked out the way `Project::trim` will write |
| 270 | /// it: the timeline room the edge leaves is turned into source frames by the one |
| 271 | /// conversion that exists for it ([`Speed::fit`]), and the box is drawn from |
| 272 | /// that. The preview and the commit are then the same arithmetic -- a box let go |
| 273 | /// of stays where the hand left it at every rate. Assigning the timeline count |
| 274 | /// straight to the source field, as this used to, drew a speeded clip's tail |
| 275 | /// moving at the wrong rate (it snapped on release) and drew a *head* trim |
| 276 | /// moving the clip's other edge, since the length it implied was not the length |
| 277 | /// the release would commit. |
| 278 | /// |
| 279 | /// A still grows forward from source frame 0 instead: every frame of it is the |
| 280 | /// same picture, so there is no earlier one for an in-point to walk back to. |
| 281 | /// |
| 282 | /// Room too narrow to hold one source frame is the edit the engine refuses, and |
| 283 | /// the box is drawn unchanged rather than as something that will not be |
| 284 | /// committed. |
| 285 | pub |
| 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 | /// The cut odometer's own arithmetic (DESIGN.md §6): where `,` `.` land from |
| 335 | /// `idx`, `stride` cuts forward or back among `len` of them. Clamped rather |
| 336 | /// than wrapping -- an odometer that wraps at the last cut reads as landing |
| 337 | /// back at the first, which is not "next" -- so a walk already at either end |
| 338 | /// simply holds there, the way [`Player::step`]'s own ends do. |
| 339 | pub |
| 340 | |
| 341 | |
| 342 | |
| 343 | |
| 344 | |
| 345 | |
| 346 | |
| 347 | |
| 348 | /// The no-aim trim's own arithmetic (DESIGN.md §6): `current` moved `dir` |
| 349 | /// frames (usually ±1, a held key's ratchet) and clamped into the room |
| 350 | /// [`engine::PlaybackSession::trim_room`] already answered -- the same wall a |
| 351 | /// pointer drag is clamped to, so a keyboard trim can never draw an edge the |
| 352 | /// engine would refuse. |
| 353 | pub |
| 354 | |
| 355 | |
| 356 | |
| 357 | /// Whether a loop-trim window ([`ActionId::LoopTrim`]) has been played out to |
| 358 | /// its far edge and wants restarting at its near one: pure so the pump's own |
| 359 | /// tick ([`Player::pump`]) is one `if` over a fact this decides. `None` -- |
| 360 | /// loop-trim off -- never restarts anything. |
| 361 | pub |
| 362 | |
| 363 | |
| 364 | |
| 365 | /// Where a play resumes from on crossing into [`Transport::Ended`] |
| 366 | /// (`Player::pump`): the loop-trim window's own near edge when one is armed, |
| 367 | /// *even when its far edge is the film's own last frame* -- half of all cuts |
| 368 | /// in a two-clip film sit on the final clip (DESIGN.md §6), so that coincidence |
| 369 | /// is not an edge case and must not read as "reached the end, stop". Falls |
| 370 | /// back to the whole-timeline loop's top, and `None` -- neither armed -- |
| 371 | /// restarts nothing, which is the halt this crossing otherwise means. |
| 372 | pub |
| 373 | |
| 374 | |
| 375 | |
| 376 | |
| 377 | |
| 378 | |
| 379 | /// How many timeline frames a stretch of a subtitle track is worth: the one |
| 380 | /// conversion between the two clocks a caption has -- microseconds for its |
| 381 | /// words, frames for where it sits -- and the app-side twin of the engine's own |
| 382 | /// (`Project::trim_sub_room`). Never zero: a placement of no frames is the one |
| 383 | /// [`Project::place_sub`] refuses as empty, and a track shorter than a frame is |
| 384 | /// still a caption somebody dragged. |
| 385 | /// A fade handle's drag, turned into timeline frames: `dx` pixels at `pps` |
| 386 | /// pixels per second, at `fps` frames per second -- the one conversion a |
| 387 | /// fade-in or fade-out handle needs, and the app-side twin of every other |
| 388 | /// pixel-to-frame door on this bed ([`Scale::time_at`]). Zero for a |
| 389 | /// degenerate scale (nothing drawn to drag against), never negative on its |
| 390 | /// own -- the caller adds this to the fade's length before clamping to the |
| 391 | /// clip's own room, so a delta can still shrink a fade by coming back signed. |
| 392 | pub |
| 393 | |
| 394 | |
| 395 | |
| 396 | |
| 397 | |
| 398 | |
| 399 | pub |
| 400 | |
| 401 | |
| 402 | |
| 403 | |
| 404 | |
| 405 | |
| 406 | |
| 407 | |
| 408 | /// The *placement* a trim is showing, the same way for a caption: |
| 409 | /// [`Project::trim_sub`] moves the head or the tail and the window follows it, |
| 410 | /// so the box on screen is the frames alone -- the words it will keep are the |
| 411 | /// engine's arithmetic at the release, and nothing here draws them. |
| 412 | /// |
| 413 | /// An edge that has not moved draws the placement it pressed, and one dragged |
| 414 | /// past its other end keeps the one frame the engine's own walls always leave. |
| 415 | pub |
| 416 | |
| 417 | |
| 418 | |
| 419 | |
| 420 | |
| 421 | |
| 422 | |
| 423 | |
| 424 | |
| 425 | |
| 426 | |
| 427 | |
| 428 | |
| 429 | |
| 430 | |
| 431 | |
| 432 | /// Which index on its own lane a dragged clip is at *now*: the one it was picked |
| 433 | /// up at while nothing has moved, and wherever the clip itself has slid to when |
| 434 | /// an edit during the drag rippled the lane's indices -- a delete, an undo or a |
| 435 | /// paste from a stroke, none of which gpui's frozen drag payload hears about. |
| 436 | /// `None` when the clip is gone altogether, and then the drop is not an edit at |
| 437 | /// all: moving whatever slid into its place is the one thing the hand did not |
| 438 | /// ask for. A lane's clips are disjoint and sorted, so at most one of them can |
| 439 | /// be the clip that was picked up. Generic over what a lane holds, because a |
| 440 | /// [`SubClip`] is dragged under exactly the same rule. |
| 441 | pub |
| 442 | |
| 443 | |
| 444 | |
| 445 | |
| 446 | |
| 447 | |
| 448 | /// Which index a lane's mark is on after that lane was renumbered: the caption |
| 449 | /// that starts at `start`, and `None` when it is not there any more. |
| 450 | /// |
| 451 | /// The mark on a caption is an index like a clip's ([`Player::selected`]), and a |
| 452 | /// subtitle lane both *inserts in start order* ([`engine::Project::place_sub`]) |
| 453 | /// and removes, so any placement or lift renumbers every caption after it and an |
| 454 | /// index left as it was names a neighbour -- the caption the next Delete would |
| 455 | /// take. So the mark is read off the caption's start frame before such an edit |
| 456 | /// and found again by it after: captions on a lane are disjoint and in order, so |
| 457 | /// a start frame names exactly one of them and is the identity an index is not. |
| 458 | pub |
| 459 | |
| 460 | |
| 461 | |
| 462 | /// The part of a clip's box that is on the bed, in the box's own pixels: |
| 463 | /// `(left, width)` of its intersection with the visible strip. Everything drawn |
| 464 | /// *inside* a box -- its waveform, its name, its speed badge -- is placed in |
| 465 | /// here rather than at the box's own edges, which at a deep zoom sit thousands |
| 466 | /// of pixels off either side of the screen: a label out there is a label nobody |
| 467 | /// can read, and a waveform out there is a path with a point per two pixels of a |
| 468 | /// width nobody can see. A bed that has not been measured yet answers with the |
| 469 | /// whole box, which is what was drawn before there was a bed to clip to. |
| 470 | pub |
| 471 | |
| 472 | |
| 473 | |
| 474 | |
| 475 | |
| 476 | |
| 477 | |
| 478 | |
| 479 | /// Scales an envelope to its own loudest sample, so a quietly mastered source |
| 480 | /// still draws as a shape. The fixtures peak around an eighth of full scale, and |
| 481 | /// an eighth of a 30 px lane is a flat line -- which says "silent" about a file |
| 482 | /// that is not. |
| 483 | pub |
| 484 | |
| 485 | |
| 486 | |
| 487 | |
| 488 | |
| 489 | |
| 490 | |
| 491 | |
| 492 | |
| 493 | |
| 494 | /// The min/max envelope of `peaks` over the source seconds `from..to`, as |
| 495 | /// `(x, top, bottom)` columns of a `w` x `h` box. Every point is inside that box |
| 496 | /// -- a clip's waveform cannot paint over its neighbour -- and every column is |
| 497 | /// at least a pixel tall, so silence reads as a line through the middle rather |
| 498 | /// than as a polygon with no area. |
| 499 | pub |
| 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 | /// Records its parent's laid-out box: gpui hands a mouse listener the window |
| 528 | /// position only, and the ruler sits behind the panel's padding. Paints |
| 529 | /// nothing and takes no hitbox of its own, so the click still reaches the bar. |
| 530 | pub |
| 531 | |
| 532 | |
| 533 | |
| 534 | |
| 535 | |
| 536 | /// [`bounds_probe`] for a box something *else* is laid out against: it also asks |
| 537 | /// for one more frame whenever the height changed. |
| 538 | /// |
| 539 | /// A measurement is read by the frame after the one that took it, and a notice |
| 540 | /// arriving over a paused picture repaints exactly once -- so without this the |
| 541 | /// cue would sit under that notice until something else happened to draw, which |
| 542 | /// on a paused window can be never. |
| 543 | pub |
| 544 | |
| 545 | |
| 546 | |
| 547 | |
| 548 | |
| 549 | |
| 550 | |
| 551 | |
| 552 | |
| 553 | |
| 554 | |
| 555 | |
| 556 | |
| 557 | /// Where along an element a click landed, 0..1. An element that was never |
| 558 | /// painted has no width, and reads as its start rather than as NaN. |
| 559 | pub |
| 560 | |
| 561 | |
| 562 | |
| 563 | |
| 564 | |
| 565 | |
| 566 | /// Where along an element a click landed, in pixels from its own left edge: |
| 567 | /// [`frac_along`] in the units the timeline is drawn in, since a [`Scale`] |
| 568 | /// measures in pixels and not in shares of a bed. Clamped to the element -- a |
| 569 | /// drag that slid off the end names its end -- and an element that was never |
| 570 | /// painted reads as its start. |
| 571 | pub |
| 572 | |
| 573 | |
| 574 | |
| 575 | /// [`px_along`] turned through a right angle, for the lane stack's scrollbar: |
| 576 | /// how far down its track a press landed. |
| 577 | pub |
| 578 | |
| 579 | |
| 580 | |
| 581 | /// One turn of the wheel as a single number, positive for a turn *up*, in |
| 582 | /// whatever units the device sends (a mouse counts lines, a touchpad pixels). |
| 583 | /// A tilt wheel's own axis counts as the same gesture: it is the sideways |
| 584 | /// scroll a mouse that has one sends, and the controls this drives have one |
| 585 | /// direction each, so the two axes are one answer here. |
| 586 | pub |
| 587 | |
| 588 | |
| 589 | |
| 590 | |
| 591 | |
| 592 | |
| 593 | |
| 594 | |
| 595 | |
| 596 | |
| 597 | /// The frame a dropped clip's head lands on: `raw`, unless one of `marks` is |
| 598 | /// within `tol` frames of where its head -- or its tail, `len` frames along -- |
| 599 | /// would come to rest, in which case that edge wins. The snap every timeline |
| 600 | /// has: clips meet exactly instead of a frame apart, and the hand does not have |
| 601 | /// to aim. The nearest mark wins, and a head landing on one beats a tail at the |
| 602 | /// same distance -- what was dragged is the head. |
| 603 | pub |
| 604 | |
| 605 | |
| 606 | |
| 607 | |
| 608 | |
| 609 | |
| 610 | |
| 611 | |
| 612 | |
| 613 | |
| 614 | |
| 615 | |
| 616 | |
| 617 | |
| 618 | |
| 619 | /// The edges worth landing on, off *every* lane: both ends of every clip on the |
| 620 | /// timeline, less `skip` -- the clip being dragged, which does not snap to where |
| 621 | /// it already is -- and less `skip_link`, the group id of whatever is being |
| 622 | /// dragged: its clips travel with it, and so does any caption the id names. |
| 623 | /// `skip` is a lane's place in `lanes` and an index into it; `skip_link` is |
| 624 | /// read off a caption by the caller, whose drag has no clip for `skip` to |
| 625 | /// name. The playhead and the head of the timeline go on the end: a clip meets |
| 626 | /// the cursor and the start of the show as readily as it meets another take. |
| 627 | /// |
| 628 | /// All lanes rather than the one being dropped on, because a cut is made across |
| 629 | /// the timeline: a title on V2 lines up with the shot under it, and a sound |
| 630 | /// effect lines up with the frame it belongs to. |
| 631 | pub |
| 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 | /// [`snapped`], and the mark that pulled it there -- the line the bed draws |
| 657 | /// while the hand is still moving. `None` when nothing was near enough: a line |
| 658 | /// standing over open bed would promise a landing that is not going to happen. |
| 659 | /// The head is read before the tail, exactly as [`snapped`] prefers it. |
| 660 | /// |
| 661 | /// `on` is the switch ([`ActionId::ToggleSnap`]): off, the gesture lands raw and |
| 662 | /// draws no line at all, which is the whole point of being able to turn it off. |
| 663 | pub |
| 664 | |
| 665 | |
| 666 | |
| 667 | |
| 668 | |
| 669 | |
| 670 | |
| 671 | |
| 672 | |
| 673 | |
| 674 | /// Where a drag lands and the mark that pulled it there: the frame under the |
| 675 | /// pointer, less however far into the box the hand grabbed it (so a clip travels |
| 676 | /// with the pointer rather than jumping its head under it), snapped by |
| 677 | /// [`snap_cue`]. One answer, asked by the shadow drawn in flight |
| 678 | /// ([`Player::preview_ghost`]), by the line ([`Player::preview_drop`]) and by |
| 679 | /// the drop that commits ([`Player::move_clip`]) -- which is what makes the |
| 680 | /// promise and the landing the same frame. |
| 681 | pub |
| 682 | |
| 683 | |
| 684 | |
| 685 | |
| 686 | |
| 687 | |
| 688 | |
| 689 | |
| 690 | |
| 691 | |
| 692 | /// Why this file may not go on that lane, in the words the refusal is told in -- |
| 693 | /// `None` when it may. A file with no picture belongs on an audio lane and |
| 694 | /// nowhere else, and a still is silent, so an audio lane is the one place it |
| 695 | /// cannot go. Asked twice: by the ghost tinting itself as refused on the way |
| 696 | /// down, and by the insert that commits ([`Player::insert_source`]), so what is |
| 697 | /// shown as impossible is exactly what is refused. |
| 698 | pub |
| 699 | |
| 700 | |
| 701 | |
| 702 | |
| 703 | |
| 704 | |
| 705 | |
| 706 | |
| 707 | |
| 708 | |
| 709 | |
| 710 | |
| 711 | |
| 712 | |
| 713 | |
| 714 | |
| 715 | |
| 716 | |
| 717 | |
| 718 | |
| 719 | /// Where down an element a pointer sits, 0..1 from the top: the vertical twin |
| 720 | /// of [`frac_along`], for the equalizer, whose gain axis is the y one. An |
| 721 | /// element that was never painted reads as its middle -- flat, the one answer |
| 722 | /// that changes nothing -- rather than as a full boost. |
| 723 | pub |
| 724 | |
| 725 | |
| 726 | |
| 727 | |
| 728 |