MidiInput class public functions

MidiInput
~MidiInput
extract
getBufferSize
getCount
insert
isOrphan
makeOrphanBuffer
removeOrphanBuffer
setBufferSize

An index of inherited functions can be found at the bottom of this page.


MidiInput(void);
No description available.

MidiInput(int aPort, int autoOpen = 1);
Sets the port on which MIDI I/O will occur for this object. If openAutoQ == 1, then the specified port will automatically be opened. If openQ == 0, then the user must call the open function to open the port before actually using MIDI I/O (unless some other MidiInput object has already opened the port).

~MidiInput();
If there are no more instances of MidiInput left, then close all open MIDI ports.

int getBufferSize(void);
No description available.

int getCount(void);
No description available.

MidiMessage extract(void);
No description available.

void insert(const MidiMessage& aMessage);
No description available.

int isOrphan(void) const;
Returns true if there is an orphan buffer being used. False if a hardware MIDI input port buffer is being used.

void makeOrphanBuffer(int aSize = 1024);
This function will disconnect the object from the associated hardware MIDI input port and create a new private circular buffer for MIDI message when can then be inserted to simulate input from a real hardware MIDI input port. Also the orphan buffer can be used to copy MIDI input data from another MidiInput/MidiInPort object when is actually connected to a hardware MIDI input port. The size of the input buffer can be specified with the aSize argument when the buffer is created, or it can be set later with the setBuffersize function

void removeOrphanBuffer(void);
Removes the orphan buffer and sets the input buffer back to the hardware MIDI input buffer that the object is associated which can be determined with the getPort function.

void setBufferSize(int aSize);
No description available.


Functions inherited from MidiInPort:
MidiInPort
~MidiInPort
clearSysex
close
closeAll
extract
getBufferSize
getChannelOffset
getCount
getName
getNumPorts
getPort
getSysex
getSysexSize
getTrace
insert
installSysex
open
pause
setAndOpenPort
setBufferSize
setChannelOffset
setPort
setTrace
toggleTrace
unpause