56 void AddMidi(
int nTick,
unsigned char nStatus,
unsigned char nData1,
unsigned char nData2);
112 void AddNoteOn(
int nTick,
unsigned char nStatus,
unsigned char nData1,
unsigned char nData2);
124 void AddNoteOff(
int nTick,
unsigned char nStatus,
unsigned char nData1,
unsigned char nData2);
136 void AddOther(
int nTick,
unsigned char nStatus,
unsigned char nData1,
unsigned char nData2);
148 std::vector<TickMuse> mMessages;
149 std::vector<int> mOpenNotes;
151 std::unique_ptr<MidiChannelState> mState;
Muse that plays other muses, each at a tick of its own.
Definition multimuse.h:20
MuseFactory()
Construct an empty collector.
MultiMuse * ExtractAll()
Build a piece from every collected message.
unsigned char GetChannel() const
Report the MIDI channel of the collected messages.
~MuseFactory()
Release the collector.
void AddMidi(int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2)
Collect a channel message.
int CountMessages(int nStart, int nEnd)
Count the collected messages in a span of ticks.
MultiMuse * Extract(int nStart, int nEnd)
Build a piece from the messages in a span of ticks, starting at the first note on of the span.
Piece of MIDI performance that a Scheduler plays.
Definition muse.h:12
One collected channel message.
Definition musefactory.h:20
int mDuration
Definition musefactory.h:25
int mTick
Definition musefactory.h:21
unsigned char mStatus
Definition musefactory.h:22
unsigned char mData1
Definition musefactory.h:23
unsigned char mData2
Definition musefactory.h:24