Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
zrythm::gui::actions::ArrangerSelectionsAction::SplitAction Class Reference
Inheritance diagram for zrythm::gui::actions::ArrangerSelectionsAction::SplitAction:
Collaboration diagram for zrythm::gui::actions::ArrangerSelectionsAction::SplitAction:

Public Member Functions

 SplitAction (ArrangerObjectSpan sel, Position pos)
 Creates a new action for splitting regions.
Public Member Functions inherited from zrythm::gui::actions::ArrangerSelectionsAction
ArrangerObjectRegistry & get_arranger_object_registry () const
bool needs_transport_total_bar_update (bool perform) const override
 Returns whether the total transport bars need to be recalculated.
bool needs_pause () const override
 Returns whether the action requires pausing the engine.
QString to_string () const final
 Stringizes the action to be used in Undo/Redo buttons.
Public Member Functions inherited from zrythm::gui::actions::UndoableAction
 UndoableAction (Type type)
 UndoableAction (Type type, dsp::FramesPerTick frames_per_tick, units::sample_rate_t sample_rate)
void init_loaded (sample_rate_t engine_sample_rate)
 Non virtual function following the NVI pattern.
virtual bool affects_audio_region_internal_positions () const
 Whether audio region loop/fade/etc.
virtual void get_plugins (std::vector< plugins::Plugin * > &plugins)
 Get the plugins referenced in this action.
auto get_frames_per_tick () const
auto get_ticks_per_frame () const
void set_num_actions (int num_actions)
 Sets the number of actions for this action.
void save_or_load_port_connections (bool performing)
 To be used by actions that save/load port connections.
void perform ()
 Performs the action.
void undo ()
 Undoes the action.

Additional Inherited Members

Public Types inherited from zrythm::gui::actions::ArrangerSelectionsAction
enum class  Type {
  AutomationFill , Create , Delete , Duplicate ,
  Edit , Link , Merge , Move ,
  Quantize , Record , Resize , Split
}
enum class  ResizeType {
  L , R , LLoop , RLoop ,
  LFade , RFade , LStretch , RStretch
}
 Type used when the action is a RESIZE action. More...
enum class  EditType {
  Name , Position , Primitive , Scale ,
  Fades , Mute , EditorFunction
}
 Type used when the action is an EDIT action. More...
using Position = zrythm::dsp::Position
Public Types inherited from zrythm::gui::actions::UndoableAction
enum class  Type {
  TracklistSelections , ChannelSend , MixerSelections , ArrangerSelections ,
  MidiMapping , PortConnection , Port , Range ,
  Transport , Chord
}
 Type of UndoableAction. More...
using PortConnectionsManager = dsp::PortConnectionsManager
Data Fields inherited from zrythm::gui::actions::ArrangerSelectionsAction
Type type_ {}
 Action type.
std::optional< std::vector< ArrangerObjectPtrVariant > > sel_
 A clone of the ArrangerSelections before the change.
std::optional< std::vector< ArrangerObjectPtrVariant > > sel_after_
 A clone of the ArrangerSelections after the change (used in the EDIT action and quantize).
EditType edit_type_ {}
 Type of edit action, if an Edit action.
double ticks_ {}
 Ticks diff.
int delta_tracks_ {}
 Tracks moved.
int delta_lanes_ {}
 Lanes moved.
int delta_chords_ = 0
 Chords moved (up/down in the Chord editor).
int delta_pitch_ = 0
 Delta of MidiNote pitch.
int delta_vel_ = 0
 Delta of MidiNote velocity.
double delta_normalized_amount_ = 0.0
 Difference in a normalized amount, such as automation point normalized value.
std::optional< std::pair< Position, Position > > selected_positions_in_audio_editor_
std::optional< ArrangerObject::Uuidclip_editor_region_id_
 Clip editor region ID (for non-timeline actions).
std::optional< dsp::PortUuid > target_port_
 Target port (used to find corresponding automation track when moving/copying automation regions to another automation track/another track).
utils::Utf8String str_
 String, when changing a string.
Position pos_
 Position, when changing a Position.
std::vector< ArrangerObject::Uuidr1_
 Used when splitting - these are the split BoundedObject's.
std::vector< ArrangerObject::Uuidr2_
bool first_run_ = false
 Number of split objects.
std::unique_ptr< gui::old_dsp::QuantizeOptionsopts_ {}
 QuantizeOptions clone, if quantizing.
std::optional< ArrangerObjectPtrVariant > region_before_
 Used for automation autofill action.
std::optional< ArrangerObjectPtrVariant > region_after_
ResizeType resize_type_ = (ResizeType) 0
 Used by the resize action.
Data Fields inherited from zrythm::gui::actions::UndoableAction
Type undoable_action_type_ {}
 Undoable action type.
dsp::FramesPerTick frames_per_tick_
 A snapshot of AudioEngine.frames_per_tick when the action is executed.
units::sample_rate_t sample_rate_ = 0
 Sample rate of this action.
int num_actions_ = 1
 Number of actions to perform.
std::unique_ptr< dsp::PortConnectionsManagerport_connections_before_
 An (optional) clone of the port connections at the start of the action, used for reverting port connections when undoing.
std::unique_ptr< dsp::PortConnectionsManagerport_connections_after_
Protected Member Functions inherited from zrythm::gui::actions::ArrangerSelectionsAction
 ArrangerSelectionsAction (ArrangerObjectSpan before_sel, Type type)
 Generic constructor to be used by others.
void set_before_selections (ArrangerObjectSpan src_var)
 Sets sel_ to a clone of src.
void set_after_selections (ArrangerObjectSpan src_var)
 Sets sel_after_ to a clone of src.

Detailed Description

Definition at line 601 of file arranger_selections_action.h.

Constructor & Destructor Documentation

◆ SplitAction()

zrythm::gui::actions::ArrangerSelectionsAction::SplitAction::SplitAction ( ArrangerObjectSpan sel,
Position pos )

Creates a new action for splitting regions.

Parameters
posGlobal position to split at.

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