Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::timeline_view::PianoRollLayout Struct Reference

A resolved note lattice, supplied by whoever owns the viewport. More...

#include <piano_roll_view.hpp>

Public Attributes

timeline_editor::TickProjection time
timeline_editor::PitchProjection pitch
timebase::TickDuration snap {}
 Grid the authored start of an inserted or moved note lands on.

Detailed Description

A resolved note lattice, supplied by whoever owns the viewport.

Both members are the editor kernel's own projections rather than a second set of scalars minted here. They qualify as resolved values on the same test the arranger's scalars pass: neither owns zoom, scroll or device-pixel policy, and neither has to be kept in sync with anything — a TickProjection is a visible tick range plus a pixel span, and a PitchProjection is an inclusive pitch range plus a pixel span. Whoever resolves zoom and scroll builds them once per frame and hands them over finished.

Member Data Documentation

◆ pitch

timeline_editor::PitchProjection pulp::timeline_view::PianoRollLayout::pitch

◆ snap

timebase::TickDuration pulp::timeline_view::PianoRollLayout::snap {}

Grid the authored start of an inserted or moved note lands on.

Zero snaps nothing, which is what a free-time edit wants.

◆ time

timeline_editor::TickProjection pulp::timeline_view::PianoRollLayout::time

The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/timeline_view/include/pulp/timeline_view/piano_roll_view.hpp