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
13typedef struct Position Position;
14typedef struct ChordObject ChordObject;
15typedef struct Region Region;
16
28NONNULL Region *
29chord_region_new (const Position * start_pos, const Position * end_pos, int idx);
30
34NONNULL void
36 Region * self,
37 ChordObject * chord,
38 int pos,
39 bool fire_events);
40
44NONNULL void
46 Region * self,
47 ChordObject * chord,
48 bool fire_events);
49
55NONNULL void
57 Region * self,
58 ChordObject * chord,
59 int free,
60 bool fire_events);
61
62NONNULL bool
63chord_region_validate (Region * self);
64
70NONNULL void
72
77#endif
NONNULL void chord_region_add_chord_object(Region *self, ChordObject *chord, bool fire_events)
Adds a ChordObject to the Region.
NONNULL Region * chord_region_new(const Position *start_pos, const Position *end_pos, int idx)
Creates a new Region for chords.
NONNULL void chord_region_free_members(Region *self)
Frees members only but not the Region itself.
NONNULL void chord_region_remove_chord_object(Region *self, ChordObject *chord, int free, bool fire_events)
Removes a ChordObject from the Region.
NONNULL void chord_region_insert_chord_object(Region *self, ChordObject *chord, int pos, bool fire_events)
Inserts a ChordObject to 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:124
A region (clip) is an object on the timeline that contains either MidiNote's or AudioClip's.
Definition region.h:72