openMSX
|
#include <YM2413Okazaki.hh>
Public Member Functions | |
Patch () | |
Creates an uninitialized Patch object; call initXXX() before use. | |
void | initModulator (std::span< const uint8_t, 8 > data) |
void | initCarrier (std::span< const uint8_t, 8 > data) |
void | setKR (uint8_t value) |
Sets the Key Scale of Rate (0 or 1). | |
void | setML (uint8_t value) |
Sets the frequency multiplier factor [0..15]. | |
void | setKL (uint8_t value) |
Sets Key scale level [0..3]. | |
void | setTL (uint8_t value) |
Set volume (total level) [0..63]. | |
void | setWF (uint8_t value) |
Set waveform [0..1]. | |
void | setFB (uint8_t value) |
Sets the amount of feedback [0..7]. | |
void | setSL (uint8_t value) |
Sets sustain level [0..15]. | |
Public Attributes | |
std::span< const unsigned, PG_WIDTH > | WF |
std::span< const uint8_t, 16 *8 > | KL |
unsigned | SL |
uint8_t | AMPM = 0 |
bool | EG = false |
uint8_t | KR |
uint8_t | ML |
uint8_t | TL |
uint8_t | FB |
uint8_t | AR = 0 |
uint8_t | DR = 0 |
uint8_t | RR = 0 |
Definition at line 23 of file YM2413Okazaki.hh.
openmsx::YM2413Okazaki::Patch::Patch | ( | ) |
void openmsx::YM2413Okazaki::Patch::initCarrier | ( | std::span< const uint8_t, 8 > | data | ) |
void openmsx::YM2413Okazaki::Patch::initModulator | ( | std::span< const uint8_t, 8 > | data | ) |
void openmsx::YM2413Okazaki::Patch::setFB | ( | uint8_t | value | ) |
Sets the amount of feedback [0..7].
Definition at line 374 of file YM2413Okazaki.cc.
References FB.
Referenced by initCarrier(), initModulator(), and Patch().
void openmsx::YM2413Okazaki::Patch::setKL | ( | uint8_t | value | ) |
Sets Key scale level [0..3].
Definition at line 361 of file YM2413Okazaki.cc.
References KL.
Referenced by initCarrier(), and initModulator().
void openmsx::YM2413Okazaki::Patch::setKR | ( | uint8_t | value | ) |
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().
void openmsx::YM2413Okazaki::Patch::setML | ( | uint8_t | value | ) |
Sets the frequency multiplier factor [0..15].
Definition at line 357 of file YM2413Okazaki.cc.
References ML.
Referenced by initCarrier(), initModulator(), and Patch().
void openmsx::YM2413Okazaki::Patch::setSL | ( | uint8_t | value | ) |
Sets sustain level [0..15].
Definition at line 378 of file YM2413Okazaki.cc.
References SL.
Referenced by initCarrier(), initModulator(), and Patch().
void openmsx::YM2413Okazaki::Patch::setTL | ( | uint8_t | value | ) |
Set volume (total level) [0..63].
Definition at line 365 of file YM2413Okazaki.cc.
References TL.
Referenced by initCarrier(), initModulator(), and Patch().
void openmsx::YM2413Okazaki::Patch::setWF | ( | uint8_t | value | ) |
Set waveform [0..1].
Definition at line 370 of file YM2413Okazaki.cc.
References WF.
Referenced by initCarrier(), and initModulator().
uint8_t openmsx::YM2413Okazaki::Patch::AMPM = 0 |
Definition at line 51 of file YM2413Okazaki.hh.
Referenced by openmsx::YM2413Okazaki::YM2413::calcChannel(), openmsx::YM2413Okazaki::YM2413::generateChannels(), initCarrier(), and initModulator().
uint8_t openmsx::YM2413Okazaki::Patch::AR = 0 |
Definition at line 57 of file YM2413Okazaki.hh.
Referenced by initCarrier(), initModulator(), openmsx::YM2413Okazaki::Slot::setEnvelopeState(), and openmsx::YM2413Okazaki::Slot::updateEG().
uint8_t openmsx::YM2413Okazaki::Patch::DR = 0 |
Definition at line 58 of file YM2413Okazaki.hh.
Referenced by initCarrier(), initModulator(), and openmsx::YM2413Okazaki::Slot::updateEG().
bool openmsx::YM2413Okazaki::Patch::EG = false |
Definition at line 52 of file YM2413Okazaki.hh.
Referenced by openmsx::YM2413Okazaki::Slot::calc_envelope_outline(), initCarrier(), initModulator(), openmsx::YM2413Okazaki::Slot::setPatch(), and openmsx::YM2413Okazaki::Slot::updateEG().
uint8_t openmsx::YM2413Okazaki::Patch::FB |
Definition at line 56 of file YM2413Okazaki.hh.
Referenced by openmsx::YM2413Okazaki::Slot::calc_slot_mod(), openmsx::YM2413Okazaki::YM2413::generateChannels(), and setFB().
std::span<const uint8_t, 16 * 8> openmsx::YM2413Okazaki::Patch::KL |
Definition at line 49 of file YM2413Okazaki.hh.
Referenced by setKL(), and openmsx::YM2413Okazaki::Slot::updateTLL().
uint8_t openmsx::YM2413Okazaki::Patch::KR |
Definition at line 53 of file YM2413Okazaki.hh.
Referenced by setKR(), and openmsx::YM2413Okazaki::Slot::updateRKS().
uint8_t openmsx::YM2413Okazaki::Patch::ML |
Definition at line 54 of file YM2413Okazaki.hh.
Referenced by setML(), and openmsx::YM2413Okazaki::Slot::updatePG().
uint8_t openmsx::YM2413Okazaki::Patch::RR = 0 |
Definition at line 59 of file YM2413Okazaki.hh.
Referenced by initCarrier(), initModulator(), and openmsx::YM2413Okazaki::Slot::updateEG().
unsigned openmsx::YM2413Okazaki::Patch::SL |
Definition at line 50 of file YM2413Okazaki.hh.
Referenced by openmsx::YM2413Okazaki::Slot::setEnvelopeState(), and setSL().
uint8_t openmsx::YM2413Okazaki::Patch::TL |
Definition at line 55 of file YM2413Okazaki.hh.
Referenced by setTL(), and openmsx::YM2413Okazaki::Slot::updateTLL().
std::span<const unsigned, PG_WIDTH> openmsx::YM2413Okazaki::Patch::WF |
Definition at line 48 of file YM2413Okazaki.hh.
Referenced by openmsx::YM2413Okazaki::Slot::calc_slot_car(), openmsx::YM2413Okazaki::Slot::calc_slot_mod(), openmsx::YM2413Okazaki::Slot::calc_slot_tom(), and setWF().