Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_object.h File Reference

Chord object in the TimelineArranger. More...

#include <stdint.h>
#include "dsp/chord_descriptor.h"
#include "dsp/position.h"
#include "dsp/region_identifier.h"
#include "gui/backend/arranger_object.h"
#include "utils/yaml.h"
Include dependency graph for chord_object.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ChordObject
 A ChordObject to be shown in the TimelineArrangerWidget. More...
 

Macros

#define CHORD_OBJECT_MAGIC   4181694
 
#define IS_CHORD_OBJECT(x)   (((ChordObject *) x)->magic == CHORD_OBJECT_MAGIC)
 
#define IS_CHORD_OBJECT_AND_NONNULL(x)   (x && IS_CHORD_OBJECT (x))
 
#define CHORD_OBJECT_WIDGET_TRIANGLE_W   10
 
#define chord_object_is_selected(r)    arranger_object_is_selected ((ArrangerObject *) r)
 

Functions

ChordObjectchord_object_new (RegionIdentifier *region_id, int chord_index, int index)
 Creates a ChordObject.
 
int chord_object_is_equal (ChordObject *a, ChordObject *b)
 
void chord_object_set_region_and_index (ChordObject *self, ZRegion *region, int idx)
 Sets the region and index of the chord.
 
ChordDescriptorchord_object_get_chord_descriptor (const ChordObject *self)
 Returns the ChordDescriptor associated with this ChordObject.
 
ChordObjectchord_object_find_by_pos (ChordObject *clone)
 Finds the ChordObject in the project corresponding to the given one's position.
 
ZRegionchord_object_get_region (ChordObject *self)
 

Detailed Description

Chord object in the TimelineArranger.

Definition in file chord_object.h.