Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
chord_region.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2019-2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __AUDIO_CHORD_REGION_H__
11#define __AUDIO_CHORD_REGION_H__
12
13#include <stdbool.h>
14
15typedef struct Position Position;
16typedef struct ChordObject ChordObject;
17typedef struct ZRegion ZRegion;
18
30NONNULL ZRegion *
31chord_region_new (const Position * start_pos, const Position * end_pos, int idx);
32
36NONNULL void
38 ZRegion * self,
39 ChordObject * chord,
40 int pos,
41 bool fire_events);
42
46NONNULL void
48 ZRegion * self,
49 ChordObject * chord,
50 bool fire_events);
51
57NONNULL void
59 ZRegion * self,
60 ChordObject * chord,
61 int free,
62 bool fire_events);
63
64NONNULL bool
65chord_region_validate (ZRegion * self);
66
72NONNULL void
74
79#endif
NONNULL ZRegion * chord_region_new(const Position *start_pos, const Position *end_pos, int idx)
Creates a new ZRegion for chords.
NONNULL void chord_region_add_chord_object(ZRegion *self, ChordObject *chord, bool fire_events)
Adds a ChordObject to the Region.
NONNULL void chord_region_insert_chord_object(ZRegion *self, ChordObject *chord, int pos, bool fire_events)
Inserts a ChordObject to the Region.
NONNULL void chord_region_free_members(ZRegion *self)
Frees members only but not the ZRegion itself.
NONNULL void chord_region_remove_chord_object(ZRegion *self, ChordObject *chord, int free, bool fire_events)
Removes a ChordObject from the Region.
Position end_pos
End Position, if the object has one.
Position pos
Position (or start Position if the object has length).
A ChordObject to be shown in the TimelineArrangerWidget.
A Position is made up of bars.beats.sixteenths.ticks.
Definition position.h:126
A region (clip) is an object on the timeline that contains either MidiNote's or AudioClip's.
Definition region.h:72