Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
loop_range.hpp File Reference

Canonical loop-region construction for sequencer edits. More...

#include <cstdint>
#include <pulp/runtime/result.hpp>
#include <pulp/timebase/loop_region.hpp>

Go to the source code of this file.

Namespaces

namespace  pulp
namespace  pulp::timeline_editor
 ScriptedUiHost is a SequencerUiHost whose playhead is written by the caller instead of an engine, and which keeps what a view emitted so a test can read it back.

Enumerations

enum class  pulp::timeline_editor::LoopRangeError : std::uint8_t { pulp::timeline_editor::LoopRangeError::CollapsedSpan }
 Why an already-snapped loop range could not be constructed. More...

Functions

runtime::Result< timebase::LoopRegion, LoopRangeError > pulp::timeline_editor::loop_region_from_snapped_endpoints (timebase::TickPosition first, timebase::TickPosition second) noexcept
 Build an enabled, structurally canonical loop candidate.
constexpr timebase::LoopRegion pulp::timeline_editor::with_loop_enabled (timebase::LoopRegion loop, bool enabled) noexcept
 Return loop with only its enabled state changed.

Detailed Description

Canonical loop-region construction for sequencer edits.