LMMS
Loading...
Searching...
No Matches
Cad262Driver Class Reference

#include <sop.h>

Public Member Functions

 Cad262Driver (Copl *newopl)
 ~Cad262Driver ()
void SoundWarmInit ()
void SetYM_262_SOP (int VX)
void SetMode_SOP (int mode)
void SetStereoPan_SOP (int chan, int value)
void SetVoiceVolume_SOP (unsigned chan, unsigned vol)
void SetVoiceTimbre_SOP (unsigned chan, unsigned char *array)
void SetVoicePitch_SOP (unsigned chan, int pitch)
void NoteOn_SOP (unsigned chan, unsigned pitch)
void NoteOff_SOP (unsigned chan)
int Set_4OP_Mode (unsigned chan, unsigned value)

Static Protected Attributes

static const int fNumTbl [TABLE_SIZE]
static const unsigned char SlotX [maxVoices *2]
static const unsigned char VolReg [11 *2]
static const unsigned MOD12 [OCTAVE *11]
static const unsigned DIV12 [OCTAVE *8]

Private Member Functions

void UpdateFNums (int chan)
void SndOutput1 (int addr, int value)
void SndOutput3 (int addr, int value)
void SEND_INS (int base_addr, unsigned char *value, int mode)
void SetFreq_SOP (int voice, unsigned note, int pitch, int keyOn)

Private Attributes

Coplopl
char percussion
unsigned char VolumeTable [64 *128]
char voiceNote [20]
char voiceKeyOn [20]
unsigned char vPitchBend [20]
unsigned char Ksl [20]
unsigned char Ksl2 [20]
unsigned char Ksl2V [20]
unsigned char VoiceVolume [20]
unsigned char OP_MASK
unsigned char ymbuf [2 *YMB_SIZE]
unsigned char OP4 [20]
unsigned char Stereo [22]

Constructor & Destructor Documentation

◆ Cad262Driver()

Cad262Driver::Cad262Driver ( Copl * newopl)
inline

◆ ~Cad262Driver()

Cad262Driver::~Cad262Driver ( )
inline

Member Function Documentation

◆ NoteOff_SOP()

void Cad262Driver::NoteOff_SOP ( unsigned chan)

◆ NoteOn_SOP()

void Cad262Driver::NoteOn_SOP ( unsigned chan,
unsigned pitch )

◆ SEND_INS()

void Cad262Driver::SEND_INS ( int base_addr,
unsigned char * value,
int mode )
private

◆ Set_4OP_Mode()

int Cad262Driver::Set_4OP_Mode ( unsigned chan,
unsigned value )

◆ SetFreq_SOP()

void Cad262Driver::SetFreq_SOP ( int voice,
unsigned note,
int pitch,
int keyOn )
private

◆ SetMode_SOP()

void Cad262Driver::SetMode_SOP ( int mode)

◆ SetStereoPan_SOP()

void Cad262Driver::SetStereoPan_SOP ( int chan,
int value )

◆ SetVoicePitch_SOP()

void Cad262Driver::SetVoicePitch_SOP ( unsigned chan,
int pitch )

◆ SetVoiceTimbre_SOP()

void Cad262Driver::SetVoiceTimbre_SOP ( unsigned chan,
unsigned char * array )

◆ SetVoiceVolume_SOP()

void Cad262Driver::SetVoiceVolume_SOP ( unsigned chan,
unsigned vol )

◆ SetYM_262_SOP()

void Cad262Driver::SetYM_262_SOP ( int VX)

◆ SndOutput1()

void Cad262Driver::SndOutput1 ( int addr,
int value )
private

◆ SndOutput3()

void Cad262Driver::SndOutput3 ( int addr,
int value )
private

◆ SoundWarmInit()

void Cad262Driver::SoundWarmInit ( )

◆ UpdateFNums()

void Cad262Driver::UpdateFNums ( int chan)
private

Member Data Documentation

◆ DIV12

const unsigned Cad262Driver::DIV12
staticprotected
Initial value:
={
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7
}

◆ fNumTbl

const int Cad262Driver::fNumTbl
staticprotected

◆ Ksl

unsigned char Cad262Driver::Ksl[20]
private

◆ Ksl2

unsigned char Cad262Driver::Ksl2[20]
private

◆ Ksl2V

unsigned char Cad262Driver::Ksl2V[20]
private

◆ MOD12

const unsigned Cad262Driver::MOD12
staticprotected
Initial value:
={
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11
}

◆ OP4

unsigned char Cad262Driver::OP4[20]
private

◆ OP_MASK

unsigned char Cad262Driver::OP_MASK
private

◆ opl

Copl* Cad262Driver::opl
private

◆ percussion

char Cad262Driver::percussion
private

◆ SlotX

const unsigned char Cad262Driver::SlotX
staticprotected
Initial value:
={
0, 1, 2, 8, 9, 10, 16, 17, 18, 0, 0, 0, 1, 2, 8, 9, 10, 16, 17, 18,
0, 1, 2, 8, 9, 10, 16, 20, 18, 21, 17, 0, 1, 2, 8, 9, 10, 16, 17, 18
}

◆ Stereo

unsigned char Cad262Driver::Stereo[22]
private

◆ voiceKeyOn

char Cad262Driver::voiceKeyOn[20]
private

◆ voiceNote

char Cad262Driver::voiceNote[20]
private

◆ VoiceVolume

unsigned char Cad262Driver::VoiceVolume[20]
private

◆ VolReg

const unsigned char Cad262Driver::VolReg
staticprotected
Initial value:
={
0x43, 0x44, 0x45, 0x4B, 0x4C, 0x4D, 0x53, 0x54, 0x55, 0, 0,
0x43, 0x44, 0x45, 0x4B, 0x4C, 0x4D, 0x53, 0x54, 0x52, 0x55, 0x51
}

◆ VolumeTable

unsigned char Cad262Driver::VolumeTable[64 *128]
private

◆ vPitchBend

unsigned char Cad262Driver::vPitchBend[20]
private

◆ ymbuf

unsigned char Cad262Driver::ymbuf[2 *YMB_SIZE]
private

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