NiCMidi 1.1.0
A MIDI library derived from J.D.Koftinoff jdksmidi
|
A pure virtual class implementing an object that can manipulate a MIDI message, inspecting or changing its content. More...
#include <processor.h>
Public Member Functions | |
MIDIProcessor () | |
The constructor. More... | |
virtual | ~MIDIProcessor () |
The destructor. More... | |
virtual void | Reset ()=0 |
You should implement this pure virtual method in order to return the MIDIProcessor to its initial state. More... | |
virtual bool | Process (MIDITimedMessage *msg)=0 |
The Process() pure virtual method. More... | |
A pure virtual class implementing an object that can manipulate a MIDI message, inspecting or changing its content.
Many library objects, such as MIDIInDriver, MIDIOutDriver, MIDIThru and MIDISequencer, allow you to insert a MIDIProcessor into the flow of outgoing or ingoing messages with their SetProcessor() method. The library comes with some useful subclasses of it.
|
inline |
The constructor.
|
inlinevirtual |
The destructor.
|
pure virtual |
You should implement this pure virtual method in order to return the MIDIProcessor to its initial state.
Implemented in MIDISequencerTrackProcessor, MIDIMatrix, MIDIMultiProcessor, MIDIProcessorTransposer, MIDIProcessorRechannelizer, MIDIProcessorPrinter, and MIDISequencerState.
|
pure virtual |
The Process() pure virtual method.
It takes as parameter a MIDITimedMessage (which can be modified by the method) and returns a boolean, which can be used for filtering purposes (selecting some messages) or for notifying the result of the processing.
Implemented in MIDISequencerTrackProcessor, MIDIMatrix, MIDIMultiProcessor, MIDIProcessorTransposer, MIDIProcessorRechannelizer, MIDIProcessorPrinter, and MIDISequencerState.