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

#include <midi.hpp>

Inheritance diagram for rack::midi::Input:
[legend]
Collaboration diagram for rack::midi::Input:
[legend]

Public Member Functions

 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
 
virtual void onMessage (const Message &message)
 
- Public Member Functions inherited from rack::midi::Port
 Port ()
 
virtual ~Port ()
 
DrivergetDriver ()
 
int getDriverId ()
 
void setDriverId (int driverId)
 
DevicegetDevice ()
 
int getDeviceId ()
 
int getChannel ()
 
void setChannel (int channel)
 
std::string getChannelName (int channel)
 
json_t * toJson ()
 
void fromJson (json_t *rootJ)
 

Public Attributes

InputDeviceinputDevice = 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
 
Driverdriver = NULL
 Not owned.
 
Devicedevice = NULL
 
Contextcontext
 

Constructor & Destructor Documentation

◆ Input()

rack::midi::Input::Input ( )

◆ ~Input()

rack::midi::Input::~Input ( )

Member Function Documentation

◆ reset()

void rack::midi::Input::reset ( )

◆ getDeviceIds()

std::vector< int > rack::midi::Input::getDeviceIds ( )
overridevirtual

Implements rack::midi::Port.

◆ getDefaultDeviceId()

int rack::midi::Input::getDefaultDeviceId ( )
overridevirtual

Implements rack::midi::Port.

◆ setDeviceId()

void rack::midi::Input::setDeviceId ( int deviceId)
overridevirtual

Implements rack::midi::Port.

◆ getDeviceName()

std::string rack::midi::Input::getDeviceName ( int deviceId)
overridevirtual

Implements rack::midi::Port.

◆ getChannels()

std::vector< int > rack::midi::Input::getChannels ( )
overridevirtual

Implements rack::midi::Port.

◆ onMessage()

virtual void rack::midi::Input::onMessage ( const Message & message)
inlinevirtual

Reimplemented in rack::midi::InputQueue.

Member Data Documentation

◆ inputDevice

InputDevice* rack::midi::Input::inputDevice = NULL

Not owned.


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