|
Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
|
A container of MIDI or Audio clips. More...
#include <src/structure/tracks/track_lane.h>


Data Structures | |
| struct | TrackLaneDependencies |
Public Types | |
| using | SoloedLanesExistFunc = std::function<bool ()> |
| Function to check if other soloed lanes exist in the owner. | |
| Public Types inherited from zrythm::utils::UuidIdentifiableObject< TrackLane > | |
| using | uuid_base_type |
| Exposes the CRTP parameter for concept checking. | |
| Public Types inherited from zrythm::structure::arrangement::ArrangerObjectOwner< arrangement::MidiClip > | |
| using | ArrangerObjectChildType |
| Public Types inherited from zrythm::structure::arrangement::ArrangerObjectOwner< arrangement::AudioClip > | |
| using | ArrangerObjectChildType |
Public Member Functions | |
| TrackLane (TrackLaneDependencies dependencies, QObject *parent=nullptr) | |
| QString | name () const |
| void | setName (const QString &name) |
| Q_SIGNAL void | nameChanged (const QString &name) |
| double | height () const |
| void | setHeight (const double height) |
| Q_SIGNAL void | heightChanged (double height) |
| bool | soloed () const |
| void | setSoloed (bool solo) |
| Q_SIGNAL void | soloChanged (bool solo) |
| bool | muted () const |
| void | setMuted (bool mute) |
| Q_SIGNAL void | muteChanged (bool mute) |
| Q_INVOKABLE bool | effectivelyMuted () const |
| Returns if the lane is effectively muted (explicitly or implicitly muted). | |
| std::uint8_t | midiChannel () const |
| void | setMidiChannel (std::uint8_t midi_ch) |
| Q_SIGNAL void | midiChannelChanged (std::uint8_t midi_ch) |
| void | generate_name (size_t index) |
| Generates a default name for the lane at the given index. | |
| std::string | get_field_name_for_serialization (const arrangement::MidiClip *_) const override |
| Generate a snapshot for playback. | |
| std::string | get_field_name_for_serialization (const arrangement::AudioClip *_) const override |
| Public Member Functions inherited from zrythm::utils::UuidIdentifiableObject< TrackLane > | |
| UuidIdentifiableObject (QObject *parent=nullptr) | |
| auto | get_uuid () const |
| Public Member Functions inherited from zrythm::utils::UuidIdentifiableBase | |
| UuidIdentifiableBase (QObject *parent=nullptr) | |
| UuidIdentifiableBase (const QUuid &id, QObject *parent=nullptr) | |
| QUuid | raw_uuid () const |
| Public Member Functions inherited from zrythm::structure::arrangement::ArrangerObjectOwner< arrangement::MidiClip > | |
| ArrangerObjectOwner (utils::IObjectRegistry ®istry, T &derived) | |
| auto & | get_children_vector () const |
| auto | get_children_view () const |
| auto | get_sorted_children_view () const |
| void | add_ticks_to_children (dsp::ContentTick ticks) |
| bool | contains_object (const ArrangerObject::Uuid &id) const |
| O(1) lookup if an object with the given ID exists. | |
| ArrangerObjectListModel * | get_model () const |
| ArrangerObjectUuidReference | remove_object (const ArrangerObject::Uuid &id) |
| void | insert_object (const ArrangerObjectUuidReference &obj_ref, int idx) |
| void | add_object (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. | |
| Public Member Functions inherited from zrythm::structure::arrangement::ArrangerObjectOwner< arrangement::AudioClip > | |
| ArrangerObjectOwner (utils::IObjectRegistry ®istry, T &derived) | |
| auto & | get_children_vector () const |
| auto | get_children_view () const |
| auto | get_sorted_children_view () const |
| void | add_ticks_to_children (dsp::ContentTick ticks) |
| bool | contains_object (const ArrangerObject::Uuid &id) const |
| O(1) lookup if an object with the given ID exists. | |
| ArrangerObjectListModel * | get_model () const |
| ArrangerObjectUuidReference | remove_object (const ArrangerObject::Uuid &id) |
| void | insert_object (const ArrangerObjectUuidReference &obj_ref, int idx) |
| void | add_object (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. | |
Static Public Attributes | |
| static constexpr auto | default_format_str = QT_TR_NOOP_UTF8 ("Lane {}") |
Properties | |
| zrythm::structure::arrangement::AudioClip QString | name |
| double | height |
| bool | muted |
| bool | soloed |
| std::uint8_t | midiChannel |
Friends | |
| void | to_json (nlohmann::json &j, const TrackLane &lane) |
| void | from_json (const nlohmann::json &j, TrackLane &lane) |
| void | init_from (TrackLane &obj, const TrackLane &other, utils::ObjectCloneType clone_type) |
Additional Inherited Members | |
| Protected Member Functions inherited from zrythm::utils::UuidIdentifiableBase | |
| void | set_raw_uuid (const QUuid &id) |
A container of MIDI or Audio clips.
Intended to be used as part of a TrackLaneList in a LanedTrackMixin as part of a Track. In practice, only Instrument, Audio and MIDI tracks have lanes.
For convenience, this handles all cases by including both MidiClip and AudioClip objects. In practice, only one list will be used.
Definition at line 24 of file track_lane.h.
| using zrythm::structure::tracks::TrackLane::SoloedLanesExistFunc = std::function<bool ()> |
Function to check if other soloed lanes exist in the owner.
Definition at line 52 of file track_lane.h.
|
inline |
Returns if the lane is effectively muted (explicitly or implicitly muted).
Definition at line 120 of file track_lane.h.
| void zrythm::structure::tracks::TrackLane::generate_name | ( | size_t | index | ) |
Generates a default name for the lane at the given index.
| index |
|
inlineoverride |
Definition at line 165 of file track_lane.h.
|
inlineoverride |
|
inline |
Definition at line 83 of file track_lane.h.
|
inline |
Definition at line 133 of file track_lane.h.
|
inline |
Definition at line 105 of file track_lane.h.
|
inline |
Definition at line 71 of file track_lane.h.
|
inline |
Definition at line 84 of file track_lane.h.
|
inline |
Definition at line 134 of file track_lane.h.
|
inline |
Definition at line 106 of file track_lane.h.
|
inline |
Definition at line 72 of file track_lane.h.
|
inline |
Definition at line 95 of file track_lane.h.
|
inline |
Definition at line 94 of file track_lane.h.
|
staticconstexpr |
Definition at line 54 of file track_lane.h.
|
readwrite |
Definition at line 39 of file track_lane.h.
|
readwrite |
Definition at line 42 of file track_lane.h.
|
readwrite |
Definition at line 40 of file track_lane.h.
|
readwrite |
Definition at line 38 of file track_lane.h.
|
readwrite |
Definition at line 41 of file track_lane.h.