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
LookupUnit< SampleType > Class Template Reference

Wavetable lookup generator. More...

List of all members.

Static Public Member Functions

static UnitType ar (WavetableType const &table, PositionUnitType const &position, UnitType const &mul=SampleType(1), UnitType const &add=SampleType(0), BlockSize const &preferredBlockSize=BlockSize::getDefault(), SampleRate const &preferredSampleRate=SampleRate::getDefault()) throw ()
 Create an audio rate signal player.
static UnitType kr (WavetableType const &table, PositionUnitType const &position, UnitType const &mul=SampleType(1), UnitType const &add=SampleType(0)) throw ()
 Create a control rate signal player.

Detailed Description

template<class SampleType>
class LookupUnit< SampleType >

Wavetable lookup generator.

Factory functions:
  • ar (table, position, mul=1, add=0, preferredBlockSize=default, preferredSampleRate=default)
  • kr (table, position, mul=1, add=0)
Inputs:
  • table: (wavetable) the wavetable to use
  • position: (unit, multi) the read position between 0..1 (wrapped to this range)
  • 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 >
static UnitType LookupUnit< SampleType >::ar ( WavetableType const &  table,
PositionUnitType const &  position,
UnitType const &  mul = SampleType (1),
UnitType const &  add = SampleType (0),
BlockSize const &  preferredBlockSize = BlockSize::getDefault(),
SampleRate const &  preferredSampleRate = SampleRate::getDefault() 
) throw () [inline, static]

Create an audio rate signal player.

template<class SampleType >
static UnitType LookupUnit< SampleType >::kr ( WavetableType const &  table,
PositionUnitType const &  position,
UnitType const &  mul = SampleType (1),
UnitType const &  add = SampleType (0) 
) throw () [inline, static]

Create a control rate signal player.


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