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

One step in one lane. More...

#include <sequencer_state_channel.hpp>

Public Member Functions

constexpr bool enabled () const

Public Attributes

std::uint8_t flags = 0
std::uint8_t velocity = 100
std::uint8_t probability = 127
std::int8_t pitch_offset = 0
std::uint16_t gate_ticks = 24
std::uint8_t ratchet = 1
std::uint8_t reserved = 0

Static Public Attributes

static constexpr std::uint8_t kEnabledBit = 0x01

Detailed Description

One step in one lane.

A trivially-copyable POD so patterns memcpy cleanly. flags bit 0 is "enabled"; higher bits are reserved for tie/accent/etc. This is the reference cell; a Config may substitute any trivially-copyable, copy-assignable, default-constructible cell type.

Member Function Documentation

◆ enabled()

bool pulp::state::StepCell::enabled ( ) const
inlineconstexpr

Member Data Documentation

◆ flags

std::uint8_t pulp::state::StepCell::flags = 0

◆ gate_ticks

std::uint16_t pulp::state::StepCell::gate_ticks = 24

◆ kEnabledBit

std::uint8_t pulp::state::StepCell::kEnabledBit = 0x01
staticconstexpr

◆ pitch_offset

std::int8_t pulp::state::StepCell::pitch_offset = 0

◆ probability

std::uint8_t pulp::state::StepCell::probability = 127

◆ ratchet

std::uint8_t pulp::state::StepCell::ratchet = 1

◆ reserved

std::uint8_t pulp::state::StepCell::reserved = 0

◆ velocity

std::uint8_t pulp::state::StepCell::velocity = 100

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