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

Public Member Functions

void openPort (int port)
 open the port with the given index More...
 
void close ()
 shuts down the output
 
bool isConnected ()
 return true if the port has been sucessfully opened
 
void setVerbose (bool verbose)
 enable or disable diagnostic messages More...
 
void linkTempo (string oscAddress, int argument=0)
 control the clock of the units and sequencer with an OSC message More...
 
pdsp::SequencerGateOutputout_trig (string oscAddress, int argument=0)
 get a trigger output for the given OSC address. Only the first value of those address will be taken, as float value. When you have used an address as trig output you can't use it as value More...
 
pdsp::SequencerValueOutputout_value (string oscAddress, int argument=0)
 get a value output for the given OSC address. Only the first value of those address will be taken, as float value. When you have used an address as value output you can't use it as trigger More...
 
std::function< float(float)> & parser (string oscAddress, int argument=0)
 get a reference to the parser for the selected address and argument. You can assign a lambda function to this value to elaborate the signal. More...
 
void initTo (string oscAddress, int argument, float value)
 sets an initial value for the selected addres and argument, valid until any other OSC message is received More...
 
void clearAll ()
 sends 0.0f as message to all the connected trigger and value outputs.
 

Protected Member Functions

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

Friends

class pdsp::Engine
 

Additional Inherited Members

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

Member Function Documentation

◆ initTo()

void pdsp::osc::Input::initTo ( string  oscAddress,
int  argument,
float  value 
)

sets an initial value for the selected addres and argument, valid until any other OSC message is received

Parameters
[in]oscAddressaddress for OSC input
[in]argumentindex of argument from message, 0 if not gived (first argument)
[in]valueinitial value for the selected address and argument

◆ linkTempo()

void pdsp::osc::Input::linkTempo ( string  oscAddress,
int  argument = 0 
)

control the clock of the units and sequencer with an OSC message

Parameters
[in]oscAddressaddress for OSC input
[in]argumentindex of argument from message, 0 if not gived (first argument)

◆ openPort()

void pdsp::osc::Input::openPort ( int  port)

open the port with the given index

Parameters
[in]portOSC port

◆ out_trig()

pdsp::SequencerGateOutput & pdsp::osc::Input::out_trig ( string  oscAddress,
int  argument = 0 
)

get a trigger output for the given OSC address. Only the first value of those address will be taken, as float value. When you have used an address as trig output you can't use it as value

Parameters
[in]oscAddressaddress for OSC input
[in]argumentindex of argument from message, 0 if not gived (first argument)

◆ out_value()

pdsp::SequencerValueOutput & pdsp::osc::Input::out_value ( string  oscAddress,
int  argument = 0 
)

get a value output for the given OSC address. Only the first value of those address will be taken, as float value. When you have used an address as value output you can't use it as trigger

Parameters
[in]oscAddressaddress for OSC input
[in]argumentindex of argument from message, 0 if not gived (first argument)

◆ parser()

std::function< float(float)> & pdsp::osc::Input::parser ( string  oscAddress,
int  argument = 0 
)

get a reference to the parser for the selected address and argument. You can assign a lambda function to this value to elaborate the signal.

Parameters
[in]oscAddressaddress for OSC input
[in]argumentindex of argument from message, 0 if not gived (first argument)

◆ setVerbose()

void pdsp::osc::Input::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: