openMSX
Public Member Functions | Public Attributes | List of all members
openmsx::YMF262Slot Class Reference
Collaboration diagram for openmsx::YMF262Slot:
Collaboration graph
[legend]

Public Member Functions

 YMF262Slot ()
 
int op_calc (unsigned phase, unsigned lfo_am) const
 
void FM_KEYON (byte key_set)
 
void FM_KEYOFF (byte key_clr)
 
void advanceEnvelopeGenerator (unsigned eg_cnt)
 
void advancePhaseGenerator (YMF262Channel &ch, unsigned lfo_pm)
 
void update_ar_dr ()
 
void update_rr ()
 
void calc_fc (const YMF262Channel &ch)
 
void setFeedbackShift (byte value)
 Sets the amount of feedback [0..7]. More...
 
template<typename Archive >
void serialize (Archive &ar, unsigned version)
 

Public Attributes

FreqIndex Cnt
 
FreqIndex Incr
 
int * connect
 
int op1_out [2]
 
unsigned TL
 
int TLL
 
int volume
 
int sl
 
unsigned * wavetable
 
EnvelopeState state
 
unsigned eg_m_ar
 
unsigned eg_m_dr
 
unsigned eg_m_rr
 
byte eg_sh_ar
 
byte eg_sel_ar
 
byte eg_sh_dr
 
byte eg_sel_dr
 
byte eg_sh_rr
 
byte eg_sel_rr
 
byte key
 
byte fb_shift
 
bool CON
 
bool eg_type
 
byte AMmask
 
bool vib
 
byte ar
 
byte dr
 
byte rr
 
byte KSR
 
byte ksl
 
byte ksr
 
byte mul
 

Detailed Description

Definition at line 85 of file YMF262.cc.

Constructor & Destructor Documentation

openmsx::YMF262Slot::YMF262Slot ( )

Member Function Documentation

void openmsx::YMF262Slot::advanceEnvelopeGenerator ( unsigned  eg_cnt)
inline
void openmsx::YMF262Slot::advancePhaseGenerator ( YMF262Channel ch,
unsigned  lfo_pm 
)
inline

Definition at line 725 of file YMF262.cc.

References openmsx::YMF262Channel::block_fnum.

void openmsx::YMF262Slot::calc_fc ( const YMF262Channel ch)

Definition at line 1143 of file YMF262.cc.

References openmsx::YMF262Channel::fc, and openmsx::YMF262Channel::kcode.

void openmsx::YMF262Slot::FM_KEYOFF ( byte  key_clr)
inline

Definition at line 1107 of file YMF262.cc.

References openmsx::EG_RELEASE.

void openmsx::YMF262Slot::FM_KEYON ( byte  key_set)
inline

Definition at line 1096 of file YMF262.cc.

References openmsx::EG_ATTACK.

int openmsx::YMF262Slot::op_calc ( unsigned  phase,
unsigned  lfo_am 
) const
inline
template<typename Archive >
void openmsx::YMF262Slot::serialize ( Archive &  ar,
unsigned  version 
)

Definition at line 1817 of file YMF262.cc.

void openmsx::YMF262Slot::setFeedbackShift ( byte  value)
inline

Sets the amount of feedback [0..7].

Definition at line 100 of file YMF262.cc.

References fb_shift.

void openmsx::YMF262Slot::update_ar_dr ( )

Definition at line 1120 of file YMF262.cc.

void openmsx::YMF262Slot::update_rr ( )

Definition at line 1135 of file YMF262.cc.

Member Data Documentation

byte openmsx::YMF262Slot::AMmask

Definition at line 139 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::ar

Definition at line 142 of file YMF262.cc.

Referenced by YMF262Slot().

FreqIndex openmsx::YMF262Slot::Cnt
bool openmsx::YMF262Slot::CON

Definition at line 135 of file YMF262.cc.

Referenced by YMF262Slot().

int* openmsx::YMF262Slot::connect
byte openmsx::YMF262Slot::dr

Definition at line 143 of file YMF262.cc.

Referenced by YMF262Slot().

unsigned openmsx::YMF262Slot::eg_m_ar

Definition at line 122 of file YMF262.cc.

Referenced by YMF262Slot().

unsigned openmsx::YMF262Slot::eg_m_dr

Definition at line 123 of file YMF262.cc.

Referenced by YMF262Slot().

unsigned openmsx::YMF262Slot::eg_m_rr

Definition at line 124 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::eg_sel_ar

Definition at line 126 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::eg_sel_dr

Definition at line 128 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::eg_sel_rr

Definition at line 130 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::eg_sh_ar

Definition at line 125 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::eg_sh_dr

Definition at line 127 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::eg_sh_rr

Definition at line 129 of file YMF262.cc.

Referenced by YMF262Slot().

bool openmsx::YMF262Slot::eg_type

Definition at line 136 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::fb_shift

Definition at line 134 of file YMF262.cc.

Referenced by openmsx::YMF262Channel::chan_calc(), setFeedbackShift(), and YMF262Slot().

FreqIndex openmsx::YMF262Slot::Incr

Definition at line 109 of file YMF262.cc.

byte openmsx::YMF262Slot::key

Definition at line 132 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::ksl

Definition at line 146 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::KSR

Definition at line 145 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::ksr

Definition at line 147 of file YMF262.cc.

Referenced by YMF262Slot().

byte openmsx::YMF262Slot::mul

Definition at line 148 of file YMF262.cc.

Referenced by YMF262Slot().

int openmsx::YMF262Slot::op1_out[2]

Definition at line 111 of file YMF262.cc.

Referenced by openmsx::YMF262Channel::chan_calc(), and YMF262Slot().

byte openmsx::YMF262Slot::rr

Definition at line 144 of file YMF262.cc.

Referenced by YMF262Slot().

int openmsx::YMF262Slot::sl

Definition at line 117 of file YMF262.cc.

Referenced by YMF262Slot().

EnvelopeState openmsx::YMF262Slot::state

Definition at line 121 of file YMF262.cc.

Referenced by YMF262Slot().

unsigned openmsx::YMF262Slot::TL

Definition at line 114 of file YMF262.cc.

Referenced by YMF262Slot().

int openmsx::YMF262Slot::TLL

Definition at line 115 of file YMF262.cc.

Referenced by YMF262Slot().

bool openmsx::YMF262Slot::vib

Definition at line 140 of file YMF262.cc.

Referenced by YMF262Slot().

int openmsx::YMF262Slot::volume

Definition at line 116 of file YMF262.cc.

Referenced by YMF262Slot().

unsigned* openmsx::YMF262Slot::wavetable

Definition at line 119 of file YMF262.cc.

Referenced by YMF262Slot().


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