NiCMidi 1.1.0
A MIDI library derived from J.D.Koftinoff jdksmidi
|
A pure virtual class implementing a device that can send MIDISequencerGUIEvent messages to a GUI. More...
#include <notifier.h>
Public Member Functions | |
MIDISequencerGUINotifier (const MIDISequencer *seq=0) | |
The constructor. More... | |
virtual void | SetSequencer (const MIDISequencer *seq) |
This sets the sequencer which generates messages sent to the GUI. More... | |
virtual void | Notify (const MIDISequencerGUIEvent &ev)=0 |
Notifies the MIDISequencerGUIEvent ev. More... | |
virtual bool | GetEnable () const |
Returns the enable/disable status. More... | |
virtual void | SetEnable (bool f) |
Sets message sending on/off. More... | |
A pure virtual class implementing a device that can send MIDISequencerGUIEvent messages to a GUI.
It is pure virtual because we need GUI details for really sending messages; currently there are two implementations: a text notifier which prints text messages to a std::ostream and a WIN32 specific GUI notifier, (see MIDISequencerGUINotifierText, MIDISequencerGUINotifierWin32). If we want to notify our GUI about events happening while the sequencer is playing we must create an instance of the derived class and give its pointer to the MIDISequencer (or AdvancedSequencer) constructor. When the sequencer is playing, its MIDISequencerState examines all MIDI messages output by the sequencer and uses this to send appropriate MIDISequencerGUIEvent messages to the GUI.
|
inline |
The constructor.
To actually send messages, the notifier must know the sequencer which sends them; you can set it in the constructor or later.
|
inlinevirtual |
This sets the sequencer which generates messages sent to the GUI.
|
pure virtual |
Notifies the MIDISequencerGUIEvent ev.
Implemented in MIDISequencerGUINotifierText, and MIDISequencerGUINotifierWin32.
|
inlinevirtual |
Returns the enable/disable status.
|
inlinevirtual |
Sets message sending on/off.