wavelength 1.0.0
Loading...
Searching...
No Matches
midireceiver.h
Go to the documentation of this file.
1#pragma once
2
9public:
16 virtual ~MidiReceiver() {
17 }
18
24 virtual void OnNewTrack(unsigned char nTrack) = 0;
25
27 virtual void OnEndTrack() = 0;
28
30 virtual void OnAllDone() = 0;
31
40 virtual void
41 OnMidi(int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2) = 0;
42
49 virtual void OnTempo(int nTick, int nMicrosecondsPerBeat) = 0;
50
58 virtual void OnText(int nTick, const char *pszText, unsigned char nType) = 0;
59
67 virtual void OnTimeSignature(int nTick, int nNumerator, int nDenominator) = 0;
68};
Listener a MIDI file reader reports each track and event to.
Definition midireceiver.h:8
virtual void OnText(int nTick, const char *pszText, unsigned char nType)=0
Report a text meta event.
virtual void OnTimeSignature(int nTick, int nNumerator, int nDenominator)=0
Report a time signature.
virtual void OnTempo(int nTick, int nMicrosecondsPerBeat)=0
Report a tempo change.
virtual void OnAllDone()=0
End the file.
virtual void OnEndTrack()=0
End the track.
virtual void OnNewTrack(unsigned char nTrack)=0
Begin a track.
virtual void OnMidi(int nTick, unsigned char nStatus, unsigned char nData1, unsigned char nData2)=0
Report a channel message.
virtual ~MidiReceiver()
Release the receiver.
Definition midireceiver.h:16