30#ifndef _NICMIDI_THRU_H
31#define _NICMIDI_THRU_H
109 unsigned int in_port;
110 unsigned int out_port;
111 signed char in_channel;
112 signed char out_channel;
A pure virtual class implementing an object that can manipulate a MIDI message, inspecting or changin...
Definition: processor.h:47
A MIDITickComponent which immediately echoes to an out MIDI port all messages incoming from an in MID...
Definition: thru.h:44
const MIDIProcessor * GetProcessor() const
Returns a pointer to the MIDIProcessor attached to the thru (see SetProcessor()).
Definition: thru.h:67
virtual void Stop()
Stops the MIDI thru.
unsigned int GetOutPort() const
Returns a pointer to the MIDIOutDriver to whom messages are actually being sent.
Definition: thru.h:63
virtual void SetProcessor(MIDIProcessor *proc)
Sets the out processor, which can manipulate messages arrived to the in port before they are sent to ...
virtual void Reset()
Resets the class to initial status:
unsigned int GetInPort() const
Returns the number of the MIDI in port from which messages are actually being received.
Definition: thru.h:61
virtual bool SetOutChannel(int chan)
Sets the channel for outgoing thru messages.
MIDIThru()
The constructor.
virtual bool SetOutPort(unsigned int port)
Selects the hardware out port to whom messages will be sent.
int GetOutChannel() const
Returns the thru out channel (see SetOutChannel())
Definition: thru.h:71
MIDIProcessor * GetProcessor()
Returns a pointer to the MIDIProcessor attached to the thru (see SetProcessor()).
Definition: thru.h:65
virtual bool SetInPort(unsigned int port)
Selects the hardware in port from which messages will be received.
virtual void Start()
Starts the MIDI thru.
int GetInChannel() const
Returns the thru in channel (see SetInChannel())
Definition: thru.h:69
static void StaticTickProc(tMsecs sys_time, void *pt)
Implements the static method inherited from MIDITickComponent and called at every timer tick.
virtual ~MIDIThru()
The destructor.
virtual bool SetInChannel(int chan)
Sets the channel for incoming thru messages.
virtual void TickProc(tMsecs sys_time)
Implements the pure virtual method inherited from MIDITickComponent (you must not call it directly).
A pure virtual class implementing an object which has a callback procedure to be called at every tick...
Definition: tick.h:65
Contains the definition of the classes MIDIOutDriver and MIDIInDriver, used by the library to communi...
unsigned long long tMsecs
The type of a variable which can hold the elapsed time in milliseconds.
Definition: timer.h:44
Contains the definition of the pure virtual class MIDITickComponent.