sequencer
Public Member Functions | List of all members
sequencer::midi::step_t Class Reference

#include <step.hpp>

Public Member Functions

constexpr step_t (bool active=false) noexcept
 
constexpr step_t (note_t note) noexcept
 
constexpr step_t (note_t note, std::uint8_t velocity) noexcept
 
constexpr step_t (note_t note, std::uint8_t velocity, beat_duration length) noexcept
 
 step_t (const step_t &other) noexcept
 
step_toperator= (const step_t &other) noexcept
 
void set_active (bool active) noexcept
 
bool is_active () const noexcept
 
void set_note (note_t note) noexcept
 
constexpr const std::optional< copyable_atomic< note_t > > & note () const noexcept
 
void set_velocity (std::uint8_t velocity) noexcept
 
constexpr const std::optional< copyable_atomic< std::uint8_t > > & velocity () const noexcept
 
void set_length (beat_duration length) noexcept
 
constexpr const std::optional< copyable_atomic< beat_duration > > & length () const noexcept
 
template<class F >
void set_trig_condition (F f) noexcept
 
bool evaluate_trig_condition () const noexcept
 

Constructor & Destructor Documentation

◆ step_t() [1/5]

constexpr sequencer::midi::step_t::step_t ( bool  active = false)
inlineexplicitnoexcept

◆ step_t() [2/5]

constexpr sequencer::midi::step_t::step_t ( note_t  note)
inlineexplicitnoexcept

◆ step_t() [3/5]

constexpr sequencer::midi::step_t::step_t ( note_t  note,
std::uint8_t  velocity 
)
inlinenoexcept

◆ step_t() [4/5]

constexpr sequencer::midi::step_t::step_t ( note_t  note,
std::uint8_t  velocity,
beat_duration  length 
)
inlinenoexcept

◆ step_t() [5/5]

sequencer::midi::step_t::step_t ( const step_t other)
inlinenoexcept

Member Function Documentation

◆ evaluate_trig_condition()

bool sequencer::midi::step_t::evaluate_trig_condition ( ) const
inlinenoexcept

◆ is_active()

bool sequencer::midi::step_t::is_active ( ) const
inlinenoexcept

◆ length()

constexpr const std::optional< copyable_atomic< beat_duration > >& sequencer::midi::step_t::length ( ) const
inlinenoexcept

◆ note()

constexpr const std::optional< copyable_atomic< note_t > >& sequencer::midi::step_t::note ( ) const
inlinenoexcept

◆ operator=()

step_t& sequencer::midi::step_t::operator= ( const step_t other)
inlinenoexcept

◆ set_active()

void sequencer::midi::step_t::set_active ( bool  active)
inlinenoexcept

◆ set_length()

void sequencer::midi::step_t::set_length ( beat_duration  length)
inlinenoexcept

◆ set_note()

void sequencer::midi::step_t::set_note ( note_t  note)
inlinenoexcept

◆ set_trig_condition()

template<class F >
void sequencer::midi::step_t::set_trig_condition ( f)
inlinenoexcept

◆ set_velocity()

void sequencer::midi::step_t::set_velocity ( std::uint8_t  velocity)
inlinenoexcept

◆ velocity()

constexpr const std::optional< copyable_atomic< std::uint8_t > >& sequencer::midi::step_t::velocity ( ) const
inlinenoexcept

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