openMSX
Classes | Namespaces | Macros | Functions | Variables
YM2413Burczynski.cc File Reference
#include "YM2413Burczynski.hh"
#include "Math.hh"
#include "cstd.hh"
#include "serialize.hh"
#include <cstring>
#include <iostream>
Include dependency graph for YM2413Burczynski.cc:

Go to the source code of this file.

Classes

struct  openmsx::YM2413Burczynski::TlTab
 
struct  openmsx::YM2413Burczynski::SinTab
 

Namespaces

 openmsx
 Thanks to enen for testing this on a real cartridge:
 
 openmsx::YM2413Burczynski
 

Macros

#define DV(x)   int((x) / 0.1875)
 
#define SC(db)   int((double(db)) / ENV_STEP)
 
#define ML(x)   byte(2 * (x))
 

Functions

 openmsx::SERIALIZE_ENUM (YM2413Burczynski::Slot::EnvelopeState, envelopeStateInfo)
 
 openmsx::REGISTER_POLYMORPHIC_INITIALIZER (YM2413Core, YM2413, "YM2413-Jarek-Burczynski")
 

Variables

constexpr int openmsx::YM2413Burczynski::ENV_BITS = 10
 
constexpr double openmsx::YM2413Burczynski::ENV_STEP = 128.0 / (1 << ENV_BITS)
 
constexpr int openmsx::YM2413Burczynski::MAX_ATT_INDEX = (1 << (ENV_BITS - 2)) - 1
 
constexpr int openmsx::YM2413Burczynski::MIN_ATT_INDEX = 0
 
constexpr int openmsx::YM2413Burczynski::SIN_BITS = 10
 
constexpr int openmsx::YM2413Burczynski::SIN_LEN = 1 << SIN_BITS
 
constexpr int openmsx::YM2413Burczynski::SIN_MASK = SIN_LEN - 1
 
constexpr int openmsx::YM2413Burczynski::TL_RES_LEN = 256
 
constexpr int openmsx::YM2413Burczynski::ksl_tab [8 *16]
 
constexpr int openmsx::YM2413Burczynski::sl_tab [16]
 
constexpr byte openmsx::YM2413Burczynski::eg_inc [15][8]
 
constexpr byte openmsx::YM2413Burczynski::eg_rate_select [16+64+16]
 
constexpr byte openmsx::YM2413Burczynski::eg_rate_shift [16+64+16]
 
constexpr byte openmsx::YM2413Burczynski::mul_tab [16]
 
constexpr int openmsx::YM2413Burczynski::TL_TAB_LEN = 11 * 2 * TL_RES_LEN
 
constexpr TlTab openmsx::YM2413Burczynski::tl = makeTlTab()
 
constexpr SinTab openmsx::YM2413Burczynski::sin = makeSinTab()
 
constexpr int openmsx::YM2413Burczynski::LFO_AM_TAB_ELEMENTS = 210
 
constexpr byte openmsx::YM2413Burczynski::lfo_am_table [LFO_AM_TAB_ELEMENTS]
 
constexpr signed char openmsx::YM2413Burczynski::lfo_pm_table [8][8]
 
constexpr byte openmsx::YM2413Burczynski::table [16+3][8]
 

Macro Definition Documentation

◆ DV

#define DV (   x)    int((x) / 0.1875)

Definition at line 50 of file YM2413Burczynski.cc.

◆ ML

#define ML (   x)    byte(2 * (x))

Definition at line 203 of file YM2413Burczynski.cc.

Referenced by openmsx::Y8950::peekRawStatus().

◆ SC

#define SC (   db)    int((double(db)) / ENV_STEP)

Definition at line 98 of file YM2413Burczynski.cc.