drumstick 2.9.0
C++ MIDI libraries using Qt objects, idioms, and style.
MIDIOutput Class Referenceabstract

MIDI OUT interface. More...

#include <rtmidioutput.h>

Inheritance diagram for MIDIOutput:

Public Slots

virtual void sendNoteOff (int chan, int note, int vel)=0
 sendNoteOff 0x8 More...
 
virtual void sendNoteOn (int chan, int note, int vel)=0
 sendNoteOn 0x9 More...
 
virtual void sendKeyPressure (int chan, int note, int value)=0
 sendKeyPressure 0xA More...
 
virtual void sendController (int chan, int control, int value)=0
 sendController 0xB More...
 
virtual void sendProgram (int chan, int program)=0
 sendProgram 0xC More...
 
virtual void sendChannelPressure (int chan, int value)=0
 sendChannelPressure 0xD More...
 
virtual void sendPitchBend (int chan, int value)=0
 sendPitchBend 0xE More...
 
virtual void sendSysex (const QByteArray &data)=0
 sendSysex More...
 
virtual void sendSystemMsg (const int status)=0
 sendSystemMsg More...
 

Public Member Functions

 MIDIOutput (QObject *parent=nullptr)
 MIDIOutput constructor. More...
 
virtual ~MIDIOutput ()=default
 ~MIDIOutput destructor
 
virtual void initialize (QSettings *settings)=0
 initialize More...
 
virtual QString backendName ()=0
 backendName More...
 
virtual QString publicName ()=0
 publicName More...
 
virtual void setPublicName (QString name)=0
 setPublicName More...
 
virtual QList< MIDIConnectionconnections (bool advanced=false)=0
 connections More...
 
virtual void setExcludedConnections (QStringList conns)=0
 setExcludedConnections More...
 
virtual void open (const MIDIConnection &conn)=0
 open the MIDI port by name More...
 
virtual void close ()=0
 close the MIDI port
 
virtual MIDIConnection currentConnection ()=0
 currentConnection More...
 

Detailed Description

MIDI OUT interface.

Examples
vpiano.cpp.

Definition at line 121 of file rtmidioutput.h.

Constructor & Destructor Documentation

◆ MIDIOutput()

MIDIOutput ( QObject parent = nullptr)
inlineexplicit

MIDIOutput constructor.

Parameters
parent

Definition at line 130 of file rtmidioutput.h.

Member Function Documentation

◆ backendName()

virtual QString backendName ( )
pure virtual

backendName

Returns
plugin name

Referenced by BackendManager::findOutput(), and BackendManager::outputBackendByName().

◆ connections()

virtual QList< MIDIConnection > connections ( bool  advanced = false)
pure virtual

connections

Parameters
advancedwhether the advanced connections are included or not
Returns
list of available MIDI ports

◆ currentConnection()

virtual MIDIConnection currentConnection ( )
pure virtual

currentConnection

Returns
name of the current connection if it is opened

◆ initialize()

virtual void initialize ( QSettings settings)
pure virtual

initialize

Parameters
settings

◆ open()

virtual void open ( const MIDIConnection conn)
pure virtual

open the MIDI port by name

Parameters
connthe MIDI connection to be opened

◆ publicName()

virtual QString publicName ( )
pure virtual

publicName

Returns
MIDI port name

◆ sendChannelPressure

virtual void sendChannelPressure ( int  chan,
int  value 
)
pure virtualslot

sendChannelPressure 0xD

Parameters
chan
value

◆ sendController

virtual void sendController ( int  chan,
int  control,
int  value 
)
pure virtualslot

sendController 0xB

Parameters
chan
control
value

◆ sendKeyPressure

virtual void sendKeyPressure ( int  chan,
int  note,
int  value 
)
pure virtualslot

sendKeyPressure 0xA

Parameters
chan
note
value

◆ sendNoteOff

virtual void sendNoteOff ( int  chan,
int  note,
int  vel 
)
pure virtualslot

sendNoteOff 0x8

Parameters
chan
note
vel

◆ sendNoteOn

virtual void sendNoteOn ( int  chan,
int  note,
int  vel 
)
pure virtualslot

sendNoteOn 0x9

Parameters
chan
note
vel

◆ sendPitchBend

virtual void sendPitchBend ( int  chan,
int  value 
)
pure virtualslot

sendPitchBend 0xE

Parameters
chan
value

◆ sendProgram

virtual void sendProgram ( int  chan,
int  program 
)
pure virtualslot

sendProgram 0xC

Parameters
chan
program

◆ sendSysex

virtual void sendSysex ( const QByteArray &  data)
pure virtualslot

sendSysex

Parameters
data0xF0 ... 0xF7

◆ sendSystemMsg

virtual void sendSystemMsg ( const int  status)
pure virtualslot

sendSystemMsg

Parameters
status0xF

◆ setExcludedConnections()

virtual void setExcludedConnections ( QStringList  conns)
pure virtual

setExcludedConnections

Parameters
conns

Referenced by BackendManager::refresh().

◆ setPublicName()

virtual void setPublicName ( QString  name)
pure virtual

setPublicName

Parameters
nameMIDI port name

Referenced by BackendManager::refresh().


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