Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
midi_arranger_selections.h
Go to the documentation of this file.
1// clang-format off
2// SPDX-FileCopyrightText: © 2019-2021, 2023 Alexandros Theodotou <alex@zrythm.org>
3// SPDX-License-Identifier: LicenseRef-ZrythmLicense
4// clang-format on
5
12#ifndef __GUI_BACKEND_MA_SELECTIONS_H__
13#define __GUI_BACKEND_MA_SELECTIONS_H__
14
15#include "dsp/midi_note.h"
17
24#define MA_SELECTIONS (PROJECT->midi_arranger_selections)
25
34{
37
40 int num_midi_notes;
41 size_t midi_notes_size;
42
44
49midi_arranger_selections_get_highest_note (MidiArrangerSelections * mas);
50
52midi_arranger_selections_get_lowest_note (MidiArrangerSelections * mas);
53
59void
63
70int
73 Position * pos,
74 ZRegion * region);
75
76NONNULL void
77midi_arranger_selections_sort_by_pitch (MidiArrangerSelections * self, bool desc);
78
83#endif
API for MIDI notes in the PianoRoll.
int midi_arranger_selections_can_be_pasted(MidiArrangerSelections *ts, Position *pos, ZRegion *region)
Returns if the selections can be pasted.
void midi_arranger_selections_unlisten_note_diff(MidiArrangerSelections *prev, MidiArrangerSelections *mas)
Sets the listen status of notes on and off based on changes in the previous selections and the curren...
Common data structures and functions for *ArrangerSelections.
A collection of selected MidiNote's.
MidiNote ** midi_notes
Selected notes.
ArrangerSelections base
Base struct.
A MIDI note inside a ZRegion shown in the piano roll.
Definition midi_note.h:49
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