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

Public Types

using RegionT = AudioRegion
 
- Public Types inherited from TrackLaneImpl< AudioRegion >
using TrackLaneT
 
using LanedTrackT
 
using Position
 
- Public Types inherited from ArrangerObjectOwner< AudioRegion >
using PortUuid
 
using ArrangerObjectChildType
 

Public Member Functions

 AudioLane (LanedTrackImpl< AudioLane > *track)
 
void init_after_cloning (const AudioLane &other, ObjectCloneType clone_type) override
 Initializes the cloned object.
 
- Public Member Functions inherited from TrackLaneImpl< AudioRegion >
TrackLaneT & get_derived_lane ()
 
const TrackLaneT & get_derived_lane () const
 
 TrackLaneImpl (LanedTrackT *track)
 Creates a new TrackLane at the given pos in the given Track.
 
bool is_in_active_project () const
 
bool is_auditioner () const
 
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.
 
Tracklistget_tracklist () const
 
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.
 
ArrangerObjectOwner< AudioRegion >::Location get_location (const AudioRegion &) const override
 
std::string get_field_name_for_serialization (const AudioRegion *) const override
 
- Public Member Functions inherited from 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 ArrangerObjectOwner< AudioRegion >
auto & get_children_vector ()
 
auto & get_children_vector () const
 
auto get_children_view () const
 
auto & get_children_snapshots_vector ()
 
auto & get_children_snapshots_vector () const
 
auto get_children_snapshots_view () const
 
void add_ticks_to_children (double ticks, dsp::FramesPerTick frames_per_tick)
 
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 Location get_location (const ChildT &) const=0
 Returns the current location of this owner.
 
virtual std::string get_field_name_for_serialization (const ChildT *) const=0
 Get the children field name to be used during serialization/deserialization.
 
void copy_members_from (const ArrangerObjectOwner &other, ObjectCloneType clone_type)
 
void copy_children (const ArrangerObjectOwner &other)
 
- Public Member Functions inherited from ICloneable< AudioLane >
std::unique_ptr< AudioLaneclone_unique (ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const
 
std::shared_ptr< AudioLaneclone_shared (ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const
 
AudioLaneclone_raw_ptr (ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const
 
AudioLaneclone_qobject (QObject *parent, ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const
 
QScopedPointer< AudioLaneclone_unique_qobject (QObject *parent, ObjectCloneType clone_type=ObjectCloneType::Snapshot, Args &&... args) const
 

Friends

void to_json (nlohmann::json &j, const AudioLane &lane)
 
void from_json (const nlohmann::json &j, AudioLane &lane)
 

Additional Inherited Members

- Data Fields inherited from TrackLaneImpl< AudioRegion >
LanedTrackTtrack_
 Owner track.
 
- Data Fields inherited from 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.
 
- Data Fields inherited from ICloneable< AudioLane >
friend Derived
 
- Static Public Attributes inherited from TrackLane
static constexpr double DEF_HEIGHT = 48
 
- Protected Member Functions inherited from TrackLaneImpl< AudioRegion >
void copy_members_from (const TrackLaneImpl &other, ObjectCloneType clone_type)
 
- Protected Attributes inherited from ArrangerObjectOwner< AudioRegion >
bool clearing_
 

Detailed Description

Definition at line 11 of file audio_lane.h.

Member Typedef Documentation

◆ RegionT

Definition at line 21 of file audio_lane.h.

Constructor & Destructor Documentation

◆ AudioLane()

AudioLane::AudioLane ( LanedTrackImpl< AudioLane > * track)

Member Function Documentation

◆ init_after_cloning()

void AudioLane::init_after_cloning ( const AudioLane & other,
ObjectCloneType clone_type )
overridevirtual

Initializes the cloned object.

Note
Only final classes should implement this.
Exceptions
ZrythmExceptionIf the object could not be cloned.

Implements ICloneable< AudioLane >.

Friends And Related Symbol Documentation

◆ from_json

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

Definition at line 37 of file audio_lane.h.

◆ to_json

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

Definition at line 33 of file audio_lane.h.


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