ScummVM API documentation
MT32Emu::Part Class Reference
Inheritance diagram for MT32Emu::Part:
MT32Emu::RhythmPart

Public Member Functions

 Part (Synth *synth, unsigned int usePartNum)
 
void reset ()
 
void setDataEntryMSB (unsigned char midiDataEntryMSB)
 
void setNRPN ()
 
void setRPNLSB (unsigned char midiRPNLSB)
 
void setRPNMSB (unsigned char midiRPNMSB)
 
void resetAllControllers ()
 
virtual void noteOn (unsigned int midiKey, unsigned int velocity)
 
virtual void noteOff (unsigned int midiKey)
 
void allNotesOff ()
 
void allSoundOff ()
 
Bit8u getVolume () const
 
void setVolume (unsigned int midiVolume)
 
Bit8u getVolumeOverride () const
 
void setVolumeOverride (Bit8u volumeOverride)
 
Bit8u getModulation () const
 
void setModulation (unsigned int midiModulation)
 
Bit8u getExpression () const
 
void setExpression (unsigned int midiExpression)
 
virtual void setPan (unsigned int midiPan)
 
Bit32s getPitchBend () const
 
void setBend (unsigned int midiBend)
 
virtual void setProgram (unsigned int midiProgram)
 
void setHoldPedal (bool pedalval)
 
void stopPedalHold ()
 
void updatePitchBenderRange ()
 
virtual void refresh ()
 
virtual void refreshTimbre (unsigned int absTimbreNum)
 
virtual void setTimbre (TimbreParam *timbre)
 
virtual unsigned int getAbsTimbreNum () const
 
const char * getCurrentInstr () const
 
const PolygetFirstActivePoly () const
 
unsigned int getActivePartialCount () const
 
unsigned int getActiveNonReleasingPartialCount () const
 
SynthgetSynth () const
 
const MemParams::PatchTempgetPatchTemp () const
 
void partialDeactivated (Poly *poly)
 
virtual void polyStateChanged (PolyState oldState, PolyState newState)
 
bool abortFirstPoly (PolyState polyState)
 
bool abortFirstPolyPreferHeld ()
 
bool abortFirstPoly ()
 

Protected Member Functions

void backupCacheToPartials (PatchCache cache[4])
 
void cacheTimbre (PatchCache cache[4], const TimbreParam *timbre)
 
void playPoly (const PatchCache cache[4], const MemParams::RhythmTemp *rhythmTemp, unsigned int midiKey, unsigned int key, unsigned int velocity)
 
void stopNote (unsigned int key)
 
const char * getName () const
 

Protected Attributes

Synthsynth
 
MemParams::PatchTemppatchTemp
 
char name [8]
 
char currentInstr [11]
 
Bit8u volumeOverride
 
Bit8u modulation
 
Bit8u expression
 
Bit32s pitchBend
 
bool nrpn
 
Bit16u rpn
 
Bit16u pitchBenderRange
 

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