VCV Rack API v2
|
An Input port that stores incoming MIDI messages and releases them when ready according to their frame timestamp. More...
#include <midi.hpp>
Public Member Functions | |
InputQueue () | |
~InputQueue () | |
void | onMessage (const Message &message) override |
bool | tryPop (Message *messageOut, int64_t maxFrame) |
Pops and returns the next message (by setting messageOut ) if its frame timestamp is maxFrame or earlier. | |
size_t | size () |
Public Member Functions inherited from rack::midi::Input | |
Input () | |
~Input () | |
void | reset () |
std::vector< int > | getDeviceIds () override |
int | getDefaultDeviceId () override |
void | setDeviceId (int deviceId) override |
std::string | getDeviceName (int deviceId) override |
std::vector< int > | getChannels () override |
Public Member Functions inherited from rack::midi::Port | |
Port () | |
virtual | ~Port () |
Driver * | getDriver () |
int | getDriverId () |
void | setDriverId (int driverId) |
Device * | getDevice () |
int | getDeviceId () |
int | getChannel () |
void | setChannel (int channel) |
std::string | getChannelName (int channel) |
json_t * | toJson () |
void | fromJson (json_t *rootJ) |
Public Attributes | |
Internal * | internal |
Public Attributes inherited from rack::midi::Input | |
InputDevice * | inputDevice = NULL |
Not owned. | |
Public Attributes inherited from rack::midi::Port | |
int | channel = -1 |
For MIDI output, the channel to automatically set outbound messages. | |
int | driverId = -1 |
int | deviceId = -1 |
Driver * | driver = NULL |
Not owned. | |
Device * | device = NULL |
Context * | context |
An Input port that stores incoming MIDI messages and releases them when ready according to their frame timestamp.
rack::midi::InputQueue::InputQueue | ( | ) |
rack::midi::InputQueue::~InputQueue | ( | ) |
|
overridevirtual |
Reimplemented from rack::midi::Input.
bool rack::midi::InputQueue::tryPop | ( | Message * | messageOut, |
int64_t | maxFrame ) |
Pops and returns the next message (by setting messageOut
) if its frame timestamp is maxFrame
or earlier.
Returns whether a message was returned.
size_t rack::midi::InputQueue::size | ( | ) |
Internal* rack::midi::InputQueue::internal |