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

Public Member Functions

void openPort (int index)
 open the port with the given index More...
 
void close () override
 close the opened port
 
void listPorts ()
 list the available ports
 
void linkToMidiOut (ofxMidiOut &midiOut)
 uses an already open ofxMidiOut instead of opening a port More...
 
bool isConnected ()
 return true if the port has been sucessfully opened
 
void setVerbose (bool verbose)
 enable or disable diagnostic messages More...
 
pdsp::ExtSequencer & gate (int midiChannel, int defaultNote=60)
 patch a pdsp::ScoreSection::out_message() method to the result of this method for sending midi note message out More...
 
pdsp::ExtSequencer & note ()
 patch a pdsp::ScoreSection::out_message() method to the result of this method for controlling the midi note message out. More...
 
pdsp::ExtSequencer & cc (int midiChannel, int ccNumber)
 patch a pdsp::ScoreSection::out_message() method to the result of this method for sending midi cc message out 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

◆ cc()

pdsp::ExtSequencer & pdsp::midi::Output::cc ( int  midiChannel,
int  ccNumber 
)

patch a pdsp::ScoreSection::out_message() method to the result of this method for sending midi cc message out

See the example-midi_seq for a practical example.

◆ gate()

pdsp::ExtSequencer & pdsp::midi::Output::gate ( int  midiChannel,
int  defaultNote = 60 
)

patch a pdsp::ScoreSection::out_message() method to the result of this method for sending midi note message out

see the example-midi_seq for a practical example

◆ linkToMidiOut()

void pdsp::midi::Output::linkToMidiOut ( ofxMidiOut &  midiOut)

uses an already open ofxMidiOut instead of opening a port

Parameters
[in]midiOutofxMidiOut object

◆ note()

pdsp::ExtSequencer & pdsp::midi::Output::note ( )

patch a pdsp::ScoreSection::out_message() method to the result of this method for controlling the midi note message out.

Patch a pdsp::ScoreSection::out_message() method to the result of this method for controlling the midi note message out. The output controlled is the one of the last gate() call. See the example-midi_seq for a practical example.

◆ openPort()

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

open the port with the given index

Parameters
[in]indexof the port to open

◆ setVerbose()

void pdsp::midi::Output::setVerbose ( bool  verbose)

enable or disable diagnostic messages

Parameters
[in]verbosetrue for enabling, false for disabling

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