All MIDI mappings in Zrythm.
More...
#include <src/gui/dsp/midi_mapping.h>
|
|
void | init_loaded () |
| |
| void | bind_at (std::array< midi_byte_t, 3 > buf, ExtPort *device_port, Port &dest_port, int idx, bool fire_events) |
| | Binds the CC represented by the given raw buffer (must be size 3) to the given Port.
|
| |
| void | unbind (int idx, bool fire_events) |
| | Unbinds the given binding.
|
| |
| void | bind_device (std::array< midi_byte_t, 3 > buf, ExtPort *dev_port, Port &dest_port, bool fire_events) |
| |
| void | bind_track (std::array< midi_byte_t, 3 > buf, Port &dest_port, bool fire_events) |
| |
|
int | get_mapping_index (const MidiMapping &mapping) const |
| |
| void | apply_from_cc_events (dsp::MidiEventVector &events) |
| | Applies the events to the appropriate mapping.
|
| |
|
void | apply (const midi_byte_t *buf) |
| | Applies the given buffer to the matching ports.
|
| |
| int | get_for_port (const Port &dest_port, std::vector< MidiMapping * > *arr) const |
| | Get MIDI mappings for the given port.
|
| |
| void | init_after_cloning (const MidiMappings &other, ObjectCloneType clone_type) override |
| | Initializes the cloned object.
|
| |
| std::unique_ptr< MidiMappings > | clone_unique (ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
| |
| std::shared_ptr< MidiMappings > | clone_shared (ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
| |
| MidiMappings * | clone_raw_ptr (ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
| |
| MidiMappings * | clone_qobject (QObject *parent, ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
| |
| QScopedPointer< MidiMappings > | clone_unique_qobject (QObject *parent, ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const |
| |
All MIDI mappings in Zrythm.
Definition at line 88 of file midi_mapping.h.
◆ apply_from_cc_events()
Applies the events to the appropriate mapping.
This is used only for TrackProcessor.cc_mappings.
- Note
- Must only be called while transport is recording.
◆ bind_at()
| void MidiMappings::bind_at |
( |
std::array< midi_byte_t, 3 > | buf, |
|
|
ExtPort * | device_port, |
|
|
Port & | dest_port, |
|
|
int | idx, |
|
|
bool | fire_events ) |
Binds the CC represented by the given raw buffer (must be size 3) to the given Port.
- Parameters
-
| idx | Index to insert at. |
| buf | The buffer used for matching at [0] and [1]. |
| device_port | Device port, if custom mapping. |
◆ bind_device()
| void MidiMappings::bind_device |
( |
std::array< midi_byte_t, 3 > | buf, |
|
|
ExtPort * | dev_port, |
|
|
Port & | dest_port, |
|
|
bool | fire_events ) |
|
inline |
◆ bind_track()
| void MidiMappings::bind_track |
( |
std::array< midi_byte_t, 3 > | buf, |
|
|
Port & | dest_port, |
|
|
bool | fire_events ) |
|
inline |
◆ get_for_port()
| int MidiMappings::get_for_port |
( |
const Port & | dest_port, |
|
|
std::vector< MidiMapping * > * | arr ) const |
Get MIDI mappings for the given port.
- Parameters
-
| arr | Optional array to fill with the mappings. |
- Returns
- The number of results.
◆ init_after_cloning()
◆ unbind()
| void MidiMappings::unbind |
( |
int | idx, |
|
|
bool | fire_events ) |
Unbinds the given binding.
- Note
- This must be called inside a port operation lock, such as inside an undoable action.
◆ to_json
| void to_json |
( |
nlohmann::json & | j, |
|
|
const MidiMappings & | mappings ) |
|
friend |
◆ mappings_
| std::vector<std::unique_ptr<MidiMapping> > MidiMappings::mappings_ |
The documentation for this class was generated from the following file: