int specialisation of WaveShaper template More...
#include <WaveShaper.h>
int specialisation of WaveShaper template
Definition at line 65 of file WaveShaper.h.
| Public Member Functions | |
| WaveShaper (const int16_t *TABLE_NAME) | |
| Constructor.  More... | |
| int | next (int in) | 
| Maps input to output, transforming it according to the table being used.  More... | |
| 
 | inline | 
Constructor.
Use the template parameter to set type of numbers being mapped. For example, WaveShaper <int> myWaveShaper; makes a WaveShaper which uses ints.
| T | the type of numbers being input to be shaped, chosen to match the table. | 
| TABLE_NAME | the name of the table being used, which can be found in the ".h" file containing the table. | 
Definition at line 74 of file WaveShaper.h.
| 
 | inline | 
Maps input to output, transforming it according to the table being used.
| in | the input signal. For flexibility, it's up to you to give the correct offset to your input signal. So if you're mapping a signed 9-bit signal (such as the sum of 2 8-bit Oscils) into a 512 cell table centred around cell 256, add 256 to offset the input value. With a sigmoid table, this may be useful for compressing a bigger signal into the -244 to 243 output range of Mozzi, rather than dividing the signal and returning a int8_t from updateAudio(). | 
Definition at line 91 of file WaveShaper.h.