10#ifndef __GUI_BACKEND_MA_SELECTIONS_H__
11#define __GUI_BACKEND_MA_SELECTIONS_H__
23#define MA_SELECTIONS_SCHEMA_VERSION 1
25#define MA_SELECTIONS (PROJECT->midi_arranger_selections)
44 size_t midi_notes_size;
48static const cyaml_schema_field_t
49 midi_arranger_selections_fields_schema[] = {
53 arranger_selections_fields_schema),
63static const cyaml_schema_value_t
64 midi_arranger_selections_schema = {
67 midi_arranger_selections_fields_schema),
74midi_arranger_selections_get_highest_note (
78midi_arranger_selections_get_lowest_note (
104midi_arranger_selections_sort_by_pitch (
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...
#define YAML_FIELD_MAPPING_EMBEDDED(owner, member, schema)
Mapping embedded inside the struct.
#define YAML_FIELD_DYN_ARRAY_VAR_COUNT(owner, member, schema)
Dynamic-width (reallocated) array of structs with variable count.
#define YAML_VALUE_PTR(cc, fields_schema)
Schema to be used as a pointer.
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.
A Position is made up of bars.beats.sixteenths.ticks.
A region (clip) is an object on the timeline that contains either MidiNote's or AudioClip's.