Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
audio_selections.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2020-2023 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __GUI_BACKEND_AUDIO_SELECTIONS_H__
11#define __GUI_BACKEND_AUDIO_SELECTIONS_H__
12
13#include "dsp/position.h"
16
17typedef struct ZRegion ZRegion;
18
25#define AUDIO_SELECTIONS (PROJECT->audio_selections)
26
72
79void
81
88bool
90
95#endif
void audio_selections_set_has_range(AudioSelections *self, bool has_range)
Sets whether a range selection exists and sends events to update the UI.
bool audio_selections_can_be_pasted(AudioSelections *ts, Position *pos, ZRegion *r)
Returns if the selections can be pasted.
Common data structures and functions for *ArrangerSelections.
Position struct and API.
Region identifier.
Selections to be used for the AudioArrangerWidget's current selections, copying, undoing,...
RegionIdentifier region_id
Identifier of the current region.
bool has_selection
Whether or not a selection exists.
int pool_id
Audio pool ID of the associated audio file, used during serialization.
Position sel_start
Selected range.
A Position is made up of bars.beats.sixteenths.ticks.
Definition position.h:129
Index/identifier for a Region, so we can get Region objects quickly with it without searching by name...
A region (clip) is an object on the timeline that contains either MidiNote's or AudioClip's.
Definition region.h:77