Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
TracklistSelectionsAction Struct Reference

Tracklist selections (tracks) action. More...

#include <actions/tracklist_selections.h>

Collaboration diagram for TracklistSelectionsAction:

Data Fields

UndoableAction parent_instance
 
TracklistSelectionsActionType type
 Type of action.
 
int track_pos
 Position to make the tracks at.
 
int lane_pos
 Lane position, if editing lane.
 
Position pos
 Position to add the audio region to, if applicable.
 
bool have_pos
 
TrackType track_type
 Track type.
 
int is_empty
 Flag to know if we are making an empty track.
 
PluginSettingpl_setting
 PluginSetting, if making an instrument or bus track from a plugin.
 
char * file_basename
 The basename of the file, if any.
 
char * base64_midi
 If this is an action to create a MIDI track from a MIDI file, this is the base64 representation so that the file does not need to be stored in the project.
 
int pool_id
 If this is an action to create an Audio track from an audio file, this is the pool ID of the audio file.
 
ChannelSend ** src_sends
 Source sends that need to be deleted/ recreated on do/undo.
 
int num_src_sends
 
size_t src_sends_size
 
unsigned int * out_tracks
 Direct out tracks of the original tracks.
 
int num_out_tracks
 
int num_fold_change_tracks
 Number of tracks under folder affected.
 
EditTracksActionType edit_type
 
int tracks_before [600]
 Track positions.
 
int tracks_after [600]
 
int num_tracks
 
TracklistSelectionstls_before
 Clone of the TracklistSelections, if applicable.
 
TracklistSelectionstls_after
 Clone of the TracklistSelections, if applicable.
 
TracklistSelectionsfoldable_tls_before
 Foldable tracks before the change, used when undoing to set the correct sizes.
 
PortConnectionsManagerconnections_mgr_before
 A clone of the port connections at the start of the action.
 
PortConnectionsManagerconnections_mgr_after
 A clone of the port connections after applying the action.
 
int * ival_before
 Int value.
 
int ival_after
 
GdkRGBA * colors_before
 
GdkRGBA new_color
 
char * new_txt
 
bool already_edited
 Skip do if true.
 
float val_before
 Float values.
 
float val_after
 

Detailed Description

Tracklist selections (tracks) action.

Definition at line 98 of file tracklist_selections.h.

Field Documentation

◆ already_edited

bool TracklistSelectionsAction::already_edited

Skip do if true.

Definition at line 236 of file tracklist_selections.h.

◆ base64_midi

char* TracklistSelectionsAction::base64_midi

If this is an action to create a MIDI track from a MIDI file, this is the base64 representation so that the file does not need to be stored in the project.

Note
For audio files, TracklistSelectionsAction.pool_id is used.

Definition at line 150 of file tracklist_selections.h.

◆ colors_before

GdkRGBA* TracklistSelectionsAction::colors_before

Definition at line 230 of file tracklist_selections.h.

◆ connections_mgr_after

PortConnectionsManager* TracklistSelectionsAction::connections_mgr_after

A clone of the port connections after applying the action.

Definition at line 216 of file tracklist_selections.h.

◆ connections_mgr_before

PortConnectionsManager* TracklistSelectionsAction::connections_mgr_before

A clone of the port connections at the start of the action.

Definition at line 212 of file tracklist_selections.h.

◆ edit_type

EditTracksActionType TracklistSelectionsAction::edit_type

Definition at line 184 of file tracklist_selections.h.

◆ file_basename

char* TracklistSelectionsAction::file_basename

The basename of the file, if any.

This will be used as the track name.

Definition at line 139 of file tracklist_selections.h.

◆ foldable_tls_before

TracklistSelections* TracklistSelectionsAction::foldable_tls_before

Foldable tracks before the change, used when undoing to set the correct sizes.

Definition at line 208 of file tracklist_selections.h.

◆ have_pos

bool TracklistSelectionsAction::have_pos

Definition at line 117 of file tracklist_selections.h.

◆ is_empty

int TracklistSelectionsAction::is_empty

Flag to know if we are making an empty track.

Definition at line 124 of file tracklist_selections.h.

◆ ival_after

int TracklistSelectionsAction::ival_after

Definition at line 226 of file tracklist_selections.h.

◆ ival_before

int* TracklistSelectionsAction::ival_before

Int value.

Also used for bool.

Definition at line 225 of file tracklist_selections.h.

◆ lane_pos

int TracklistSelectionsAction::lane_pos

Lane position, if editing lane.

Definition at line 111 of file tracklist_selections.h.

◆ new_color

GdkRGBA TracklistSelectionsAction::new_color

Definition at line 231 of file tracklist_selections.h.

◆ new_txt

char* TracklistSelectionsAction::new_txt

Definition at line 233 of file tracklist_selections.h.

◆ num_fold_change_tracks

int TracklistSelectionsAction::num_fold_change_tracks

Number of tracks under folder affected.

Counter to be filled while doing to be used when undoing.

Definition at line 182 of file tracklist_selections.h.

◆ num_out_tracks

int TracklistSelectionsAction::num_out_tracks

Definition at line 174 of file tracklist_selections.h.

◆ num_src_sends

int TracklistSelectionsAction::num_src_sends

Definition at line 165 of file tracklist_selections.h.

◆ num_tracks

int TracklistSelectionsAction::num_tracks

Definition at line 194 of file tracklist_selections.h.

◆ out_tracks

unsigned int* TracklistSelectionsAction::out_tracks

Direct out tracks of the original tracks.

These are track name hashes.

Definition at line 173 of file tracklist_selections.h.

◆ parent_instance

UndoableAction TracklistSelectionsAction::parent_instance

Definition at line 100 of file tracklist_selections.h.

◆ pl_setting

PluginSetting* TracklistSelectionsAction::pl_setting

PluginSetting, if making an instrument or bus track from a plugin.

If this is empty and the track type is instrument, it is assumed that it's an empty track.

Definition at line 132 of file tracklist_selections.h.

◆ pool_id

int TracklistSelectionsAction::pool_id

If this is an action to create an Audio track from an audio file, this is the pool ID of the audio file.

If this is not -1, this means that an audio file exists in the pool.

Definition at line 160 of file tracklist_selections.h.

◆ pos

Position TracklistSelectionsAction::pos

Position to add the audio region to, if applicable.

Definition at line 115 of file tracklist_selections.h.

◆ src_sends

ChannelSend** TracklistSelectionsAction::src_sends

Source sends that need to be deleted/ recreated on do/undo.

Definition at line 164 of file tracklist_selections.h.

◆ src_sends_size

size_t TracklistSelectionsAction::src_sends_size

Definition at line 166 of file tracklist_selections.h.

◆ tls_after

TracklistSelections* TracklistSelectionsAction::tls_after

Clone of the TracklistSelections, if applicable.

Definition at line 202 of file tracklist_selections.h.

◆ tls_before

TracklistSelections* TracklistSelectionsAction::tls_before

Clone of the TracklistSelections, if applicable.

Definition at line 198 of file tracklist_selections.h.

◆ track_pos

int TracklistSelectionsAction::track_pos

Position to make the tracks at.

Used when undoing too.

Definition at line 108 of file tracklist_selections.h.

◆ track_type

TrackType TracklistSelectionsAction::track_type

Track type.

Definition at line 120 of file tracklist_selections.h.

◆ tracks_after

int TracklistSelectionsAction::tracks_after[600]

Definition at line 193 of file tracklist_selections.h.

◆ tracks_before

int TracklistSelectionsAction::tracks_before[600]

Track positions.

Used for actions where full selection clones are not needed.

Definition at line 192 of file tracklist_selections.h.

◆ type

TracklistSelectionsActionType TracklistSelectionsAction::type

Type of action.

Definition at line 103 of file tracklist_selections.h.

◆ val_after

float TracklistSelectionsAction::val_after

Definition at line 240 of file tracklist_selections.h.

◆ val_before

float TracklistSelectionsAction::val_before

Float values.

Definition at line 239 of file tracklist_selections.h.


The documentation for this struct was generated from the following file: