Struct message

Struct Documentation

struct libremidi::message

Public Functions

message() noexcept = default
inline message(const midi_bytes &src_bytes, double src_timestamp)
template<typename ...Args>
inline message(Args... args) noexcept
inline bool uses_channel(int channel) const
inline int get_channel() const
inline bool is_meta_event() const
inline meta_event_type get_meta_event_type() const
inline message_type get_message_type() const
inline bool is_note_on_or_off() const
inline auto size() const
inline auto &front() const
inline auto &back() const
inline auto &operator[](int i) const
inline auto &front()
inline auto &back()
inline auto &operator[](int i)
template<typename ...Args>
inline auto assign(Args&&... args)
template<typename ...Args>
inline auto insert(Args&&... args)
inline auto clear()
inline auto begin() const
inline auto end() const
inline auto begin()
inline auto end()
inline auto cbegin() const
inline auto cend() const
inline auto cbegin()
inline auto cend()
inline auto rbegin() const
inline auto rend() const
inline auto rbegin()
inline auto rend()

Public Members

midi_bytes bytes
double timestamp = {}

Public Static Functions

static inline uint8_t make_command(const message_type type, const int channel) noexcept
static inline message note_on(uint8_t channel, uint8_t note, uint8_t velocity) noexcept
static inline message note_off(uint8_t channel, uint8_t note, uint8_t velocity) noexcept
static inline message control_change(uint8_t channel, uint8_t control, uint8_t value) noexcept
static inline message program_change(uint8_t channel, uint8_t value) noexcept
static inline message pitch_bend(uint8_t channel, int value) noexcept
static inline message pitch_bend(uint8_t channel, uint8_t lsb, uint8_t msb) noexcept
static inline message poly_pressure(uint8_t channel, uint8_t note, uint8_t value) noexcept
static inline message aftertouch(uint8_t channel, uint8_t value) noexcept