|
wavelength 1.0.0
|
Checker of the channel messages of one MIDI track for authoring errors. More...
#include <midivalidator.h>
Public Member Functions | |
| MidiValidator (int nTrack, TrackBuilder::ErrorHandler pfnError, int nChannel, bool bRequirePrograms) | |
| Construct a checker. | |
| ~MidiValidator () | |
| Release the checker. | |
| void | Check (int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) |
| Check one channel message. | |
Static Public Attributes | |
| static constexpr int | kNone = -1 |
| The value of the channel and tick members before one is known. | |
Checker of the channel messages of one MIDI track for authoring errors.
The errors are messages on the wrong channel, duplicate notes, program changes, and controller messages within one tick, and a note before the first program or bank change. The class is not polymorphic and has no RTTI. The name is inferred. The object is 0x4c bytes.
| MidiValidator::MidiValidator | ( | int | nTrack, |
| TrackBuilder::ErrorHandler | pfnError, | ||
| int | nChannel, | ||
| bool | bRequirePrograms ) |
Construct a checker.
| nTrack | The number of the MIDI track the error messages give. |
| pfnError | The routine that reports an error, or null to print it. |
| nChannel | The channel every message must use, or kNone for any. |
| bRequirePrograms | Report a note that precedes the first program or bank change. |
| MidiValidator::~MidiValidator | ( | ) |
Release the checker.
| void MidiValidator::Check | ( | int | nTick, |
| unsigned char | nStatus, | ||
| unsigned char | nData1, | ||
| unsigned char | nData2 ) |
Check one channel message.
| nTick | The tick. |
| nStatus | The status byte. |
| nData1 | The first data byte. |
| nData2 | The second data byte. |
|
staticconstexpr |
The value of the channel and tick members before one is known.