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

Public Member Functions

 ArrangerObjectCreator (undo::UndoStack &undo_stack, structure::arrangement::ArrangerObjectFactory &arranger_object_factory, dsp::SnapGrid &snap_grid_timeline, dsp::SnapGrid &snap_grid_editor, QObject *parent=nullptr)
Q_INVOKABLE structure::arrangement::MarkeraddMarker (structure::arrangement::Marker::MarkerType markerType, structure::tracks::MarkerTrack *markerTrack, const QString &name, double startTicks)
Q_INVOKABLE structure::arrangement::TempoObjectaddTempoObject (structure::arrangement::TempoObjectManager *tempoObjectManager, double bpm, structure::arrangement::TempoObject::CurveType curveType, double startTicks)
Q_INVOKABLE structure::arrangement::TimeSignatureObjectaddTimeSignatureObject (structure::arrangement::TempoObjectManager *tempoObjectManager, int numerator, int denominator, double startTicks)
Q_INVOKABLE structure::arrangement::MidiRegionaddEmptyMidiRegion (structure::tracks::Track *track, structure::tracks::TrackLane *lane, double startTicks)
Q_INVOKABLE structure::arrangement::MidiRegionaddEmptyMidiRegionToClip (structure::tracks::Track *track, structure::scenes::ClipSlot *clipSlot)
Q_INVOKABLE structure::arrangement::ChordRegionaddEmptyChordRegion (structure::tracks::ChordTrack *track, double startTicks)
Q_INVOKABLE structure::arrangement::AutomationRegionaddEmptyAutomationRegion (structure::tracks::Track *track, structure::tracks::AutomationTrack *automationTrack, double startTicks)
structure::arrangement::AudioRegionadd_audio_region_with_clip (structure::tracks::Track &track, structure::tracks::TrackLane &lane, dsp::FileAudioSourceUuidReference clip_id, double start_ticks)
structure::arrangement::ScaleObjectadd_scale_object (structure::tracks::ChordTrack &chord_track, utils::QObjectUniquePtr< dsp::MusicalScale > scale, double start_ticks)
structure::arrangement::AudioRegionadd_empty_audio_region_for_recording (structure::tracks::Track &track, structure::tracks::TrackLane &lane, int num_channels, const utils::Utf8String &clip_name, double start_ticks)
Q_INVOKABLE structure::arrangement::AudioRegionaddAudioRegionFromFile (structure::tracks::Track *track, structure::tracks::TrackLane *lane, const QString &absPath, double startTicks)
Q_INVOKABLE structure::arrangement::AudioRegionaddAudioRegionToClipSlotFromFile (structure::tracks::Track *track, structure::scenes::ClipSlot *clipSlot, const QString &absPath)
Q_INVOKABLE structure::arrangement::AudioRegionaddMidiRegionToClipSlotFromFile (structure::tracks::Track *track, structure::scenes::ClipSlot *clipSlot, const QString &absPath)
Q_INVOKABLE structure::arrangement::MidiRegionaddMidiRegionFromChordDescriptor (structure::tracks::Track *track, structure::tracks::TrackLane *lane, const dsp::ChordDescriptor &descr, double startTicks)
 Creates a MIDI region at lane from the given descr starting at startTicks.
Q_INVOKABLE structure::arrangement::MidiRegionaddMidiRegionFromMidiFile (structure::tracks::Track *track, structure::tracks::TrackLane *lane, const QString &absolutePath, double startTicks, int midiTrackIndex)
 Creates a MIDI region at lane from MIDI file path abs_path starting at startTicks.
Q_INVOKABLE structure::arrangement::MidiNoteaddMidiNote (structure::arrangement::MidiRegion *region, double startTicks, int pitch)
Q_INVOKABLE structure::arrangement::AutomationPointaddAutomationPoint (structure::arrangement::AutomationRegion *region, double startTicks, double value)
Q_INVOKABLE structure::arrangement::ChordObjectaddChordObject (structure::arrangement::ChordRegion *region, double startTicks, const int chordIndex)

Detailed Description

Definition at line 20 of file arranger_object_creator.h.

Constructor & Destructor Documentation

◆ ArrangerObjectCreator()

zrythm::actions::ArrangerObjectCreator::ArrangerObjectCreator ( undo::UndoStack & undo_stack,
structure::arrangement::ArrangerObjectFactory & arranger_object_factory,
dsp::SnapGrid & snap_grid_timeline,
dsp::SnapGrid & snap_grid_editor,
QObject * parent = nullptr )
inlineexplicit

Definition at line 27 of file arranger_object_creator.h.

Member Function Documentation

◆ add_audio_region_with_clip()

structure::arrangement::AudioRegion * zrythm::actions::ArrangerObjectCreator::add_audio_region_with_clip ( structure::tracks::Track & track,
structure::tracks::TrackLane & lane,
dsp::FileAudioSourceUuidReference clip_id,
double start_ticks )
inline
Parameters
lane
clip_id
start_ticks
Returns
AudioRegion*

Definition at line 94 of file arranger_object_creator.h.

◆ add_empty_audio_region_for_recording()

structure::arrangement::AudioRegion * zrythm::actions::ArrangerObjectCreator::add_empty_audio_region_for_recording ( structure::tracks::Track & track,
structure::tracks::TrackLane & lane,
int num_channels,
const utils::Utf8String & clip_name,
double start_ticks )
inline

Definition at line 123 of file arranger_object_creator.h.

◆ add_scale_object()

structure::arrangement::ScaleObject * zrythm::actions::ArrangerObjectCreator::add_scale_object ( structure::tracks::ChordTrack & chord_track,
utils::QObjectUniquePtr< dsp::MusicalScale > scale,
double start_ticks )
inline

Definition at line 106 of file arranger_object_creator.h.

◆ addAudioRegionFromFile()

Q_INVOKABLE structure::arrangement::AudioRegion * zrythm::actions::ArrangerObjectCreator::addAudioRegionFromFile ( structure::tracks::Track * track,
structure::tracks::TrackLane * lane,
const QString & absPath,
double startTicks )
inline

Definition at line 137 of file arranger_object_creator.h.

◆ addAutomationPoint()

Q_INVOKABLE structure::arrangement::AutomationPoint * zrythm::actions::ArrangerObjectCreator::addAutomationPoint ( structure::arrangement::AutomationRegion * region,
double startTicks,
double value )
inline

Definition at line 191 of file arranger_object_creator.h.

◆ addChordObject()

Q_INVOKABLE structure::arrangement::ChordObject * zrythm::actions::ArrangerObjectCreator::addChordObject ( structure::arrangement::ChordRegion * region,
double startTicks,
const int chordIndex )
inline

Definition at line 200 of file arranger_object_creator.h.

◆ addEmptyMidiRegionToClip()

Q_INVOKABLE structure::arrangement::MidiRegion * zrythm::actions::ArrangerObjectCreator::addEmptyMidiRegionToClip ( structure::tracks::Track * track,
structure::scenes::ClipSlot * clipSlot )
inline

Definition at line 63 of file arranger_object_creator.h.

◆ addMidiRegionFromMidiFile()

Q_INVOKABLE structure::arrangement::MidiRegion * zrythm::actions::ArrangerObjectCreator::addMidiRegionFromMidiFile ( structure::tracks::Track * track,
structure::tracks::TrackLane * lane,
const QString & absolutePath,
double startTicks,
int midiTrackIndex )

Creates a MIDI region at lane from MIDI file path abs_path starting at startTicks.

Parameters
midi_track_idxThe index of this track, starting from 0. This will be sequential, ie, if idx 1 is requested and the MIDI file only has tracks 5 and 7, it will use track 7.

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