Öffentliche Methoden | Private Methoden
RtMidiOut Klassenreferenz

A realtime MIDI output class. Mehr ...

#include <RtMidi.h>

Klassendiagramm für RtMidiOut:
Inheritance graph
[Legende]
Zusammengehörigkeiten von RtMidiOut:
Collaboration graph
[Legende]

Aufstellung aller Elemente

Öffentliche Methoden

 RtMidiOut ()
 Default constructor.
 ~RtMidiOut ()
 The destructor closes any open MIDI connections.
void openPort (unsigned int portNumber=0)
 Open a MIDI output connection.
void closePort ()
 Close an open MIDI connection (if one exists).
void openVirtualPort ()
 Create a virtual output port to allow software connections (OS X and ALSA only).
unsigned int getPortCount ()
 Return the number of available MIDI output ports.
std::string getPortName (unsigned int portNumber)
 Return a string identifier for the specified MIDI port type and number.
void sendMessage (std::vector< unsigned char > *message)
 Immediately send a single message out an open MIDI output port.

Private Methoden

void initialize (void)

Ausführliche Beschreibung

A realtime MIDI output class.

This class provides a common, platform-independent API for MIDI output. It allows one to probe available MIDI output ports, to connect to one such port, and to send MIDI bytes immediately over the connection. Create multiple instances of this class to connect to more than one MIDI device at the same time.

by Gary P. Scavone, 2003-2004.

Definiert in Zeile 263 der Datei RtMidi.h.


Beschreibung der Konstruktoren und Destruktoren

RtMidiOut::RtMidiOut ( )

Default constructor.

An exception will be thrown if a MIDI system initialization error occurs.

Definiert in Zeile 154 der Datei RtMidi.cpp.

Benutzt initialize().

                       : RtMidi()
{
        this->initialize();
}
RtMidiOut::~RtMidiOut ( )

The destructor closes any open MIDI connections.


Dokumentation der Elementfunktionen

void RtMidiOut::closePort ( ) [virtual]

Close an open MIDI connection (if one exists).

Implementiert RtMidi.

unsigned int RtMidiOut::getPortCount ( ) [virtual]

Return the number of available MIDI output ports.

Implementiert RtMidi.

Wird benutzt von InMidiPort::Load(), OutMidiPort::Load() und MutOutputDeviceShape::ShowDeviceDialog().

std::string RtMidiOut::getPortName ( unsigned int  portNumber) [virtual]

Return a string identifier for the specified MIDI port type and number.

An exception is thrown if an invalid port specifier is provided.

Implementiert RtMidi.

Wird benutzt von InMidiPort::Load(), OutMidiPort::Load(), OutMidiPort::SetDevId() und MutOutputDeviceShape::ShowDeviceDialog().

void RtMidiOut::initialize ( void  ) [private]

Wird benutzt von RtMidiOut().

void RtMidiOut::openPort ( unsigned int  portNumber = 0) [virtual]

Open a MIDI output connection.

An optional port number greater than 0 can be specified. Otherwise, the default or first port found is opened. An exception is thrown if an error occurs while attempting to make the port connection.

Implementiert RtMidi.

void RtMidiOut::openVirtualPort ( ) [virtual]

Create a virtual output port to allow software connections (OS X and ALSA only).

This function creates a virtual MIDI output port to which other software applications can connect. This type of functionality is currently only supported by the Macintosh OS-X and Linux ALSA APIs (the function does nothing with the other APIs). An exception is thrown if an error occurs while attempting to create the virtual port.

Implementiert RtMidi.

void RtMidiOut::sendMessage ( std::vector< unsigned char > *  message)

Immediately send a single message out an open MIDI output port.

An exception is thrown if an error occurs during output or an output connection was not previously established.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien:

Erzeugt am Sun Aug 21 2011 10:52:08 für Mutabor von doxygen 1.7.4