|
Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
|
A TrackLane belongs to a Track (can have many TrackLanes in a Track) and contains Regions. More...
#include <src/structure/tracks/track_lane.h>


Public Types | |
| using | MidiRegion = arrangement::MidiRegion |
| using | AudioRegion = arrangement::AudioRegion |
| using | TrackLaneT |
| using | LanedTrackT = LanedTrackImpl<TrackLaneT> |
| using | Position = dsp::Position |
| Public Types inherited from zrythm::structure::arrangement::ArrangerObjectOwner< RegionT > | |
| using | ArrangerObjectChildType |
| using | ArrangerObjectListModel |
Public Member Functions | |
| TrackLaneT & | get_derived_lane () |
| const TrackLaneT & | get_derived_lane () const |
| TrackLaneImpl (structure::arrangement::ArrangerObjectRegistry ®istry, 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. | |
| LanedTrackT * | get_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 ®istry, dsp::FileAudioSourceRegistry &file_audio_source_registry, QObject &derived) | |
| auto & | get_children_vector () |
| auto | get_children_view () const |
| void | add_ticks_to_children (double ticks) |
| ArrangerObjectListModel * | get_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. | |
Data Fields | |
| LanedTrackT * | track_ = nullptr |
| 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. | |
Friends | |
| void | init_from (TrackLaneImpl &obj, const TrackLaneImpl &other, utils::ObjectCloneType clone_type) |
| void | to_json (nlohmann::json &j, const TrackLaneImpl &lane) |
| void | from_json (const nlohmann::json &j, TrackLaneImpl &lane) |
Additional Inherited Members | |
| Static Public Attributes inherited from zrythm::structure::tracks::TrackLane | |
| static constexpr double | DEF_HEIGHT = 48 |
A TrackLane belongs to a Track (can have many TrackLanes in a Track) and contains Regions.
Only Tracks that have Regions can have TrackLanes, such as InstrumentTrack and AudioTrack.
Definition at line 126 of file track_lane.h.
| using zrythm::structure::tracks::TrackLaneImpl< RegionT >::AudioRegion = arrangement::AudioRegion |
Definition at line 132 of file track_lane.h.
| using zrythm::structure::tracks::TrackLaneImpl< RegionT >::LanedTrackT = LanedTrackImpl<TrackLaneT> |
Definition at line 135 of file track_lane.h.
| using zrythm::structure::tracks::TrackLaneImpl< RegionT >::MidiRegion = arrangement::MidiRegion |
Definition at line 131 of file track_lane.h.
| using zrythm::structure::tracks::TrackLaneImpl< RegionT >::Position = dsp::Position |
Definition at line 136 of file track_lane.h.
| using zrythm::structure::tracks::TrackLaneImpl< RegionT >::TrackLaneT |
Definition at line 133 of file track_lane.h.
|
inline |
|
inline |
Definition at line 143 of file track_lane.h.
|
inline |
Definition at line 144 of file track_lane.h.
|
inlineoverride |
Definition at line 251 of file track_lane.h.
|
inline |
Definition at line 235 of file track_lane.h.
|
inline |
Definition at line 229 of file track_lane.h.
| void zrythm::structure::tracks::TrackLaneImpl< RegionT >::rename | ( | const utils::Utf8String & | new_name, |
| bool | with_action ) |
Rename the lane.
| with_action | Whether to make this an undoable action. |
| void zrythm::structure::tracks::TrackLaneImpl< RegionT >::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.
| trigger_undo | Create and perform an undoable action. |
| fire_events | Fire UI events. |
| void zrythm::structure::tracks::TrackLaneImpl< RegionT >::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.
| trigger_undo | Create and perform an undoable action. |
| fire_events | Fire UI events. |
| void zrythm::structure::tracks::TrackLaneImpl< RegionT >::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.
| lanes_as_tracks | Export lanes as separate MIDI tracks. |
| use_track_or_lane_pos | Whether to use the track position (or lane position if lanes_as_tracks is true) in the MIDI data. The MIDI track will be set to 1 if false. |
| events | Track events, if not using lanes as tracks. |
| start | Events before this position will be skipped. |
| end | Events after this position will be skipped. |
|
friend |
Definition at line 285 of file track_lane.h.
|
friend |
Definition at line 257 of file track_lane.h.
|
friend |
Definition at line 275 of file track_lane.h.
| LanedTrackT* zrythm::structure::tracks::TrackLaneImpl< RegionT >::track_ = nullptr |
Owner track.
Definition at line 302 of file track_lane.h.