#include <audio/utility/translator.h>
| Public Types | |
| using | FillFunction = std::function< T(T)> | 
| Public Member Functions | |
| TableTranslator (unsigned int size) | |
| T | translate (const T &inputValue) override final | 
| void | fill (FillFunction fillFunction) | 
|  Public Member Functions inherited from Translator< T > | |
| virtual | ~Translator () | 
| Static Public Member Functions | |
| static T | translate (const T &inputValue, const std::vector< T > &inTable) | 
Translates one value to another using a vector of values as a lookup table, the input has to be between 0 and 1.
| using FillFunction = std::function<T(T)> | 
a FillFunction takes a fractional index in range 0..1 as argument and returns the value of the curve at this index
| TableTranslator | ( | unsigned int | size | ) | 
default constructor
| void fill | ( | FillFunction | fillFunction | ) | 
fills the table with the result of a fill function with input values spaced between 0 and 1.
| 
 | finaloverridevirtual | 
perform the translation, input is clipped between 0 and 1. and spread across the size of the table, interpolating between the values
Implements Translator< T >.
| 
 | static | 
perform the translation static, input is clipped between 0 and 1. and spread across the size of the table, interpolatinf between the values