18 #ifndef MT32EMU_PART_H 19 #define MT32EMU_PART_H 22 #include "internals.h" 24 #include "Structures.h" 39 Poly *getFirst()
const;
40 Poly *getLast()
const;
41 void prepend(
Poly *poly);
42 void append(
Poly *poly);
44 void remove(
Poly *
const poly);
57 unsigned int activePartialCount;
58 unsigned int activeNonReleasingPolyCount;
63 unsigned int midiKeyToKey(
unsigned int midiKey);
65 bool abortFirstPoly(
unsigned int key);
72 char currentInstr[11];
80 Bit16u pitchBenderRange;
82 void backupCacheToPartials(
PatchCache cache[4]);
85 void stopNote(
unsigned int key);
86 const char *getName()
const;
89 Part(
Synth *synth,
unsigned int usePartNum);
92 void setDataEntryMSB(
unsigned char midiDataEntryMSB);
94 void setRPNLSB(
unsigned char midiRPNLSB);
95 void setRPNMSB(
unsigned char midiRPNMSB);
96 void resetAllControllers();
97 virtual void noteOn(
unsigned int midiKey,
unsigned int velocity);
98 virtual void noteOff(
unsigned int midiKey);
101 Bit8u getVolume()
const;
102 void setVolume(
unsigned int midiVolume);
103 Bit8u getVolumeOverride()
const;
104 void setVolumeOverride(Bit8u volumeOverride);
105 Bit8u getModulation()
const;
106 void setModulation(
unsigned int midiModulation);
107 Bit8u getExpression()
const;
108 void setExpression(
unsigned int midiExpression);
109 virtual void setPan(
unsigned int midiPan);
110 Bit32s getPitchBend()
const;
111 void setBend(
unsigned int midiBend);
112 virtual void setProgram(
unsigned int midiProgram);
113 void setHoldPedal(
bool pedalval);
114 void stopPedalHold();
115 void updatePitchBenderRange();
116 virtual void refresh();
117 virtual void refreshTimbre(
unsigned int absTimbreNum);
119 virtual unsigned int getAbsTimbreNum()
const;
120 const char *getCurrentInstr()
const;
121 const Poly *getFirstActivePoly()
const;
122 unsigned int getActivePartialCount()
const;
123 unsigned int getActiveNonReleasingPartialCount()
const;
124 Synth *getSynth()
const;
129 void partialDeactivated(
Poly *poly);
130 virtual void polyStateChanged(PolyState oldState, PolyState newState);
133 bool abortFirstPoly(PolyState polyState);
135 bool abortFirstPolyPreferHeld();
136 bool abortFirstPoly();
148 void refreshTimbre(
unsigned int timbreNum);
150 void noteOn(
unsigned int key,
unsigned int velocity);
151 void noteOff(
unsigned int midiKey);
152 unsigned int getAbsTimbreNum()
const;
153 void setPan(
unsigned int midiPan);
154 void setProgram(
unsigned int patchNum);
155 void polyStateChanged(PolyState oldState, PolyState newState);
160 #endif // #ifndef MT32EMU_PART_H Definition: Structures.h:47
Definition: Structures.h:111
Definition: Structures.h:136
Definition: Structures.h:246
Definition: Structures.h:143