|
wavelength 1.0.0
|
Pitch offset tables a voice's vibrato reads, one entry per tick over a 200-tick cycle. More...
#include <vibrato.h>
Static Public Member Functions | |
| static int | GetFast (int tick, int phase) |
| Read the fast table. | |
| static int | GetSlow (int tick, int phase) |
| Read the slow table. | |
| static int | GetRectified (int tick, int phase) |
| Read the rectified table. | |
Static Public Attributes | |
| static constexpr int | kCycleTicks = 200 |
Pitch offset tables a voice's vibrato reads, one entry per tick over a 200-tick cycle.
The class has no RTTI, and its name is inferred from its role. Every member is static. The fast table holds five sine periods per cycle, the slow one three, and the rectified one four positive humps. The rectified table is never read.
|
static |
Read the fast table.
| tick | Current tick of the cycle. |
| phase | Offset of the voice into the cycle. |
|
static |
Read the slow table.
| tick | Current tick of the cycle. |
| phase | Offset of the voice into the cycle. |
|
static |
Read the rectified table.
| tick | Current tick of the cycle. |
| phase | Offset into the cycle. |
|
staticconstexpr |
Ticks per cycle.