Actions module

Classes

struct EditChordAction
An action for changing the chord stored in a ChordObject.
struct EditMarkerAction
An action for changing the chord stored in a MarkerObject.
struct EditMidiArrangerSelectionsAction
The UndoableAction.
struct EditScaleAction
An action for changing the scale stored in a ScaleObject.
struct QuantizeTimelineSelectionsAction
Action to quantize the given TimelineSelections using the given QuantizeOptions.

Enums

enum EditMidiArrangerSelectionsType { EMAS_TYPE_RESIZE_L, EMAS_TYPE_RESIZE_R, EMAS_TYPE_VELOCITY_CHANGE, EMAS_TYPE_VELOCITY_RAMP }
Type of action.
enum EditTimelineSelectionsType { ETS_RESIZE_L, ETS_RESIZE_R, ETS_REGION_NAME, ETS_REGION_CLIP_START_POS, ETS_REGION_LOOP_START_POS, ETS_REGION_LOOP_END_POS, ETS_CHORD_OBJECT, ETS_SCALE_OBJECT, ETS_MARKER, ETS_SPLIT }

Typedefs

using EditChordAction = struct EditChordAction
An action for changing the chord stored in a ChordObject.
using EditMarkerAction = struct EditMarkerAction
An action for changing the chord stored in a MarkerObject.
using EditMidiArrangerSelectionsType = enum EditMidiArrangerSelectionsType
Type of action.
using EditMidiArrangerSelectionsAction = struct EditMidiArrangerSelectionsAction
The UndoableAction.
using EditScaleAction = struct EditScaleAction
An action for changing the scale stored in a ScaleObject.
using QuantizeTimelineSelectionsAction = struct QuantizeTimelineSelectionsAction
Action to quantize the given TimelineSelections using the given QuantizeOptions.

Functions

auto copy_plugins_action_undo(CopyPluginsAction* self) -> int
Deletes the plugins.
auto create_plugins_action_undo(CreatePluginsAction* self) -> int
Deletes the plugins.
auto create_tracks_action_undo(CreateTracksAction* self) -> int
Deletes the track.
auto delete_plugins_action_undo(DeletePluginsAction* self) -> int
Deletes the plugin.
auto delete_tracks_action_undo(DeleteTracksAction* self) -> int
Undo deletion, create tracks.
auto edit_midi_arranger_selections_action_new(MidiArrangerSelections* mas, EditMidiArrangerSelectionsType type, long ticks, int diff, Position* start_pos, Position* end_pos) -> UndoableAction*
Create the new action.
auto edit_plugins_action_undo(EditPluginsAction* self) -> int
Edits the plugin.
auto move_tracks_action_new(TracklistSelections* tls, int pos) -> UndoableAction*
Move tracks to given position.
auto quantize_timeline_selections_action_new(const TimelineSelections* ts, const QuantizeOptions* opts) -> UndoableAction*
Creates a new action.

Variables

MidiArrangerSelections* mas
Clone of selections.
EditMidiArrangerSelectionsType type
Type of action.
long ticks
Ticks when resizing.
int diff
Difference for velocity changes, etc.
int first_call
If this is the first time calling do.
int* vel_before
The positions when ramping velocities.
int* vel_after
The velocities changed to when ramping.

Defines

#define emas_action_new_vel_change(mas, diff)
Simple way to create an action for Velocity change.
#define emas_action_new_resize_l(mas, ticks)
Simple way to create an action for resizing L.
#define emas_action_new_resize_r(mas, ticks)
Simple way to create an action for resizing R.
#define emas_action_new_vel_ramp(mas, start_pos, end_pos)
Simple way to create an action for ramping.

Enum documentation

enum EditMidiArrangerSelectionsType

Type of action.

Enumerators
EMAS_TYPE_RESIZE_L
EMAS_TYPE_RESIZE_R
EMAS_TYPE_VELOCITY_CHANGE

Change in velocities by dragging their edges.

EMAS_TYPE_VELOCITY_RAMP

Change in velocities by ramping.

enum EditTimelineSelectionsType

Enumerators
ETS_RESIZE_L

Resize one or more objects.

ETS_RESIZE_R

Resize one or more object.

ETS_REGION_NAME

Edit name for a single Region.

ETS_REGION_CLIP_START_POS
ETS_REGION_LOOP_START_POS
ETS_REGION_LOOP_END_POS
ETS_CHORD_OBJECT

Edit parameters for a single ChordObject.

ETS_SCALE_OBJECT

Edit parameters for a single ScaleObject.

ETS_MARKER

Edit parameters for a single Marker.

ETS_SPLIT

Cut an object (usually Region).

Variable documentation

int* vel_before

The positions when ramping velocities.

Number of velocities. Velocity dynamic array sizes. The original velocities when ramping.