|
resonance 1.0.1
|
Sink a Standard MIDI File reader delivers one event at a time to. More...
#include <receiver.h>

Public Member Functions | |
| virtual | ~Receiver () |
| virtual void | NewTrack (unsigned char nTrack) |
| Begin one track of the file. | |
| virtual void | NoteOn (int nTick, unsigned char nNote, unsigned char nVelocity, unsigned char nChannel) |
| Receive a note on. | |
| virtual void | NoteOff (int nTick, unsigned char nNote, unsigned char nChannel) |
| Receive a note off. | |
| virtual void | Controller (int nTick, unsigned char nController, unsigned char nValue, unsigned char nChannel) |
| Receive a controller change. | |
| virtual void | ProgramChange (int nTick, unsigned char nProgram, unsigned char nChannel) |
| Receive a program change. | |
| virtual void | PitchBend (int nTick, unsigned char nLow, unsigned char nHigh, unsigned char nChannel) |
| Receive a pitch bend. | |
| virtual void | Tempo (int nTick, int nMicrosecondsPerQuarter) |
| Receive a tempo meta event. | |
| virtual void | TextEvent (int nTick, const char *pText, unsigned char nType) |
| Receive one text meta event. | |
| virtual void | EndTrack () |
| End the track NewTrack() began. | |
| virtual void | AllDone () |
| Report that the whole file has been delivered. | |
| virtual void | UnusedFirstHook () |
| Do nothing. | |
| virtual void | UnusedSecondHook () |
| Do nothing. | |
| virtual void | UnusedThirdHook () |
| Do nothing. | |
| virtual void | UnusedFourthHook () |
| Do nothing. | |
Sink a Standard MIDI File reader delivers one event at a time to.
Its RTTI descriptor is at 0x0086f5f0. It is a leaf with no base list. The class has no data member. The vptr sits at +0x00, and the object is four bytes. Its table is at 0x007e7740 and has sixteen entries with a zero terminator at index 16. Every one of the fourteen virtuals below is a two-instruction jr ra default. An unoverridden slot does nothing.
LevelConverter is the one subclass in the image, and it overrides slots 2 through 10. Mid::Reader is the one caller, and its call sites fix slots 2 through 11. Slots 3 through 7 each receive one channel event, and LevelConverter forwards each to LevelBuilder with a MIDI status byte (0x90 note on, 0x80 note off, 0xb0 controller, 0xc0 program change, and 0xe0 pitch bend, in slot order). The reader calls slot 8 for a tempo meta event, slot 9 for a text meta event, slot 10 at the end of each track, and slot 11 at the end of the file.
Slots 12 through 15 have no override and no caller anywhere. An empty body is the whole of what the image records for each. Their names, parameter lists, and return types are all unrecovered, and each is declared below with its index because a gap in the sequence would describe a different class.
Every method name here is inferred. RTTI in this image yields class names only.
|
virtual |
|
virtual |
Begin one track of the file.
Slot 2.
| nTrack | The track index. |
Reimplemented in LevelConverter.
|
virtual |
Receive a note on.
Slot 3. LevelConverter's override forwards these arguments under MIDI status 0x90.
| nTick | The event position, in MIDI ticks. |
| nNote | The note number. |
| nVelocity | The velocity. |
| nChannel | The channel. |
Reimplemented in LevelConverter.
|
virtual |
Receive a note off.
Slot 4. LevelConverter's override forwards these arguments under MIDI status 0x80. The slot takes no velocity, and the override's forwarded call passes zero in its place.
| nTick | The event position, in MIDI ticks. |
| nNote | The note number. |
| nChannel | The channel. |
Reimplemented in LevelConverter.
|
virtual |
Receive a controller change.
Slot 5. LevelConverter's override forwards these arguments under MIDI status 0xb0.
| nTick | The event position, in MIDI ticks. |
| nController | The controller number. |
| nValue | The value. |
| nChannel | The channel. |
Reimplemented in LevelConverter.
|
virtual |
Receive a program change.
Slot 6. LevelConverter's override forwards these arguments under MIDI status 0xc0.
| nTick | The event position, in MIDI ticks. |
| nProgram | The program number. |
| nChannel | The channel. |
Reimplemented in LevelConverter.
|
virtual |
Receive a pitch bend.
Slot 7. LevelConverter's override forwards these arguments under MIDI status 0xe0.
| nTick | The event position, in MIDI ticks. |
| nLow | The low seven bits of the bend. |
| nHigh | The high seven bits of the bend. |
| nChannel | The channel. |
Reimplemented in LevelConverter.
|
virtual |
Receive a tempo meta event.
Slot 8. Mid::Reader::ReadMeta() calls it only for meta type 0x51, with the event position and the event's 24-bit value. That value is the MIDI tempo in microseconds per quarter note. LevelConverter's override passes both to LevelBuilder::SetTempo(). SetTempo() builds its tempo map from the second.
| nTick | The event position, in MIDI ticks. |
| nMicrosecondsPerQuarter | The tempo. |
Reimplemented in LevelConverter.
|
virtual |
Receive one text meta event.
Slot 9. LevelConverter's override acts only on a type of 3 at tick 0, and 3 is the MIDI track-name meta type, which is what fixes the third argument as the meta type.
| nTick | The event position, in MIDI ticks. |
| pText | The text, which is NUL-terminated by the reader. |
| nType | The meta type. |
Reimplemented in LevelConverter.
|
virtual |
End the track NewTrack() began.
Slot 10.
Reimplemented in LevelConverter.
|
virtual |
Report that the whole file has been delivered.
Slot 11. Mid::Reader::AllTracksRead() calls it with no argument once the chunk reader has no chunk left. LevelConverter's table points at a two-instruction body of its own at 0x001ea360. That body is this default re-emitted rather than an override.
|
virtual |
Do nothing.
Slot 12, an empty default with no override anywhere. Mid::Reader never calls it.
|
virtual |
Do nothing.
Slot 13, an empty default with no override anywhere. Mid::Reader never calls it.
|
virtual |
Do nothing.
Slot 14, an empty default with no override anywhere. Mid::Reader never calls it.
|
virtual |
Do nothing.
Slot 15, an empty default with no override anywhere. Mid::Reader never calls it.