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

#include <cmf.h>

Inheritance diagram for CcmfPlayer:
CPlayer

Public Member Functions

 CcmfPlayer (Copl *newopl)
 ~CcmfPlayer ()
bool load (const std::string &filename, const CFileProvider &fp)
bool update ()
void rewind (int subsong)
float getrefresh ()
std::string gettype ()
std::string gettitle ()
std::string getauthor ()
std::string getdesc ()
Public Member Functions inherited from CPlayer
 CPlayer (Copl *newopl)
virtual ~CPlayer ()
void seek (unsigned long ms)
unsigned long songlength (int subsong=-1)
virtual unsigned int getpatterns ()
virtual unsigned int getpattern ()
virtual unsigned int getorders ()
virtual unsigned int getorder ()
virtual unsigned int getrow ()
virtual unsigned int getspeed ()
virtual unsigned int getsubsongs ()
virtual unsigned int getsubsong ()
virtual unsigned int getinstruments ()
virtual std::string getinstrument (unsigned int n)

Static Public Member Functions

static CPlayerfactory (Copl *newopl)

Protected Member Functions

uint32_t readMIDINumber ()
void writeInstrumentSettings (uint8_t iChannel, uint8_t iOperatorSource, uint8_t iOperatorDest, uint8_t iInstrument)
void writeOPL (uint8_t iRegister, uint8_t iValue)
void getFreq (uint8_t iChannel, uint8_t iNote, uint8_t *iBlock, uint16_t *iOPLFNum)
void cmfNoteOn (uint8_t iChannel, uint8_t iNote, uint8_t iVelocity)
void cmfNoteOff (uint8_t iChannel, uint8_t iNote, uint8_t iVelocity)
void cmfNoteUpdate (uint8_t iChannel)
uint8_t getPercChannel (uint8_t iChannel)
void MIDIchangeInstrument (uint8_t iOPLChannel, uint8_t iMIDIChannel, uint8_t iNewInstrument)
void MIDIcontroller (uint8_t iChannel, uint8_t iController, uint8_t iValue)

Private Attributes

uint8_tdata
int iPlayPointer
int iSongLen
CMFHEADER cmfHeader
SBIpInstruments
bool bPercussive
uint8_t iCurrentRegs [256]
uint8_t iPrevCommand
uint8_t iNotePlaying [16]
bool bNoteFix [16]
int iNoteCount
MIDICHANNEL chMIDI [16]
OPLCHANNEL chOPL [9]
int iDelayRemaining
bool bSongEnd
std::string strTitle
std::string strComposer
std::string strRemarks

Additional Inherited Members

Protected Attributes inherited from CPlayer
Coplopl
CAdPlugDatabasedb
Static Protected Attributes inherited from CPlayer
static const unsigned short note_table [12]
static const unsigned char op_table [9]

Constructor & Destructor Documentation

◆ CcmfPlayer()

CcmfPlayer::CcmfPlayer ( Copl * newopl)

◆ ~CcmfPlayer()

CcmfPlayer::~CcmfPlayer ( )

Member Function Documentation

◆ cmfNoteOff()

void CcmfPlayer::cmfNoteOff ( uint8_t iChannel,
uint8_t iNote,
uint8_t iVelocity )
protected

◆ cmfNoteOn()

void CcmfPlayer::cmfNoteOn ( uint8_t iChannel,
uint8_t iNote,
uint8_t iVelocity )
protected

◆ cmfNoteUpdate()

void CcmfPlayer::cmfNoteUpdate ( uint8_t iChannel)
protected

◆ factory()

CPlayer * CcmfPlayer::factory ( Copl * newopl)
static

◆ getauthor()

std::string CcmfPlayer::getauthor ( )
virtual

Reimplemented from CPlayer.

◆ getdesc()

std::string CcmfPlayer::getdesc ( )
virtual

Reimplemented from CPlayer.

◆ getFreq()

void CcmfPlayer::getFreq ( uint8_t iChannel,
uint8_t iNote,
uint8_t * iBlock,
uint16_t * iOPLFNum )
protected

◆ getPercChannel()

uint8_t CcmfPlayer::getPercChannel ( uint8_t iChannel)
protected

◆ getrefresh()

float CcmfPlayer::getrefresh ( )
virtual

Implements CPlayer.

◆ gettitle()

std::string CcmfPlayer::gettitle ( )
virtual

Reimplemented from CPlayer.

◆ gettype()

std::string CcmfPlayer::gettype ( )
inlinevirtual

Implements CPlayer.

◆ load()

bool CcmfPlayer::load ( const std::string & filename,
const CFileProvider & fp )
virtual

Implements CPlayer.

◆ MIDIchangeInstrument()

void CcmfPlayer::MIDIchangeInstrument ( uint8_t iOPLChannel,
uint8_t iMIDIChannel,
uint8_t iNewInstrument )
protected

◆ MIDIcontroller()

void CcmfPlayer::MIDIcontroller ( uint8_t iChannel,
uint8_t iController,
uint8_t iValue )
protected

◆ readMIDINumber()

uint32_t CcmfPlayer::readMIDINumber ( )
protected

◆ rewind()

void CcmfPlayer::rewind ( int subsong)
virtual

Implements CPlayer.

◆ update()

bool CcmfPlayer::update ( )
virtual

Implements CPlayer.

◆ writeInstrumentSettings()

void CcmfPlayer::writeInstrumentSettings ( uint8_t iChannel,
uint8_t iOperatorSource,
uint8_t iOperatorDest,
uint8_t iInstrument )
protected

◆ writeOPL()

void CcmfPlayer::writeOPL ( uint8_t iRegister,
uint8_t iValue )
protected

Member Data Documentation

◆ bNoteFix

bool CcmfPlayer::bNoteFix[16]
private

◆ bPercussive

bool CcmfPlayer::bPercussive
private

◆ bSongEnd

bool CcmfPlayer::bSongEnd
private

◆ chMIDI

MIDICHANNEL CcmfPlayer::chMIDI[16]
private

◆ chOPL

OPLCHANNEL CcmfPlayer::chOPL[9]
private

◆ cmfHeader

CMFHEADER CcmfPlayer::cmfHeader
private

◆ data

uint8_t* CcmfPlayer::data
private

◆ iCurrentRegs

uint8_t CcmfPlayer::iCurrentRegs[256]
private

◆ iDelayRemaining

int CcmfPlayer::iDelayRemaining
private

◆ iNoteCount

int CcmfPlayer::iNoteCount
private

◆ iNotePlaying

uint8_t CcmfPlayer::iNotePlaying[16]
private

◆ iPlayPointer

int CcmfPlayer::iPlayPointer
private

◆ iPrevCommand

uint8_t CcmfPlayer::iPrevCommand
private

◆ iSongLen

int CcmfPlayer::iSongLen
private

◆ pInstruments

SBI* CcmfPlayer::pInstruments
private

◆ strComposer

std::string CcmfPlayer::strComposer
private

◆ strRemarks

std::string CcmfPlayer::strRemarks
private

◆ strTitle

std::string CcmfPlayer::strTitle
private

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