ofxPDSP
|
Phazor clocked to tempo values and syncronized to transport. More...
#include <ClockedPhasor.h>
Public Member Functions | |
Patchable & | set (float division, float phaseOffset) |
sets the default time division and phase offset values and returns the unit ready to be patched. More... | |
Patchable & | in_retrig () |
Sets "retrig" as selected input and returns this Unit ready to be patched. This is the default input. Connect a "trig" output to this input to activate manual retriggering of the phazor, otherwise the phasor is synced to the transport. | |
Patchable & | in_phase_offset () |
Sets "phase_offset" as selected input and returns this Unit ready to be patched. This is the offset of the phazor at retrigger or in relation to the given division. It is updated only at control-rate. | |
Patchable & | in_division () |
Sets "division" as selected input and returns this Unit ready to be patched. This is the time division, higher is faster, for example 16.0f means 1/16th and 0.5f means two bars/cycle. It is updated only at control-rate. | |
Patchable & | out_phase () |
Sets "phase" as selected output and returns this Unit ready to be patched. This is the default output. This is the phase output to be patched into an oscillator in_phase(). | |
Patchable & | out_trig () |
Sets "trig" as selected output and returns this Unit ready to be patched. This outputs sets a trigger on value each time the phazor restarts its cycle, it can be useful to trigger other units. | |
Public Member Functions inherited from pdsp::Unit | |
Unit (const Unit &other) | |
Unit & | operator= (const Unit &other) |
Unit (Unit &&other) | |
Unit & | operator= (Unit &&other) |
virtual void | setOversampleLevel (int newOversampleLevel) |
sets the unit oversample level More... | |
int | getOversampleLevel () const |
returns the Unit oversample level | |
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. | |
Patchable & | in (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... | |
Patchable & | out (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. | |
InputNode & | getSelectedInput () |
returns the selected input, you can patch a Patchable or OutputNode to it with the >> operator. | |
OutputNode & | getSelectedOutput () |
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 | |
Static Public Member Functions inherited from pdsp::Preparable | |
static double | getGlobalSampleRate () |
Static Public Member Functions inherited from pdsp::Clockable | |
static float | getBarsPerSample () |
returns how many bars you advance for each sample | |
static float | getGlobalBarPosition () |
returns the global transport playhead in bars | |
static float | getOneBarTimeMs () |
returns the time in milliseconds for one bar. | |
static bool | isPlaying () |
returns true if the transport is not stopped or paused | |
Protected Member Functions inherited from pdsp::Unit | |
void | prepareToPlay (int expectedBufferSize, double sampleRate) override |
you have to use this method only in the constructor, inside if(dynamicConstruction){ } More... | |
const float * | processInput (InputNode &node, int &stateNow) |
process the given input, gives you a pointer to the processed buffer as result and its state More... | |
float | processAndGetSingleValue (InputNode &input, int pos) |
process the given input, gives you a pointer to the processed buffer as result and its state More... | |
float * | getOutputBufferToFill (OutputNode &node) |
gets a pointer to the output buffer for rendering audio to it, and sets the OutputNode state to AudioRate More... | |
void | setControlRateOutput (OutputNode &node, float scalarValue) |
sets the OutputNode buffer to "Changed" and its first value to scalarValue More... | |
void | setOutputToZero (OutputNode &node) |
sets the OutputNode buffer to "Changed" and its first value to 0.0f More... | |
void | updateOutputNodes () |
call this method in the Unit constructor after adding all the Outputs, this is mandatory for the inner working of the patching framework. | |
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... | |
Phazor clocked to tempo values and syncronized to transport.
This phazor is clocked to the global tempo and has a division and phase-offset inpuit. It syncronize itself to the global tempo or it can be retriggered by a "trig" output
pdsp::Patchable & pdsp::ClockedPhasor::set | ( | float | division, |
float | phaseOffset | ||
) |
sets the default time division and phase offset values and returns the unit ready to be patched.
[in] | division | division time, for example 4.0f is one quarter/cycle and 0.25f means 4 bars/cycle |
[in] | phaseOffset | phase offset at retrigger or in relation to the given division |