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

Public Member Functions

void openPort (int index, int baudRate=250000)
 open the port with the given index More...
 
void openPort (string name, int baudRate=250000)
 open the port with the given index More...
 
void close () override
 close the opened port
 
void listPorts ()
 list the available ports
 
bool isConnected ()
 return true if the port has been sucessfully opened
 
void setVerbose (bool verbose)
 enable or disable diagnostic messages More...
 
pdsp::ExtSequencer & channel (int channelNumber)
 patch a pdsp::ScoreSection::out_message() method to the result of this method for message to the serial out
 

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

◆ openPort() [1/2]

void pdsp::serial::Output::openPort ( int  index,
int  baudRate = 250000 
)

open the port with the given index

Parameters
[in]indexof the port to open
[in]baudRaterate of the connection, 250000 baud if not given

◆ openPort() [2/2]

void pdsp::serial::Output::openPort ( string  name,
int  baudRate = 250000 
)

open the port with the given index

Parameters
[in]namename of the serial output path
[in]baudRaterate of the connection, 250000 baud if not given

◆ setVerbose()

void pdsp::serial::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: