| Mozzi version v1.1.0 sound synthesis library for Arduino |

Public Member Functions | List of all members
WaveShaper< char > Class Template Reference

int8_t specialisation of WaveShaper template More...

`#include <WaveShaper.h>`

## Public Member Functions
| WaveShaper (const int8_t *TABLE_NAME)
| Constructor. More...
int8_t | next (byte in)
| Maps input to output, transforming it according to the table being used. More...

## Detailed Description

### template<>
class WaveShaper< char >

int8_t specialisation of WaveShaper template

Definition at line 29 of file WaveShaper.h.

## Constructor & Destructor Documentation

## ◆ WaveShaper()

WaveShaper< char >::WaveShaper | ( | const int8_t * | TABLE_NAME | ) |
| inline

Constructor.

Use the template parameter to set type of numbers being mapped. For example, WaveShaper <int> myWaveShaper; makes a WaveShaper which uses ints.

Template Parameters

  T | the type of numbers being input to be shaped, chosen to match the table.

Parameters

  TABLE_NAME | the name of the table being used, which can be found in the ".h" file containing the table.

Definition at line 38 of file WaveShaper.h.

## Member Function Documentation

## ◆ next()

int8_t WaveShaper< char >::next | ( | byte | in | ) |
| inline

Maps input to output, transforming it according to the table being used.

Parameters

  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 8-bit signal (such as the output of an Oscil) into a 256 cell table centred around cell 128, add 128 to offset the input value.

Returns
  the shaped signal.

Definition at line 52 of file WaveShaper.h.