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

MIDI IN interface. More...

#include <rtmidiinput.h>

Inheritance diagram for MIDIInput:

Signals

void midiNoteOff (const int chan, const int note, const int vel)
 midiNoteOff 0x8 More...
 
void midiNoteOn (const int chan, const int note, const int vel)
 midiNoteOn 0x9 More...
 
void midiKeyPressure (const int chan, const int note, const int value)
 midiKeyPressure 0xA More...
 
void midiController (const int chan, const int control, const int value)
 midiController 0xB More...
 
void midiProgram (const int chan, const int program)
 midiProgram 0xC More...
 
void midiChannelPressure (const int chan, const int value)
 midiChannelPressure 0xD More...
 
void midiPitchBend (const int chan, const int value)
 midiPitchBend 0xE More...
 
void midiSysex (const QByteArray &data)
 midiSysex More...
 
void midiSystemCommon (const int status)
 midiSystemCommon More...
 
void midiSystemRealtime (const int status)
 midiSystemRealtime More...
 

Public Member Functions

 MIDIInput (QObject *parent=nullptr)
 MIDIInput constructor. More...
 
virtual ~MIDIInput ()=default
 ~MIDIInput 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...
 
virtual void setMIDIThruDevice (MIDIOutput *device)=0
 setMIDIThruDevice More...
 
virtual void enableMIDIThru (bool enable)=0
 enableMIDIThru More...
 
virtual bool isEnabledMIDIThru ()=0
 isEnabledMIDIThru More...
 

Detailed Description

MIDI IN interface.

Examples
vpiano.cpp.

Definition at line 55 of file rtmidiinput.h.

Constructor & Destructor Documentation

◆ MIDIInput()

MIDIInput ( QObject parent = nullptr)
inlineexplicit

MIDIInput constructor.

Parameters
parent

Definition at line 64 of file rtmidiinput.h.

Member Function Documentation

◆ backendName()

virtual QString backendName ( )
pure virtual

backendName

Returns
plugin name

Referenced by BackendManager::findInput(), and BackendManager::inputBackendByName().

◆ 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

◆ enableMIDIThru()

virtual void enableMIDIThru ( bool  enable)
pure virtual

enableMIDIThru

Parameters
enable

◆ initialize()

virtual void initialize ( QSettings settings)
pure virtual

initialize

Parameters
settings

◆ isEnabledMIDIThru()

virtual bool isEnabledMIDIThru ( )
pure virtual

isEnabledMIDIThru

Returns
MIDI Thru is enabled

◆ midiChannelPressure

void midiChannelPressure ( const int  chan,
const int  value 
)
signal

midiChannelPressure 0xD

Parameters
chan
value

◆ midiController

void midiController ( const int  chan,
const int  control,
const int  value 
)
signal

midiController 0xB

Parameters
chan
control
value

◆ midiKeyPressure

void midiKeyPressure ( const int  chan,
const int  note,
const int  value 
)
signal

midiKeyPressure 0xA

Parameters
chan
note
value

◆ midiNoteOff

void midiNoteOff ( const int  chan,
const int  note,
const int  vel 
)
signal

midiNoteOff 0x8

Parameters
chan
note
vel

◆ midiNoteOn

void midiNoteOn ( const int  chan,
const int  note,
const int  vel 
)
signal

midiNoteOn 0x9

Parameters
chan
note
vel

◆ midiPitchBend

void midiPitchBend ( const int  chan,
const int  value 
)
signal

midiPitchBend 0xE

Parameters
chan
value

◆ midiProgram

void midiProgram ( const int  chan,
const int  program 
)
signal

midiProgram 0xC

Parameters
chan
program

◆ midiSysex

void midiSysex ( const QByteArray &  data)
signal

midiSysex

Parameters
data0xF0 ... 0xF7

◆ midiSystemCommon

void midiSystemCommon ( const int  status)
signal

midiSystemCommon

Parameters
status0xF (1..6)

◆ midiSystemRealtime

void midiSystemRealtime ( const int  status)
signal

midiSystemRealtime

Parameters
status0xF (8..F)

◆ open()

virtual void open ( const MIDIConnection conn)
pure virtual

open the MIDI port by name

Parameters
connConnection to open

◆ publicName()

virtual QString publicName ( )
pure virtual

publicName

Returns
MIDI port name

◆ setExcludedConnections()

virtual void setExcludedConnections ( QStringList  conns)
pure virtual

setExcludedConnections

Parameters
conns

Referenced by BackendManager::refresh().

◆ setMIDIThruDevice()

virtual void setMIDIThruDevice ( MIDIOutput device)
pure virtual

setMIDIThruDevice

Parameters
device

◆ 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: