Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::tracks::MidiLane Class Referencefinal
Inheritance diagram for zrythm::structure::tracks::MidiLane:
Collaboration diagram for zrythm::structure::tracks::MidiLane:

Public Types

using MidiRegion = arrangement::MidiRegion
using RegionT = MidiRegion
Public Types inherited from zrythm::structure::tracks::TrackLaneImpl< arrangement::MidiRegion >
using MidiRegion
using AudioRegion
using TrackLaneT
using LanedTrackT
using Position
Public Types inherited from zrythm::structure::arrangement::ArrangerObjectOwner< RegionT >
using ArrangerObjectChildType
using ArrangerObjectListModel

Public Member Functions

 MidiLane (structure::arrangement::ArrangerObjectRegistry &registry, dsp::FileAudioSourceRegistry &file_audio_source_registry, LanedTrackImpl< MidiLane > *track)
Public Member Functions inherited from zrythm::structure::tracks::TrackLaneImpl< arrangement::MidiRegion >
TrackLaneT & get_derived_lane ()
 TrackLaneImpl (structure::arrangement::ArrangerObjectRegistry &registry, dsp::FileAudioSourceRegistry &file_audio_source_registry, LanedTrackT *track, QObject &derived)
 Creates a new TrackLane at the given pos in the given Track.
void set_soloed (bool solo, bool trigger_undo, bool fire_events)
 Sets track lane soloed, updates UI and optionally adds the action to the undo stack.
void set_muted (bool mute, bool trigger_undo, bool fire_events)
 Sets track lane muted, updates UI and optionally adds the action to the undo stack.
bool is_effectively_muted () const
 Returns if the lane is effectively muted (explicitly or implicitly muted).
void rename (const utils::Utf8String &new_name, bool with_action)
 Rename the lane.
void rename_with_action (const utils::Utf8String &new_name)
 Wrapper over track_lane_rename().
void unselect_all ()
 Unselects all arranger objects.
void write_to_midi_file (MIDI_FILE *mf, dsp::MidiEventVector *events, const Position *start, const Position *end, bool lanes_as_tracks, bool use_track_or_lane_pos)
 Writes the lane to the given MIDI file.
LanedTrackTget_track () const
int get_index_in_track (this const auto &self)
int calculate_lane_idx_for_midi_serialization () const
 Calculates a unique index for this lane.
std::unique_ptr< TrackLaneT > gen_snapshot () const
 Generate a snapshot for playback.
std::string get_field_name_for_serialization (const RegionT *) const override
Public Member Functions inherited from zrythm::structure::tracks::TrackLane
auto get_name () const
void generate_name (int pos)
bool get_soloed () const
bool get_muted () const
 Returns if the lane is explicitly marked as muted.
Public Member Functions inherited from zrythm::structure::arrangement::ArrangerObjectOwner< RegionT >
 ArrangerObjectOwner (ArrangerObjectRegistry &registry, dsp::FileAudioSourceRegistry &file_audio_source_registry, QObject &derived)
auto & get_children_vector ()
auto get_children_view () const
void add_ticks_to_children (double ticks)
ArrangerObjectListModelget_model () const
ArrangerObjectUuidReference remove_object (this SelfT &self, const ArrangerObject::Uuid &id)
void insert_object (this SelfT &self, const ArrangerObjectUuidReference &obj_ref, int idx)
void add_object (this SelfT &self, const ArrangerObjectUuidReference &obj_ref)
void clear_objects ()
virtual std::string get_field_name_for_serialization (const ChildT *) const=0
 Get the children field name to be used during serialization/deserialization.

Friends

void init_from (MidiLane &obj, const MidiLane &other, utils::ObjectCloneType clone_type)
void to_json (nlohmann::json &j, const MidiLane &lane)
void from_json (const nlohmann::json &j, MidiLane &lane)

Additional Inherited Members

Data Fields inherited from zrythm::structure::tracks::TrackLaneImpl< arrangement::MidiRegion >
LanedTrackTtrack_
 Owner track.
Data Fields inherited from zrythm::structure::tracks::TrackLane
utils::Utf8String name_
 Position in the Track.
double height_ { DEF_HEIGHT }
 Position of handle.
bool mute_ {}
 Muted or not.
bool solo_ {}
 Soloed or not.
uint8_t midi_ch_ = 0
 MIDI channel, if MIDI lane, starting at 1.
Static Public Attributes inherited from zrythm::structure::tracks::TrackLane
static constexpr double DEF_HEIGHT = 48

Detailed Description

Definition at line 13 of file midi_lane.h.

Member Typedef Documentation

◆ MidiRegion

◆ RegionT

◆ from_json

void from_json ( const nlohmann::json & j,
MidiLane & lane )
friend

Definition at line 40 of file midi_lane.h.

◆ to_json

void to_json ( nlohmann::json & j,
const MidiLane & lane )
friend

Definition at line 36 of file midi_lane.h.


The documentation for this class was generated from the following file: