|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
A mapping from a MIDI CC value to a destination ControlPort. More...
#include <src/gui/dsp/midi_mapping.h>


Public Types | |
| using | PortIdentifier = zrythm::dsp::PortIdentifier |
Public Member Functions | |
| MidiMapping (QObject *parent=nullptr) | |
| void | init_after_cloning (const MidiMapping &other, ObjectCloneType clone_type) override |
| Initializes the cloned object. | |
| void | set_enabled (bool enabled) |
| void | apply (std::array< midi_byte_t, 3 > buf) |
Public Member Functions inherited from ICloneable< MidiMapping > | |
| std::unique_ptr< MidiMapping > | clone_unique (ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
| std::shared_ptr< MidiMapping > | clone_shared (ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
| MidiMapping * | clone_raw_ptr (ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
| MidiMapping * | clone_qobject (QObject *parent, ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
| QScopedPointer< MidiMapping > | clone_unique_qobject (QObject *parent, ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
Data Fields | |
| std::array< midi_byte_t, 3 > | key_ = {} |
| Raw MIDI signal. | |
| std::unique_ptr< ExtPort > | device_port_ |
| The device that this connection will be mapped for. | |
| std::optional< PortIdentifier::PortUuid > | dest_id_ |
| Destination. | |
| Port * | dest_ = nullptr |
| Destination pointer, for convenience. | |
| std::atomic< bool > | enabled_ = false |
| Whether this binding is enabled. | |
Data Fields inherited from ICloneable< MidiMapping > | |
| friend | Derived |
Friends | |
| void | to_json (nlohmann::json &j, const MidiMapping &mapping) |
| void | from_json (const nlohmann::json &j, MidiMapping &mapping) |
A mapping from a MIDI CC value to a destination ControlPort.
Definition at line 23 of file midi_mapping.h.
Definition at line 29 of file midi_mapping.h.
|
overridevirtual |
Initializes the cloned object.
| ZrythmException | If the object could not be cloned. |
Implements ICloneable< MidiMapping >.
|
inline |
Definition at line 37 of file midi_mapping.h.
|
friend |
Definition at line 55 of file midi_mapping.h.
|
friend |
Definition at line 46 of file midi_mapping.h.
| Port* MidiMapping::dest_ = nullptr |
Destination pointer, for convenience.
Definition at line 78 of file midi_mapping.h.
| std::optional<PortIdentifier::PortUuid> MidiMapping::dest_id_ |
Destination.
Definition at line 71 of file midi_mapping.h.
| std::unique_ptr<ExtPort> MidiMapping::device_port_ |
The device that this connection will be mapped for.
Definition at line 68 of file midi_mapping.h.
| std::atomic<bool> MidiMapping::enabled_ = false |
Whether this binding is enabled.
Definition at line 82 of file midi_mapping.h.
| std::array<midi_byte_t, 3> MidiMapping::key_ = {} |
Raw MIDI signal.
Definition at line 65 of file midi_mapping.h.