wavelength 1.0.0
Loading...
Searching...
No Matches
Vibrato Class Reference

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

Detailed Description

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.

Member Function Documentation

◆ GetFast()

int Vibrato::GetFast ( int tick,
int phase )
static

Read the fast table.

Parameters
tickCurrent tick of the cycle.
phaseOffset of the voice into the cycle.
Returns
The pitch register offset.
Ghidra address:
NTSC-U/C: 0x00006060
Ghidra address:
PAL: 0x00006060

◆ GetSlow()

int Vibrato::GetSlow ( int tick,
int phase )
static

Read the slow table.

Parameters
tickCurrent tick of the cycle.
phaseOffset of the voice into the cycle.
Returns
The pitch register offset.
Ghidra address:
NTSC-U/C: 0x0000608c
Ghidra address:
PAL: 0x0000608c

◆ GetRectified()

int Vibrato::GetRectified ( int tick,
int phase )
static

Read the rectified table.

Parameters
tickCurrent tick of the cycle.
phaseOffset into the cycle.
Returns
The pitch register offset.
Ghidra address:
NTSC-U/C: 0x000060b8
Ghidra address:
PAL: 0x000060b8

Member Data Documentation

◆ kCycleTicks

int Vibrato::kCycleTicks = 200
staticconstexpr

Ticks per cycle.


The documentation for this class was generated from the following file: