ClipTimeable

class pyableton.ClipTimeable.ArrangerAutomation(root: Element)

ArrangerAutomation Class

Represents automation events in the arranger.

Attributes

eventslist[MidiClip]

List of MIDI clips associated with the arranger automation.

automation_transform_view_stateAutomationTransformViewState

The view state for automation transformation in the arranger.

class pyableton.ClipTimeable.AutomationTransformViewState(root: Element)

AutomationTransformViewState Class

Represents the view state for automation transformation.

Attributes

is_transform_pendingbool

Flag indicating whether automation transformation is pending.

class pyableton.ClipTimeable.ClipTimeable(root: Element)

ClipTimeable Class

Represents a timeable clip in Ableton.

Attributes

arranger_automationArrangerAutomation

The arranger automation associated with the timeable clip.

class pyableton.ClipTimeable.KeyTrack(root: Element)

KeyTrack Class

Represents a key track.

Attributes

idint

The ID of the key track.

noteslist[MidiNoteEvent]

List of MIDI note events in the key track.

midi_keyint

The MIDI key of the key track.

Methods

get_notes()

Returns a list of muspy.Note objects derived from the key track.

get_notes()

Returns a list of muspy.Note objects derived from the key track.

Returns

list[muspy.Note]

List of muspy.Note objects.

class pyableton.ClipTimeable.MidiClip(root: Element)

MidiClip Class

Represents a MIDI clip in Ableton.

Attributes

idint

The unique identifier of the MIDI clip.

timeint

The time position of the MIDI clip.

lom_idint

The Level of Mess (LOM) ID associated with the MIDI clip.

lom_id_viewint

The LOM ID view of the MIDI clip.

current_startint

The current start time of the MIDI clip.

current_endfloat

The current end time of the MIDI clip.

namestr

The name of the MIDI clip.

annotationstr

The annotation of the MIDI clip.

colorint

The color code of the MIDI clip.

launch_modeint

The launch mode of the MIDI clip.

launch_quantisationint

The launch quantization setting of the MIDI clip.

legatobool

Flag indicating whether legato mode is enabled for the MIDI clip.

rambool

Flag indicating whether RAM mode is enabled for the MIDI clip.

disabledbool

Flag indicating whether the MIDI clip is disabled.

velocity_amountint

The velocity amount setting for the MIDI clip.

freeze_startint

The start time for freezing the MIDI clip.

freeze_endint

The end time for freezing the MIDI clip.

is_warpedbool

Flag indicating whether the MIDI clip is warped.

take_idint

The unique identifier of the take associated with the MIDI clip.

notesNotes

The notes associated with the MIDI clip.

bank_select_coarseint

The coarse value of the bank select MIDI controller.

bank_select_fineint

The fine value of the bank select MIDI controller.

program_changeint

The program change value for the MIDI clip.

note_editor_fold_in_zoomint

The zoom setting for folding in the note editor.

note_editor_fold_in_scrollint

The scroll setting for folding in the note editor.

note_editor_fold_out_zoomint

The zoom setting for folding out in the note editor.

note_editor_fold_out_scrollint

The scroll setting for folding out in the note editor.

note_editor_fold_scale_zoomint

The zoom setting for folding the scale in the note editor.

note_editor_fold_scale_scrollint

The scroll setting for folding the scale in the note editor.

is_in_keybool

Flag indicating whether the MIDI clip is in key.

note_spelling_preferenceint

The preference for note spelling in the MIDI clip.

prefer_flat_root_notebool

Flag indicating whether a flat root note is preferred in the MIDI clip.

class pyableton.ClipTimeable.MidiNoteEvent(root: Element)

MidiNoteEvent Class

Represents a MIDI note event.

Attributes

timefloat

The time position of the MIDI note event.

durationfloat

The duration of the MIDI note event.

velocityint

The velocity of the MIDI note event.

velocity_deviationint

The velocity deviation of the MIDI note event.

off_velocityint

The off velocity of the MIDI note event.

probabilityfloat

The probability of the MIDI note event.

is_enabledbool

Flag indicating whether the MIDI note event is enabled.

note_idint

The ID of the MIDI note.

Methods

__str__()

Returns a string representation of the MidiNoteEvent.

class pyableton.ClipTimeable.Notes(root: Element)

Notes Class

Represents a collection of key tracks.

Attributes

key_trackslist[KeyTrack]

List of key tracks.

Methods

get_notes()

Returns a sorted list of muspy.Note objects derived from all key tracks.

to_pandas()

Returns a pandas DataFrame representation of the note data.

get_notes()

Returns a sorted list of muspy.Note objects derived from all key tracks.

Returns

list[muspy.Note]

List of muspy.Note objects.

to_pandas()

Returns a pandas DataFrame representation of the note data.

Returns

pd.DataFrame

Pandas DataFrame containing note data.