VCV Rack API v2
Loading...
Searching...
No Matches
rack::midi::Message Struct Reference

#include <midi.hpp>

Public Member Functions

 Message ()
 
int getSize () const
 
void setSize (int size)
 
uint8_t getChannel () const
 
void setChannel (uint8_t channel)
 
uint8_t getStatus () const
 
void setStatus (uint8_t status)
 
uint8_t getNote () const
 
void setNote (uint8_t note)
 
uint8_t getValue () const
 
void setValue (uint8_t value)
 
std::string toString () const
 
int64_t getFrame () const
 
void setFrame (int64_t frame)
 

Public Attributes

std::vector< uint8_t > bytes
 Initialized to 3 empty bytes.
 
int64_t frame = -1
 The Engine frame timestamp of the Message.
 

Constructor & Destructor Documentation

◆ Message()

rack::midi::Message::Message ( )
inline

Member Function Documentation

◆ getSize()

int rack::midi::Message::getSize ( ) const
inline

◆ setSize()

void rack::midi::Message::setSize ( int size)
inline

◆ getChannel()

uint8_t rack::midi::Message::getChannel ( ) const
inline

◆ setChannel()

void rack::midi::Message::setChannel ( uint8_t channel)
inline

◆ getStatus()

uint8_t rack::midi::Message::getStatus ( ) const
inline

◆ setStatus()

void rack::midi::Message::setStatus ( uint8_t status)
inline

◆ getNote()

uint8_t rack::midi::Message::getNote ( ) const
inline

◆ setNote()

void rack::midi::Message::setNote ( uint8_t note)
inline

◆ getValue()

uint8_t rack::midi::Message::getValue ( ) const
inline

◆ setValue()

void rack::midi::Message::setValue ( uint8_t value)
inline

◆ toString()

std::string rack::midi::Message::toString ( ) const

◆ getFrame()

int64_t rack::midi::Message::getFrame ( ) const
inline

◆ setFrame()

void rack::midi::Message::setFrame ( int64_t frame)
inline

Member Data Documentation

◆ bytes

std::vector<uint8_t> rack::midi::Message::bytes

Initialized to 3 empty bytes.

◆ frame

int64_t rack::midi::Message::frame = -1

The Engine frame timestamp of the Message.

For output messages, the frame when the message was generated. For input messages, the frame when it is intended to be processed. -1 for undefined, to be sent or processed immediately.


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