ofxPDSP
pdsp::VAOscillator Class Reference

Oscillator with antialiased waveforms, sync in/out and fm input. More...

#include <VAOscillator.h>

Inheritance diagram for pdsp::VAOscillator:
pdsp::Patchable

Public Member Functions

 VAOscillator (const VAOscillator &Other)
 
VAOscillatoroperator= (const VAOscillator &Other)
 
Patchablein_pitch ()
 Sets "pitch" as selected input and returns this module ready to be patched. This is the default input. This is the oscillator pitch input.
 
Patchablein_pw ()
 Sets "pw" as selected input and returns this module ready to be patched. This is the pulse width for the pulse waveform. The input is clamped to (0.0f 1.0f) range. Init default value is 0.5f (square wave).
 
Patchablein_sync ()
 Sets "sync" as selected input and returns this module ready to be patched. This is the sync input. You have to patch an out_sync() to this. This input is not compatible with out_trig().
 
Patchableout_saw ()
 Sets "saw" as selected output and returns this module ready to be patched. This is the default output. This is the saw waveform output.
 
Patchableout_pulse ()
 Sets "pulse" as selected output and returns this module ready to be patched. This is the pulse waveform output. You control the pulse width the in_shape() input.
 
Patchableout_triangle ()
 Sets "triangle" as selected output and returns this module ready to be patched. This is the triangle waveform output.
 
Patchableout_sine ()
 Sets "sine" as selected output and returns this module ready to be patched. This is the sine waveform output.
 
Patchableout_sync ()
 Sets "sync" as selected output and returns this module ready to be patyhed. This is an output with values needed to perform oscillator sync, you patch it to the corrispondent in_sinc() input.
 
float meter_pitch () const
 meters the oscillator pitch. This method is thread-safe.
 
- Public Member Functions inherited from pdsp::Patchable
void resetInputToDefault ()
 resets the selected input to the default.
 
void resetOutputToDefault ()
 resets the selected output to the default.
 
Patchablein (const char *tag)
 sets the selected input to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More...
 
Patchableout (const char *tag)
 sets the selected output to the one tagged with "tag", if tag is a valid string, and returns this Patchable ready to be patched. More...
 
void disconnectIn ()
 disconnects all the outputs connected to the selected input, then resets the selected input to the default.
 
void disconnectOut ()
 disconnects all the inputs connected to the selected output, then resets the selected output to the default.
 
void disconnectAll ()
 disconnects all the inputs and outputs to their connected outputs and inputs. Also resets the selected input and output to the default.
 
InputNodegetSelectedInput ()
 returns the selected input, you can patch a Patchable or OutputNode to it with the >> operator.
 
OutputNodegetSelectedOutput ()
 returns the selected output, you can patch it to another Patchable or InputNode with the >> operator.
 
std::vector< std::string > getInputsList ()
 returns a vector of the valid input tags
 
std::vector< std::string > getOutputsList ()
 returns a vector of the valid input tags
 

Additional Inherited Members

- Protected Member Functions inherited from pdsp::Patchable
void addOutput (const char *tag, OutputNode &output)
 method to add outputs when constructing a Unit More...
 
void addInput (const char *tag, InputNode &input)
 method to add inputs when constructing a Unit More...
 
void addModuleOutput (const char *tag, Patchable &unit)
 method to add outputs when constructing a module More...
 
void addModuleInput (const char *tag, Patchable &unit)
 method to add outputs when constructing a module More...
 

Detailed Description

Oscillator with antialiased waveforms, sync in/out and fm input.


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