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

Public Types

using CurveType = dsp::TempoEventWrapper::CurveType
Public Types inherited from zrythm::structure::arrangement::ArrangerObject
enum class  Type : basic_enum_base_type_t {
  MidiRegion , AudioRegion , ChordRegion , AutomationRegion ,
  MidiNote , ChordObject , ScaleObject , Marker ,
  AutomationPoint , AudioSourceObject , TempoObject , TimeSignatureObject
}
 The type of the object. More...

Public Member Functions

 TempoObject (const dsp::TempoMap &tempo_map, QObject *parent=nullptr)
double tempo () const
void setTempo (double tempo)
Q_SIGNAL void tempoChanged (double tempo)
CurveType curve () const
void setCurve (CurveType curve)
Q_SIGNAL void curveChanged (CurveType curve)
Public Member Functions inherited from zrythm::structure::arrangement::ArrangerObject
bool is_start_hit_by_range (const units::sample_t frames_start, const units::sample_t frames_end, bool range_start_inclusive=true, bool range_end_inclusive=false) const
auto type () const
dsp::AtomicPositionQmlAdapterposition () const
ArrangerObjectBoundsbounds () const
ArrangerObjectLoopRangeloopRange () const
ArrangerObjectNamename () const
ArrangerObjectColorcolor () const
ArrangerObjectMuteFunctionalitymute () const
ArrangerObjectFadeRangefadeRange () 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)
auto & get_tempo_map () const
Public Member Functions inherited from zrythm::utils::UuidIdentifiableObject< ArrangerObject >
UuidIdentifiableObject & operator= (const UuidIdentifiableObject &other)=default
auto get_uuid () const

Static Public Attributes

static constexpr double DEFAULT_TEMPO = 120.0

Properties

double tempo
zrythm::dsp::TempoEventWrapper::CurveType curve
Properties inherited from zrythm::structure::arrangement::ArrangerObject
QML_ELEMENT zrythm::structure::arrangement::ArrangerObjectparentObject
zrythm::structure::arrangement::ArrangerObject::Type type
zrythm::dsp::AtomicPositionQmlAdapterposition
zrythm::structure::arrangement::ArrangerObjectBoundsbounds
zrythm::structure::arrangement::ArrangerObjectLoopRangeloopRange
zrythm::structure::arrangement::ArrangerObjectNamename
zrythm::structure::arrangement::ArrangerObjectColorcolor
zrythm::structure::arrangement::ArrangerObjectMuteFunctionalitymute
zrythm::structure::arrangement::ArrangerObjectFadeRangefadeRange

Friends

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

Additional Inherited Members

Protected Types inherited from zrythm::structure::arrangement::ArrangerObject
enum class  ArrangerObjectFeatures : std::uint8_t {
  Bounds = 1 << 0 , LoopingBit = 1 << 1 , Name = 1 << 2 , Color = 1 << 3 ,
  Mute = 1 << 4 , Fading = 1 << 5 , Looping = LoopingBit | Bounds , Region = Looping | Name | Color | Mute
}
Protected Member Functions inherited from zrythm::structure::arrangement::ArrangerObject
 ArrangerObject (Type type, const dsp::TempoMap &tempo_map, ArrangerObjectFeatures features, QObject *parent=nullptr) noexcept
 Construct a new ArrangerObject.

Detailed Description

Definition at line 13 of file tempo_object.h.

Member Typedef Documentation

◆ CurveType

Member Function Documentation

◆ curve()

CurveType zrythm::structure::arrangement::TempoObject::curve ( ) const
inline

Definition at line 36 of file tempo_object.h.

◆ tempo()

double zrythm::structure::arrangement::TempoObject::tempo ( ) const
inline

Definition at line 32 of file tempo_object.h.

Field Documentation

◆ DEFAULT_TEMPO

double zrythm::structure::arrangement::TempoObject::DEFAULT_TEMPO = 120.0
staticconstexpr

Definition at line 23 of file tempo_object.h.

Property Documentation

◆ curve

zrythm::dsp::TempoEventWrapper::CurveType zrythm::structure::arrangement::TempoObject::curve
readwrite

Definition at line 17 of file tempo_object.h.

◆ tempo

double zrythm::structure::arrangement::TempoObject::tempo
readwrite

Definition at line 16 of file tempo_object.h.


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