mirror of https://github.com/AxioDL/amuse.git
Sequencer: Use std::array for m_ctrlVals
This is the only array in the header that isn't using std::array.
This commit is contained in:
parent
f50d67eff0
commit
5f76f0ecbf
|
@ -57,7 +57,7 @@ class Sequencer : public Entity {
|
||||||
std::unordered_map<uint8_t, ObjToken<Voice>> m_chanVoxs;
|
std::unordered_map<uint8_t, ObjToken<Voice>> m_chanVoxs;
|
||||||
std::unordered_set<ObjToken<Voice>> m_keyoffVoxs;
|
std::unordered_set<ObjToken<Voice>> m_keyoffVoxs;
|
||||||
ObjToken<Voice> m_lastVoice;
|
ObjToken<Voice> m_lastVoice;
|
||||||
int8_t m_ctrlVals[128] = {}; /**< MIDI controller values */
|
std::array<int8_t, 128> m_ctrlVals{}; /**< MIDI controller values */
|
||||||
float m_curPitchWheel = 0.f; /**< MIDI pitch-wheel */
|
float m_curPitchWheel = 0.f; /**< MIDI pitch-wheel */
|
||||||
int8_t m_pitchWheelRange = -1; /**< Pitch wheel range settable by RPN 0 */
|
int8_t m_pitchWheelRange = -1; /**< Pitch wheel range settable by RPN 0 */
|
||||||
int8_t m_curProgram = 0; /**< MIDI program number */
|
int8_t m_curProgram = 0; /**< MIDI program number */
|
||||||
|
|
|
@ -208,7 +208,7 @@ ObjToken<Voice> Sequencer::ChannelState::keyOn(uint8_t note, uint8_t velocity) {
|
||||||
if (*ret) {
|
if (*ret) {
|
||||||
(*ret)->m_sequencer = m_parent;
|
(*ret)->m_sequencer = m_parent;
|
||||||
m_chanVoxs[note] = *ret;
|
m_chanVoxs[note] = *ret;
|
||||||
(*ret)->installCtrlValues(m_ctrlVals);
|
(*ret)->installCtrlValues(m_ctrlVals.data());
|
||||||
|
|
||||||
ObjectId oid;
|
ObjectId oid;
|
||||||
bool res;
|
bool res;
|
||||||
|
|
Loading…
Reference in New Issue