|
lmms
Cross-platform music production software
|
#include <MidiPort.h>
Public Types | |
| enum class | Mode { Disabled , Input , Output , Duplex } |
| using | Map = QMap<QString, bool> |
Public Slots | |
| void | updateMidiPortMode () |
Signals | |
| void | readablePortsChanged () |
| void | writablePortsChanged () |
| void | modeChanged () |
| Signals inherited from lmms::Model | |
| void | dataChanged () |
| void | dataUnchanged () |
| void | propertiesChanged () |
Public Member Functions | |
| MidiPort (const QString &name, MidiClient *client, MidiEventProcessor *eventProcessor, Model *parent=nullptr, Mode mode=Mode::Disabled) | |
| ~MidiPort () override | |
| void | setName (const QString &name) |
| Mode | mode () const |
| void | setMode (Mode mode) |
| bool | isInputEnabled () const |
| bool | isOutputEnabled () const |
| int | realOutputChannel () const |
| void | processInEvent (const MidiEvent &event, const TimePos &time=TimePos()) |
| void | processOutEvent (const MidiEvent &event, const TimePos &time=TimePos()) |
| void | saveSettings (QDomDocument &doc, QDomElement &thisElement) override |
| void | loadSettings (const QDomElement &thisElement) override |
| QString | nodeName () const override |
| void | subscribeReadablePort (const QString &port, bool subscribe=true) |
| void | subscribeWritablePort (const QString &port, bool subscribe=true) |
| const Map & | readablePorts () const |
| const Map & | writablePorts () const |
| void | invalidateCilent () |
| Public Member Functions inherited from lmms::Model | |
| Model (Model *parent, QString displayName=QString(), bool defaultConstructed=false) | |
| ~Model () override=default | |
| bool | isDefaultConstructed () const |
| Model * | parentModel () const |
| virtual QString | displayName () const |
| virtual void | setDisplayName (const QString &displayName) |
| virtual QString | fullDisplayName () const |
| Public Member Functions inherited from lmms::SerializingObject | |
| SerializingObject () | |
| virtual | ~SerializingObject () |
| virtual QDomElement | saveState (QDomDocument &_doc, QDomElement &_parent) |
| virtual void | restoreState (const QDomElement &_this) |
| void | setHook (SerializingObjectHook *_hook) |
| SerializingObjectHook * | hook () |
Public Attributes | |
| gui::MidiPortMenu * | m_readablePortsMenu |
| gui::MidiPortMenu * | m_writablePortsMenu |
Private Slots | |
| void | updateReadablePorts () |
| void | updateWritablePorts () |
| void | updateOutputProgram () |
Private Member Functions | |
| mapPropertyFromModel (int, inputChannel, setInputChannel, m_inputChannelModel) | |
| mapPropertyFromModel (int, outputChannel, setOutputChannel, m_outputChannelModel) | |
| mapPropertyFromModel (int, inputController, setInputController, m_inputControllerModel) | |
| mapPropertyFromModel (int, outputController, setOutputController, m_outputControllerModel) | |
| mapPropertyFromModel (int, fixedInputVelocity, setFixedInputVelocity, m_fixedInputVelocityModel) | |
| mapPropertyFromModel (int, fixedOutputVelocity, setFixedOutputVelocity, m_fixedOutputVelocityModel) | |
| mapPropertyFromModel (int, fixedOutputNote, setFixedOutputNote, m_fixedOutputNoteModel) | |
| mapPropertyFromModel (int, outputProgram, setOutputProgram, m_outputProgramModel) | |
| mapPropertyFromModel (int, baseVelocity, setBaseVelocity, m_baseVelocityModel) | |
| mapPropertyFromModel (bool, isReadable, setReadable, m_readableModel) | |
| mapPropertyFromModel (bool, isWritable, setWritable, m_writableModel) | |
Friends | |
| class | gui::ControllerConnectionDialog |
| class | gui::InstrumentMidiIOView |
| using lmms::MidiPort::Map = QMap<QString, bool> |
|
strong |
| lmms::MidiPort::MidiPort | ( | const QString & | name, |
| MidiClient * | client, | ||
| MidiEventProcessor * | eventProcessor, | ||
| Model * | parent = nullptr, | ||
| Mode | mode = Mode::Disabled ) |
|
override |
| void lmms::MidiPort::invalidateCilent | ( | ) |
|
inline |
|
inline |
|
overridevirtual |
Implements lmms::SerializingObject.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inline |
|
signal |
|
inlineoverridevirtual |
Implements lmms::SerializingObject.
|
inline |
|
signal |
|
inline |
|
overridevirtual |
Implements lmms::SerializingObject.
| void lmms::MidiPort::setMode | ( | Mode | mode | ) |
| void lmms::MidiPort::setName | ( | const QString & | name | ) |
| void lmms::MidiPort::subscribeReadablePort | ( | const QString & | port, |
| bool | subscribe = true ) |
| void lmms::MidiPort::subscribeWritablePort | ( | const QString & | port, |
| bool | subscribe = true ) |
|
slot |
|
privateslot |
|
privateslot |
|
privateslot |
|
inline |
|
signal |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| gui::MidiPortMenu* lmms::MidiPort::m_readablePortsMenu |
|
private |
|
private |
| gui::MidiPortMenu* lmms::MidiPort::m_writablePortsMenu |