|
wavelength 1.0.0
|
Collector of the channel messages of one MIDI channel that cuts MultiMuse pieces out of them. More...
#include <musefactory.h>
Classes | |
| struct | TickMuse |
| One collected channel message. More... | |
Public Member Functions | |
| MuseFactory () | |
| Construct an empty collector. | |
| ~MuseFactory () | |
| Release the collector. | |
| void | AddMidi (int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) |
| Collect a channel message. | |
| unsigned char | GetChannel () const |
| Report the MIDI channel of the collected messages. | |
| int | CountMessages (int nStart, int nEnd) |
| Count the collected messages in a span of ticks. | |
| MultiMuse * | ExtractAll () |
| Build a piece from every collected message. | |
| 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. | |
Collector of the channel messages of one MIDI channel that cuts MultiMuse pieces out of them.
The class is not polymorphic. The RTTI records the name through the nested MuseFactory::TickMuse. A note on takes its length from the next note off of its note. A piece cut from the middle of the messages starts with the muses that restore the controller state in force.
| MuseFactory::MuseFactory | ( | ) |
Construct an empty collector.
| MuseFactory::~MuseFactory | ( | ) |
Release the collector.
| void MuseFactory::AddMidi | ( | int | nTick, |
| unsigned char | nStatus, | ||
| unsigned char | nData1, | ||
| unsigned char | nData2 ) |
Collect a channel message.
The first message sets the channel.
| nTick | The tick. |
| nStatus | The status byte. |
| nData1 | The first data byte. |
| nData2 | The second data byte. |
| unsigned char MuseFactory::GetChannel | ( | ) | const |
Report the MIDI channel of the collected messages.
| int MuseFactory::CountMessages | ( | int | nStart, |
| int | nEnd ) |
Count the collected messages in a span of ticks.
An unpaired note on does not count.
| nStart | The first tick of the span. |
| nEnd | The tick after the span. |
| MultiMuse * MuseFactory::ExtractAll | ( | ) |
Build a piece from every collected message.
| MultiMuse * MuseFactory::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.
| nStart | The first tick of the span. |
| nEnd | The tick after the span. |