pl-nk v0.4.5
Plonk|Plink|Plank are a set of cross-platform C/C++ frameworks for audio software development
Static Public Member Functions
HighShelfUnit< SampleType, InterpTypeCode > Class Template Reference

High-shelving (treble) filter. More...

List of all members.

Static Public Member Functions

static UnitType ar (UnitType const &input, UnitType const &frequency=SampleType(1200), UnitType const &s=SampleType(1), UnitType const &gain=SampleType(0), UnitType const &mul=SampleType(1), UnitType const &add=SampleType(0), BlockSize const &preferredBlockSize=BlockSize::noPreference(), SampleRate const &preferredSampleRate=SampleRate::noPreference()) throw ()
 Create a high-shelving filter.
static UnitType kr (UnitType const &input, UnitType const &frequency=SampleType(1200), UnitType const &s=SampleType(1), UnitType const &gain=SampleType(0), UnitType const &mul=SampleType(1), UnitType const &add=SampleType(0)()) throw ()
 Create a control rate high-shelving filter.

Detailed Description

template<class SampleType, Interp::TypeCode InterpTypeCode = Interp::Linear>
class HighShelfUnit< SampleType, InterpTypeCode >

High-shelving (treble) filter.

Factory functions:
  • ar (input, frequency=1200, s=1, gain=0, mul=1, add=0, preferredBlockSize=default, preferredSampleRate=default)
  • kr (input frequency=1200, s=1, gain=0, mul=1, add=0)
Inputs:
  • input: (unit, multi) the unit to filter
  • frequency: (unit, multi) the -3dB point cut-off frequency in Hz
  • s: (unit, multi) the slope factor (keep to 1 or below for no strange resonances)
  • gain: (unit, multi) the cut/boost in gain dB
  • mul: (unit, multi) the multiplier applied to the output
  • add: (unit, multi) the offset aded to the output
  • preferredBlockSize: the preferred output block size (for advanced usage, leave on default if unsure)
  • preferredSampleRate: the preferred output sample rate (for advanced usage, leave on default if unsure)

Member Function Documentation

template<class SampleType , Interp::TypeCode InterpTypeCode = Interp::Linear>
static UnitType HighShelfUnit< SampleType, InterpTypeCode >::ar ( UnitType const &  input,
UnitType const &  frequency = SampleType (1200),
UnitType const &  s = SampleType (1),
UnitType const &  gain = SampleType (0),
UnitType const &  mul = SampleType (1),
UnitType const &  add = SampleType (0),
BlockSize const &  preferredBlockSize = BlockSize::noPreference(),
SampleRate const &  preferredSampleRate = SampleRate::noPreference() 
) throw () [inline, static]

Create a high-shelving filter.

Parameters:
inputThe input signal to filter.
frequencyThe -3dB point turnover frequency.
sThe slope factor (keep to 1 or below for no strange resonances).
gainThe boost/cut gain in dB.
mulAn optional multiplier.
addAn optional offset.
preferredBlockSize(Optional) The preferred block size for the process.
preferredSampleRate(Optional) The preferred sample rate for the process.
template<class SampleType , Interp::TypeCode InterpTypeCode = Interp::Linear>
static UnitType HighShelfUnit< SampleType, InterpTypeCode >::kr ( UnitType const &  input,
UnitType const &  frequency = SampleType (1200),
UnitType const &  s = SampleType (1),
UnitType const &  gain = SampleType (0),
UnitType const &  mul = SampleType (1),
UnitType const &  add = SampleType (0)() 
) throw () [inline, static]

Create a control rate high-shelving filter.

Parameters:
inputThe input signal to filter.
frequencyThe -3dB point turnover frequency.
sThe slope factor (keep to 1 or below for no strange resonances).
gainThe boost/cut gain in dB.
mulAn optional multiplier.
addAn optional offset.

The documentation for this class was generated from the following file:
 All Classes Functions Typedefs Enumerations Enumerator Properties