ofxPDSP
pdsp::SequencerGateOutput Class Reference

Takes messages from a MessageBuffer and convert them in a trigger output. More...

#include <SequencerGateOutput.h>

Inheritance diagram for pdsp::SequencerGateOutput:

Public Member Functions

 SequencerGateOutput (const SequencerGateOutput &other)
 
void link (MessageBuffer &messageBuffer) override
 connect the SequencerGateOutput to a MessageBuffer. You can also use the >> operator with the same effect. More...
 
void unLink () override
 disconnect the SequencerGateOutput from the connected MessageBuffer.
 
void setSingleTrigger (bool state)
 Sets the behavior in the trigger signals generation. If true some of the connected envelopes will not restart from the first stage until a message with 0.0f is received (that will also set the stage to release). More...
 
Patchableout_trig ()
 Sets "trig" as selected output and returns this Unit ready to be patched. This is the default output. This is the trigger output to connect to envelopes or "trig" inputs.
 
int meter_last_ticks () const
 returns how many time this Unit has been processed since the last trigger, useful for visual. Thread-safe.
 
float meter_last_value () const
 returns the last trigger value received. Thread-safe.
 

Detailed Description

Takes messages from a MessageBuffer and convert them in a trigger output.

Generate trigger values from a MessageBuffer. It also has a switch to implement "Single Trigger Mode". In single trigger mode just the first positive message will generate a standard trigger message, the other will generate some "legato" trigger signals that often will not retrigger the envelope from starts; a normal trigger will be emitted only after a message with 0.0f value is received. SequencerGateOutput has no inputs, but you can use the >> operator to connect a MessageBuffer to it.

Member Function Documentation

◆ link()

void pdsp::SequencerGateOutput::link ( MessageBuffer &  messageBuffer)
override

connect the SequencerGateOutput to a MessageBuffer. You can also use the >> operator with the same effect.

Parameters
[in]messageBufferMessageBuffer to connect

◆ setSingleTrigger()

void pdsp::SequencerGateOutput::setSingleTrigger ( bool  state)

Sets the behavior in the trigger signals generation. If true some of the connected envelopes will not restart from the first stage until a message with 0.0f is received (that will also set the stage to release).

Parameters
[in]stateboolean state, true for activate legato. Standard is false.

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