NiCMidi 1.1.0
A MIDI library derived from J.D.Koftinoff jdksmidi
MIDIProcessor Class Referenceabstract

A pure virtual class implementing an object that can manipulate a MIDI message, inspecting or changing its content. More...

#include <processor.h>

Inheritance diagram for MIDIProcessor:
MIDIMatrix MIDIMultiProcessor MIDIProcessorPrinter MIDIProcessorRechannelizer MIDIProcessorTransposer MIDISequencerState MIDISequencerTrackProcessor

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MIDIProcessor()

MIDIProcessor::MIDIProcessor ( )
inline

The constructor.

◆ ~MIDIProcessor()

virtual MIDIProcessor::~MIDIProcessor ( )
inlinevirtual

The destructor.

Member Function Documentation

◆ Reset()

virtual void MIDIProcessor::Reset ( )
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.

◆ Process()

virtual bool MIDIProcessor::Process ( MIDITimedMessage msg)
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.


The documentation for this class was generated from the following file: