All MIDI mappings in Zrythm.
More...
#include <src/engine/session/midi_mapping.h>
|
|
| MidiMappings (dsp::ProcessorParameterRegistry ¶m_registry) |
| void | bind_at (std::array< midi_byte_t, 3 > buf, std::optional< utils::Utf8String > device_id, dsp::ProcessorParameterUuidReference 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, std::optional< utils::Utf8String > device_id, dsp::ProcessorParameterUuidReference dest_port, bool fire_events) |
| void | bind_track (std::array< midi_byte_t, 3 > buf, dsp::ProcessorParameterUuidReference dest_port, bool fire_events) |
|
int | get_mapping_index (const MidiMapping &mapping) const |
| void | apply_from_cc_events (const 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 dsp::ProcessorParameter &dest_port, std::vector< MidiMapping * > *arr) const |
| | Get MIDI mappings for the given port.
|
|
| void | init_from (MidiMappings &obj, const MidiMappings &other, utils::ObjectCloneType clone_type) |
| void | to_json (nlohmann::json &j, const MidiMappings &mappings) |
|
void | from_json (const nlohmann::json &j, MidiMappings &mappings) |
All MIDI mappings in Zrythm.
Definition at line 89 of file midi_mapping.h.
◆ apply_from_cc_events()
| void zrythm::engine::session::MidiMappings::apply_from_cc_events |
( |
const dsp::MidiEventVector & | 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 zrythm::engine::session::MidiMappings::bind_at |
( |
std::array< midi_byte_t, 3 > | buf, |
|
|
std::optional< utils::Utf8String > | device_id, |
|
|
dsp::ProcessorParameterUuidReference | 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_id | Device ID, if custom mapping. |
◆ bind_device()
| void zrythm::engine::session::MidiMappings::bind_device |
( |
std::array< midi_byte_t, 3 > | buf, |
|
|
std::optional< utils::Utf8String > | device_id, |
|
|
dsp::ProcessorParameterUuidReference | dest_port, |
|
|
bool | fire_events ) |
|
inline |
◆ bind_track()
| void zrythm::engine::session::MidiMappings::bind_track |
( |
std::array< midi_byte_t, 3 > | buf, |
|
|
dsp::ProcessorParameterUuidReference | dest_port, |
|
|
bool | fire_events ) |
|
inline |
◆ get_for_port()
Get MIDI mappings for the given port.
- Parameters
-
| arr | Optional array to fill with the mappings. |
- Returns
- The number of results.
◆ unbind()
| void zrythm::engine::session::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.
◆ init_from
◆ to_json
| void to_json |
( |
nlohmann::json & | j, |
|
|
const MidiMappings & | mappings ) |
|
friend |
◆ mappings_
| std::vector<std::unique_ptr<MidiMapping> > zrythm::engine::session::MidiMappings::mappings_ |
The documentation for this class was generated from the following file: