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

A lane's authored coordinate at one grid tick. More...

#include <step_player.hpp>

Public Member Functions

constexpr auto operator<=> (const StepPlayerCoordinate &) const =default

Public Attributes

timebase::TickPosition step_tick {}
timebase::TickPosition following_tick {}
std::int64_t ordinal = 0
std::uint64_t cycle = 0
std::size_t index = 0

Detailed Description

A lane's authored coordinate at one grid tick.

ordinal counts step intervals from the tick origin, cycle counts completed passes over the lane, and index is the step the lane's walk selects. All three are pure functions of the lane's immutable spec and the tick, so a caller can ask which cell is about to speak and author it before process() rather than mirroring the walk and drifting from it.

Member Function Documentation

◆ operator<=>()

auto pulp::midi::StepPlayerCoordinate::operator<=> ( const StepPlayerCoordinate & ) const
constexprdefault

Member Data Documentation

◆ cycle

std::uint64_t pulp::midi::StepPlayerCoordinate::cycle = 0

◆ following_tick

timebase::TickPosition pulp::midi::StepPlayerCoordinate::following_tick {}

◆ index

std::size_t pulp::midi::StepPlayerCoordinate::index = 0

◆ ordinal

std::int64_t pulp::midi::StepPlayerCoordinate::ordinal = 0

◆ step_tick

timebase::TickPosition pulp::midi::StepPlayerCoordinate::step_tick {}

The documentation for this struct was generated from the following file: