Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
TrackLane Class Reference

A TrackLane belongs to a Track (can have many TrackLanes in a Track) and contains Regions. More...

#include <src/gui/dsp/track_lane.h>

Inheritance diagram for TrackLane:
Collaboration diagram for TrackLane:

Public Member Functions

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.
 

Data Fields

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

static constexpr double DEF_HEIGHT = 48
 

Detailed Description

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 72 of file track_lane.h.

Member Function Documentation

◆ get_muted()

bool TrackLane::get_muted ( ) const
inline

Returns if the lane is explicitly marked as muted.

Note
Doesn't check soloed state or track state.

Definition at line 91 of file track_lane.h.

◆ get_name()

auto TrackLane::get_name ( ) const
inline

Definition at line 80 of file track_lane.h.

◆ get_soloed()

bool TrackLane::get_soloed ( ) const
inline

Definition at line 84 of file track_lane.h.

Field Documentation

◆ DEF_HEIGHT

double TrackLane::DEF_HEIGHT = 48
staticconstexpr

Definition at line 75 of file track_lane.h.

◆ height_

double TrackLane::height_ { DEF_HEIGHT }

Position of handle.

Definition at line 104 of file track_lane.h.

◆ midi_ch_

uint8_t TrackLane::midi_ch_ = 0

MIDI channel, if MIDI lane, starting at 1.

If this is set to 0, the value will be inherited from the Track.

Definition at line 117 of file track_lane.h.

◆ mute_

bool TrackLane::mute_ {}

Muted or not.

Definition at line 107 of file track_lane.h.

◆ name_

utils::Utf8String TrackLane::name_

Position in the Track.

Name of lane, e.g. "Lane 1".

Definition at line 101 of file track_lane.h.

◆ solo_

bool TrackLane::solo_ {}

Soloed or not.

Definition at line 110 of file track_lane.h.


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