ofxPDSP
pdsp::midi::Input Class Reference
Inheritance diagram for pdsp::midi::Input:
pdsp::Preparable

Public Member Functions

void openPort (int index)
 open the port with the given index More...
 
void openPort (std::string name)
 open the port with the given name More...
 
void openVirtualPort (std::string name)
 create a virtual input port with the given name More...
 
void closePort ()
 close the opened port
 
void listPorts ()
 list the available ports
 
int getPortCount ()
 return number of available midi in ports
 
std::vector< std::string > getPortList ()
 return list of available ports name
 
void linkToMidiIn (ofxMidiIn &midiInput)
 uses an already open ofxMidiIn instead of opening a port More...
 

Protected Member Functions

void prepareToPlay (int expectedBufferSize, double sampleRate) override
 
void releaseResources () override
 

Additional Inherited Members

- Static Public Member Functions inherited from pdsp::Preparable
static double getGlobalSampleRate ()
 

Member Function Documentation

◆ linkToMidiIn()

void pdsp::midi::Input::linkToMidiIn ( ofxMidiIn &  midiInput)

uses an already open ofxMidiIn instead of opening a port

Parameters
[in]midiInputofxMidiIn object

◆ openPort() [1/2]

void pdsp::midi::Input::openPort ( int  index)

open the port with the given index

Parameters
[in]indexof the port to open

◆ openPort() [2/2]

void pdsp::midi::Input::openPort ( std::string  name)

open the port with the given name

Parameters
[in]nameof the port to open

◆ openVirtualPort()

void pdsp::midi::Input::openVirtualPort ( std::string  name)

create a virtual input port with the given name

Parameters
[in]nameof the port to crate

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