ofxPDSP
pdsp::SVFilter Class Reference

Multi-mode virtual analog state variable filter. Multichannel. More...

#include <SVFilter.h>

Inheritance diagram for pdsp::SVFilter:
pdsp::Patchable

Public Member Functions

 SVFilter (const SVFilter &other)
 
SVFilteroperator= (const SVFilter &other)
 
Patchablein_signal ()
 Sets "signal" as selected input and returns this module ready to be patched. This is the default input. This is the filter input.
 
Patchableout_signal ()
 Sets "signal" as selected output and returns this module ready to be patched. This is the default output. This is filter signal output.
 
Patchablein_pitch ()
 Sets "pitch" as selected input and returns this module ready to be patched. This is the filter cutoff control in semitones.
 
Patchablein_cutoff ()
 Sets "pitch" as selected input and returns this module ready to be patched. This is the filter cutoff control in semitones.
 
Patchablein_reso ()
 Sets "reso" as selected input and returns this module ready to be patched. This is the filter resonance control.
 
Patchablein_mode ()
 Sets "mode" as selected input and returns this module ready to be patched. This control switches the filter type, there are some static constant in this class that rapresent different filter type values. Default is 0, a 12db/oct Low Pass Filter. More...
 
void channels (size_t size)
 Allocate a number of channels for processing different inputs. This is automatically called if you query for a channel outside the allocated range. You can access different channels with the ch() method. More...
 
Patchablech (size_t index)
 Uses the selected channel as input/output for the patching operation. More...
 
float meter_cutoff () const
 Returns the cutoff pitch value.
 
- 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
 

Static Public Attributes

static const float LowPass = 0.0f
 
static const float BandPass = 1.0f
 
static const float HighPass = 2.0f
 
static const float Notch = 3.0f
 

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

Multi-mode virtual analog state variable filter. Multichannel.

Member Function Documentation

◆ ch()

pdsp::Patchable & pdsp::SVFilter::ch ( size_t  index)

Uses the selected channel as input/output for the patching operation.

Parameters
[in]indexchannel index

◆ channels()

void pdsp::SVFilter::channels ( size_t  size)

Allocate a number of channels for processing different inputs. This is automatically called if you query for a channel outside the allocated range. You can access different channels with the ch() method.

Parameters
[in]sizenumber of channels

◆ in_mode()

pdsp::Patchable & pdsp::SVFilter::in_mode ( )

Sets "mode" as selected input and returns this module ready to be patched. This control switches the filter type, there are some static constant in this class that rapresent different filter type values. Default is 0, a 12db/oct Low Pass Filter.

Constants for filter types are: LowPass = 0.0f; BandPass = 1.0f; HighPass = 2.0f; Notch = 3.0f; you can access them in the pdsp::SVFilter scope, and patch it like this pdsp::SVFilter::LowPass12 >> filter.in_mode()


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