|
Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
|
Base class for all objects in the arranger. More...
#include <src/structure/arrangement/arranger_object.h>


Public Types | |
| enum class | Type : std::uint8_t { MidiClip , AudioClip , ChordClip , AutomationClip , MidiControlEvent , MidiNote , ChordObject , ScaleObject , Marker , AutomationPoint , AudioSourceObject , TempoObject , TimeSignatureObject } |
| The type of the object. More... | |
| Public Types inherited from zrythm::utils::UuidIdentifiableObject< ArrangerObject > | |
| using | uuid_base_type |
| Exposes the CRTP parameter for concept checking. | |
Public Member Functions | |
| auto | type () const |
| virtual dsp::Position * | position () const |
| dsp::ContentPosition * | length () const |
| ArrangerObjectName * | name () const |
| ArrangerObjectColor * | color () const |
| ArrangerObjectMuteFunctionality * | mute () const |
| Q_SIGNAL void | propertiesChanged () |
| Emitted when any of the properties of the object changed. | |
| ArrangerObject * | parentObject () const |
| void | setParentObject (ArrangerObject *object) |
| Q_SIGNAL void | parentObjectChanged (QObject *parentObject) |
| const dsp::TempoMap & | get_tempo_map () const |
| const dsp::TempoMapWrapper & | get_tempo_map_wrapper () const |
| virtual std::vector< ArrangerObjectListModel * > | get_child_list_models () const |
| Public Member Functions inherited from zrythm::utils::UuidIdentifiableObject< ArrangerObject > | |
| 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 |
Protected Types | |
| enum class | ArrangerObjectFeatures : std::uint8_t { Bounds = 1 << 0 , Name = 1 << 1 , Color = 1 << 2 , Mute = 1 << 3 , ClipOwned = 1 << 4 } |
Protected Member Functions | |
| ArrangerObject (Type type, const dsp::TempoMapWrapper &tempo_map_wrapper, ArrangerObjectFeatures features, QObject *parent=nullptr) noexcept | |
| Construct a new ArrangerObject. | |
| Protected Member Functions inherited from zrythm::utils::UuidIdentifiableBase | |
| void | set_raw_uuid (const QUuid &id) |
Friends | |
| void | init_from (ArrangerObject &obj, const ArrangerObject &other, utils::ObjectCloneType clone_type) |
| void | to_json (nlohmann::json &j, const ArrangerObject &arranger_object) |
| void | from_json (const nlohmann::json &j, ArrangerObject &arranger_object) |
Base class for all objects in the arranger.
The ArrangerObject class is the base class for all objects that can be placed in the arranger, such as clips, MIDI notes, chord objects, etc. It provides common functionality and properties shared by all these objects.
Definition at line 35 of file arranger_object.h.
|
strongprotected |
Definition at line 112 of file arranger_object.h.
|
strong |
The type of the object.
Definition at line 53 of file arranger_object.h.
|
protectednoexcept |
Construct a new ArrangerObject.
| tempo_map | |
| derived | The derived class instance, to be used for parenting any QObjects created by this class. |
|
inline |
Definition at line 85 of file arranger_object.h.
|
inlinevirtual |
Definition at line 106 of file arranger_object.h.
|
inline |
Definition at line 101 of file arranger_object.h.
|
inline |
Definition at line 83 of file arranger_object.h.
|
inline |
Definition at line 86 of file arranger_object.h.
|
inline |
Definition at line 84 of file arranger_object.h.
|
inline |
Definition at line 93 of file arranger_object.h.
|
inlinevirtual |
Definition at line 81 of file arranger_object.h.
|
inline |
Definition at line 79 of file arranger_object.h.
|
read |
Definition at line 44 of file arranger_object.h.
|
read |
Definition at line 42 of file arranger_object.h.
|
read |
Definition at line 46 of file arranger_object.h.
|
read |
Definition at line 43 of file arranger_object.h.
|
readwrite |
Definition at line 39 of file arranger_object.h.
|
read |
Definition at line 41 of file arranger_object.h.
|
read |
Definition at line 40 of file arranger_object.h.