slot */ public const stbl = [0, 2, 4, 1, 3, 5, -1, -1, 6, 8, 10, 7, 9, 11, -1, -1, 12, 14, 16, 13, 15, 17, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]; /** C static uint16_t wave_table_map[4][PG_WIDTH] */ public static array $wave_table_map = []; /** C static uint32_t tll_table[8 * 16][1 << TL_BITS][4], flattened: [((blk_fnum >> 6) << 8) | (TL << 2) | KL] */ public static array $tll_table = []; /** C static int32_t rks_table[2][32][2], flattened: [(notesel << 6) | (blk_fnum98 << 1) | KR] */ public static array $rks_table = []; public static int $table_initialized = 0; /** * PORT (speed): wave tables with the sign bit 0x8000 moved to 0x2000, so that "wave value + attenuation" indexes * the packed table $lin (lookup_exp_table() of every possible value): see to_linear(). */ public static array $wave_fast = []; public static array $lin = []; /** PORT (speed): the noise LFSR advanced by 18 / 14 / 2 steps, per byte of the state: [steps][byte][value] */ public static array $noise_jump = []; }