Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::structure::arrangement::TimeSignatureObject Class Referencefinal
Inheritance diagram for zrythm::structure::arrangement::TimeSignatureObject:
Collaboration diagram for zrythm::structure::arrangement::TimeSignatureObject:

Public Member Functions

 TimeSignatureObject (const dsp::TempoMapWrapper &tempo_map_wrapper, QObject *parent=nullptr)
dsp::TimelinePositionposition () const override
int numerator () const
void setNumerator (int numerator)
Q_SIGNAL void numeratorChanged (int numerator)
int denominator () const
void setDenominator (int denominator)
Q_SIGNAL void denominatorChanged (int denominator)
Public Member Functions inherited from zrythm::structure::arrangement::ArrangerObject
auto type () const
dsp::ContentPositionlength () const
ArrangerObjectNamename () const
ArrangerObjectColorcolor () const
ArrangerObjectMuteFunctionalitymute () const
Q_SIGNAL void propertiesChanged ()
 Emitted when any of the properties of the object changed.
ArrangerObjectparentObject () const
void setParentObject (ArrangerObject *object)
Q_SIGNAL void parentObjectChanged (QObject *parentObject)
const dsp::TempoMap & get_tempo_map () const
const dsp::TempoMapWrapperget_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

Static Public Attributes

static constexpr int DEFAULT_NUMERATOR = 4
static constexpr int DEFAULT_DENOMINATOR = 4

Properties

int numerator
int denominator
Properties inherited from zrythm::structure::arrangement::ArrangerObject
QML_ELEMENT zrythm::structure::arrangement::ArrangerObjectparentObject
zrythm::structure::arrangement::ArrangerObject::Type type
zrythm::dsp::Positionposition
zrythm::dsp::ContentPositionlength
zrythm::structure::arrangement::ArrangerObjectNamename
zrythm::structure::arrangement::ArrangerObjectColorcolor
zrythm::structure::arrangement::ArrangerObjectMuteFunctionalitymute

Friends

void init_from (TimeSignatureObject &obj, const TimeSignatureObject &other, utils::ObjectCloneType clone_type)
void to_json (nlohmann::json &j, const TimeSignatureObject &so)
void from_json (const nlohmann::json &j, TimeSignatureObject &so)

Additional Inherited Members

Public Types inherited from zrythm::structure::arrangement::ArrangerObject
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.
Protected Types inherited from zrythm::structure::arrangement::ArrangerObject
enum class  ArrangerObjectFeatures : std::uint8_t {
  Bounds = 1 << 0 , Name = 1 << 1 , Color = 1 << 2 , Mute = 1 << 3 ,
  ClipOwned = 1 << 4
}
Protected Member Functions inherited from zrythm::structure::arrangement::ArrangerObject
 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)

Detailed Description

Definition at line 12 of file time_signature_object.h.

Member Function Documentation

◆ denominator()

int zrythm::structure::arrangement::TimeSignatureObject::denominator ( ) const
inline

Definition at line 41 of file time_signature_object.h.

◆ numerator()

int zrythm::structure::arrangement::TimeSignatureObject::numerator ( ) const
inline

Definition at line 37 of file time_signature_object.h.

◆ position()

dsp::TimelinePosition * zrythm::structure::arrangement::TimeSignatureObject::position ( ) const
inlineoverridevirtual

Reimplemented from zrythm::structure::arrangement::ArrangerObject.

Definition at line 28 of file time_signature_object.h.

Field Documentation

◆ DEFAULT_DENOMINATOR

int zrythm::structure::arrangement::TimeSignatureObject::DEFAULT_DENOMINATOR = 4
staticconstexpr

Definition at line 22 of file time_signature_object.h.

◆ DEFAULT_NUMERATOR

int zrythm::structure::arrangement::TimeSignatureObject::DEFAULT_NUMERATOR = 4
staticconstexpr

Definition at line 21 of file time_signature_object.h.

Property Documentation

◆ denominator

int zrythm::structure::arrangement::TimeSignatureObject::denominator
readwrite

Definition at line 16 of file time_signature_object.h.

◆ numerator

int zrythm::structure::arrangement::TimeSignatureObject::numerator
readwrite

Definition at line 15 of file time_signature_object.h.


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