LMMS
Loading...
Searching...
No Matches
Nes_Oscs.cpp File Reference
#include "Nes_Apu.h"
#include "blargg_source.h"

Variables

static short const dmc_period_table [2][16]
static byte const dac_table [128]
static short const noise_period_table [16]

Variable Documentation

◆ dac_table

byte const dac_table[128]
static
Initial value:
=
{
0, 1, 2, 3, 4, 5, 6, 7, 7, 8, 9,10,11,12,13,14,
15,15,16,17,18,19,20,20,21,22,23,24,24,25,26,27,
27,28,29,30,31,31,32,33,33,34,35,36,36,37,38,38,
39,40,41,41,42,43,43,44,45,45,46,47,47,48,48,49,
50,50,51,52,52,53,53,54,55,55,56,56,57,58,58,59,
59,60,60,61,61,62,63,63,64,64,65,65,66,66,67,67,
68,68,69,70,70,71,71,72,72,73,73,74,74,75,75,75,
76,76,77,77,78,78,79,79,80,80,81,81,82,82,82,83,
}

◆ dmc_period_table

short const dmc_period_table[2][16]
static
Initial value:
= {
{428, 380, 340, 320, 286, 254, 226, 214,
190, 160, 142, 128, 106, 84, 72, 54},
{398, 354, 316, 298, 276, 236, 210, 198,
176, 148, 132, 118, 98, 78, 66, 50}
}

◆ noise_period_table

short const noise_period_table[16]
static
Initial value:
= {
0x004, 0x008, 0x010, 0x020, 0x040, 0x060, 0x080, 0x0A0,
0x0CA, 0x0FE, 0x17C, 0x1FC, 0x2FA, 0x3F8, 0x7F2, 0xFE4
}