openMSX
Public Member Functions | Public Attributes | List of all members
openmsx::YM2413Okazaki::Patch Class Reference

#include <YM2413Okazaki.hh>

Public Member Functions

 Patch ()
 Creates an uninitialized Patch object; call initXXX() before use. More...
 
void initModulator (const uint8_t *data)
 
void initCarrier (const uint8_t *data)
 
void setKR (uint8_t value)
 Sets the Key Scale of Rate (0 or 1). More...
 
void setML (uint8_t value)
 Sets the frequency multiplier factor [0..15]. More...
 
void setKL (uint8_t value)
 Sets Key scale level [0..3]. More...
 
void setTL (uint8_t value)
 Set volume (total level) [0..63]. More...
 
void setWF (uint8_t value)
 Set waveform [0..1]. More...
 
void setFB (uint8_t value)
 Sets the amount of feedback [0..7]. More...
 
void setSL (uint8_t value)
 Sets sustain level [0..15]. More...
 

Public Attributes

const unsigned * WF
 
const uint8_t * KL
 
unsigned SL
 
uint8_t AMPM
 
bool EG
 
uint8_t KR
 
uint8_t ML
 
uint8_t TL
 
uint8_t FB
 
uint8_t AR
 
uint8_t DR
 
uint8_t RR
 

Detailed Description

Definition at line 20 of file YM2413Okazaki.hh.

Constructor & Destructor Documentation

◆ Patch()

openmsx::YM2413Okazaki::Patch::Patch ( )

Creates an uninitialized Patch object; call initXXX() before use.

This approach makes it possible to create an array of Patches.

Definition at line 309 of file YM2413Okazaki.cc.

References setFB(), setKL(), setKR(), setML(), setSL(), setTL(), and setWF().

Member Function Documentation

◆ initCarrier()

void openmsx::YM2413Okazaki::Patch::initCarrier ( const uint8_t *  data)

◆ initModulator()

void openmsx::YM2413Okazaki::Patch::initModulator ( const uint8_t *  data)

◆ setFB()

void openmsx::YM2413Okazaki::Patch::setFB ( uint8_t  value)
inline

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

Definition at line 375 of file YM2413Okazaki.cc.

References FB.

Referenced by initCarrier(), initModulator(), and Patch().

◆ setKL()

void openmsx::YM2413Okazaki::Patch::setKL ( uint8_t  value)
inline

Sets Key scale level [0..3].

Definition at line 361 of file YM2413Okazaki.cc.

References KL, and openmsx::YM2413Okazaki::tllTab.

Referenced by initCarrier(), initModulator(), and Patch().

◆ setKR()

void openmsx::YM2413Okazaki::Patch::setKR ( uint8_t  value)
inline

Sets the Key Scale of Rate (0 or 1).

Definition at line 353 of file YM2413Okazaki.cc.

References KR.

Referenced by initCarrier(), initModulator(), and Patch().

◆ setML()

void openmsx::YM2413Okazaki::Patch::setML ( uint8_t  value)
inline

Sets the frequency multiplier factor [0..15].

Definition at line 357 of file YM2413Okazaki.cc.

References ML, and openmsx::YM2413Okazaki::mlTable.

Referenced by initCarrier(), initModulator(), and Patch().

◆ setSL()

void openmsx::YM2413Okazaki::Patch::setSL ( uint8_t  value)
inline

Sets sustain level [0..15].

Definition at line 379 of file YM2413Okazaki.cc.

References SL, and openmsx::YM2413Okazaki::slTab.

Referenced by initCarrier(), initModulator(), and Patch().

◆ setTL()

void openmsx::YM2413Okazaki::Patch::setTL ( uint8_t  value)
inline

Set volume (total level) [0..63].

Definition at line 365 of file YM2413Okazaki.cc.

References TL.

Referenced by initCarrier(), initModulator(), and Patch().

◆ setWF()

void openmsx::YM2413Okazaki::Patch::setWF ( uint8_t  value)
inline

Set waveform [0..1].

Definition at line 371 of file YM2413Okazaki.cc.

References openmsx::YM2413Okazaki::waveform, and WF.

Referenced by initCarrier(), initModulator(), and Patch().

Member Data Documentation

◆ AMPM

uint8_t openmsx::YM2413Okazaki::Patch::AMPM

◆ AR

uint8_t openmsx::YM2413Okazaki::Patch::AR

◆ DR

uint8_t openmsx::YM2413Okazaki::Patch::DR

◆ EG

bool openmsx::YM2413Okazaki::Patch::EG

◆ FB

uint8_t openmsx::YM2413Okazaki::Patch::FB

◆ KL

const uint8_t* openmsx::YM2413Okazaki::Patch::KL

Definition at line 46 of file YM2413Okazaki.hh.

Referenced by setKL(), and openmsx::YM2413Okazaki::Slot::updateTLL().

◆ KR

uint8_t openmsx::YM2413Okazaki::Patch::KR

Definition at line 50 of file YM2413Okazaki.hh.

Referenced by setKR(), and openmsx::YM2413Okazaki::Slot::updateRKS().

◆ ML

uint8_t openmsx::YM2413Okazaki::Patch::ML

Definition at line 51 of file YM2413Okazaki.hh.

Referenced by setML(), and openmsx::YM2413Okazaki::Slot::updatePG().

◆ RR

uint8_t openmsx::YM2413Okazaki::Patch::RR

◆ SL

unsigned openmsx::YM2413Okazaki::Patch::SL

Definition at line 47 of file YM2413Okazaki.hh.

Referenced by openmsx::YM2413Okazaki::Slot::setEnvelopeState(), and setSL().

◆ TL

uint8_t openmsx::YM2413Okazaki::Patch::TL

Definition at line 52 of file YM2413Okazaki.hh.

Referenced by setTL(), and openmsx::YM2413Okazaki::Slot::updateTLL().

◆ WF

const unsigned* openmsx::YM2413Okazaki::Patch::WF

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