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

Public Types

enum class  EventType : std::uint8_t {
  ControlChange , PitchBend , ChannelPressure , PolyKeyPressure ,
  ProgramChange
}
Public Types inherited from zrythm::structure::arrangement::ArrangerObject
enum class  Type : std::uint8_t {
  MidiRegion , AudioRegion , ChordRegion , AutomationRegion ,
  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

 MidiControlEvent (const dsp::TempoMap &tempo_map, QObject *parent=nullptr)
EventType controlType () const
void setControlType (EventType type)
Q_SIGNAL void controlTypeChanged (EventType)
int channel () const
void setChannel (int ch)
Q_SIGNAL void channelChanged (int)
int controller () const
void setController (int ctrl)
Q_SIGNAL void controllerChanged (int)
int value () const
void setValue (int val)
Q_SIGNAL void valueChanged (int)
EventType controlEventType () const
std::uint8_t midiChannel () const
std::uint8_t midiController () const
std::uint16_t midiValue () const
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
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 kMaxChannel = 15
static constexpr int kMaxController = 127
static constexpr int kMaxValue7Bit = 127
static constexpr int kMaxValuePitchBend = 16383

Properties

EventType controlType
int channel
int controller
int value
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 (MidiControlEvent &obj, const MidiControlEvent &other, utils::ObjectCloneType clone_type)
void to_json (nlohmann::json &j, const MidiControlEvent &ev)
void from_json (const nlohmann::json &j, MidiControlEvent &ev)

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.
Protected Member Functions inherited from zrythm::utils::UuidIdentifiableBase
void set_raw_uuid (const QUuid &id)

Detailed Description

Definition at line 15 of file midi_control_event.h.

Member Enumeration Documentation

◆ EventType

enum class zrythm::structure::arrangement::MidiControlEvent::EventType : std::uint8_t
strong

Definition at line 26 of file midi_control_event.h.

Member Function Documentation

◆ channel()

int zrythm::structure::arrangement::MidiControlEvent::channel ( ) const
inline

Definition at line 49 of file midi_control_event.h.

◆ controlEventType()

EventType zrythm::structure::arrangement::MidiControlEvent::controlEventType ( ) const
inline

Definition at line 61 of file midi_control_event.h.

◆ controller()

int zrythm::structure::arrangement::MidiControlEvent::controller ( ) const
inline

Definition at line 53 of file midi_control_event.h.

◆ midiChannel()

std::uint8_t zrythm::structure::arrangement::MidiControlEvent::midiChannel ( ) const
inline

Definition at line 62 of file midi_control_event.h.

◆ midiController()

std::uint8_t zrythm::structure::arrangement::MidiControlEvent::midiController ( ) const
inline

Definition at line 63 of file midi_control_event.h.

◆ midiValue()

std::uint16_t zrythm::structure::arrangement::MidiControlEvent::midiValue ( ) const
inline

Definition at line 64 of file midi_control_event.h.

◆ value()

int zrythm::structure::arrangement::MidiControlEvent::value ( ) const
inline

Definition at line 57 of file midi_control_event.h.

Field Documentation

◆ kMaxChannel

int zrythm::structure::arrangement::MidiControlEvent::kMaxChannel = 15
staticconstexpr

Definition at line 40 of file midi_control_event.h.

◆ kMaxController

int zrythm::structure::arrangement::MidiControlEvent::kMaxController = 127
staticconstexpr

Definition at line 41 of file midi_control_event.h.

◆ kMaxValue7Bit

int zrythm::structure::arrangement::MidiControlEvent::kMaxValue7Bit = 127
staticconstexpr

Definition at line 42 of file midi_control_event.h.

◆ kMaxValuePitchBend

int zrythm::structure::arrangement::MidiControlEvent::kMaxValuePitchBend = 16383
staticconstexpr

Definition at line 43 of file midi_control_event.h.

Property Documentation

◆ channel

int zrythm::structure::arrangement::MidiControlEvent::channel
readwrite

Definition at line 19 of file midi_control_event.h.

◆ controller

int zrythm::structure::arrangement::MidiControlEvent::controller
readwrite

Definition at line 20 of file midi_control_event.h.

◆ controlType

EventType zrythm::structure::arrangement::MidiControlEvent::controlType
readwrite

Definition at line 18 of file midi_control_event.h.

◆ value

int zrythm::structure::arrangement::MidiControlEvent::value
readwrite

Definition at line 21 of file midi_control_event.h.


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