mirror of
https://github.com/AxioDL/amuse.git
synced 2025-12-08 13:14:58 +00:00
Sequencer: Always initialize ChannelState channel ID
Provides a deterministic initial state for the default constructor case.
This commit is contained in:
@@ -45,7 +45,7 @@ class Sequencer : public Entity {
|
|||||||
/** State of a single MIDI channel */
|
/** State of a single MIDI channel */
|
||||||
struct ChannelState {
|
struct ChannelState {
|
||||||
Sequencer* m_parent = nullptr;
|
Sequencer* m_parent = nullptr;
|
||||||
uint8_t m_chanId;
|
uint8_t m_chanId = 0;
|
||||||
const SongGroupIndex::MIDISetup* m_setup = nullptr; /* Channel defaults to program 0 if null */
|
const SongGroupIndex::MIDISetup* m_setup = nullptr; /* Channel defaults to program 0 if null */
|
||||||
const SongGroupIndex::PageEntry* m_page = nullptr;
|
const SongGroupIndex::PageEntry* m_page = nullptr;
|
||||||
~ChannelState();
|
~ChannelState();
|
||||||
|
|||||||
Reference in New Issue
Block a user