ClipSlot
Represents a single cell of Live’s Session view matrix — the intersection of
a track and a scene. The ClipSlot class owns the slot’s Clip (if any),
its launch and stop buttons, and, for group-track slots, the aggregated
playing state of clips inside the group.
ClipSlot
Section titled “ClipSlot”This class represents an entry in Lives Session view matrix. From Live’s runtime docstring.
Properties
Section titled “Properties”Inherited from LomObject
_live_ptr: int
Section titled “_live_ptr: int”canonical_parent: Track
Section titled “canonical_parent: Track”Get the canonical parent of the ClipSlot. From Live’s runtime docstring.
Returns the Clip which this clipslots currently owns. Might be None. From Live’s runtime docstring.
color: int
Section titled “color: int”Returns the canonical color for the clip slot or None if it does not exist. From Live’s runtime docstring.
color_index: int
Section titled “color_index: int”Returns the canonical color index for the clip slot or None if it does not exist. From Live’s runtime docstring.
controls_other_clips: bool
Section titled “controls_other_clips: bool”Returns true if firing this slot will fire clips in other slots. Can only be true for slots in group tracks. From Live’s runtime docstring.
has_clip: bool
Section titled “has_clip: bool”Returns true if this Clipslot owns a Clip. From Live’s runtime docstring.
has_stop_button: bool
Section titled “has_stop_button: bool”Get/Set if this Clip has a stop button, which will, if fired, stop any other Clip that is currently playing the Track we do belong to. From Live’s runtime docstring.
is_group_slot: bool
Section titled “is_group_slot: bool”Returns whether this clip slot is a group track slot (group slot). From Live’s runtime docstring.
is_playing: bool
Section titled “is_playing: bool”Returns whether the clip associated with the slot is playing. From Live’s runtime docstring.
is_recording: bool
Section titled “is_recording: bool”Returns whether the clip associated with the slot is recording. From Live’s runtime docstring.
is_triggered: bool
Section titled “is_triggered: bool”Const access to the triggering state of the clip slot. From Live’s runtime docstring.
Const access to the playing state of the clip slot. Can be either stopped, playing, or recording. From Live’s runtime docstring.
will_record_on_start: bool
Section titled “will_record_on_start: bool”returns true if the clip slot will record on being fired. From Live’s runtime docstring.
Methods
Section titled “Methods”create_audio_clip()
Section titled “create_audio_clip()”- file_path: str
Creates an audio clip referencing the file at the given absolute path in the slot. Throws an error when called on non-empty slots or slots in non-audio or frozen tracks, or when the path doesn’t point at a valid audio file. From Live’s runtime docstring.
create_clip()
Section titled “create_clip()”- length: float
Creates an empty clip with the given length in the slot. Throws an error when called on non-empty slots or slots in non-MIDI tracks. From Live’s runtime docstring.
delete_clip()
Section titled “delete_clip()”Removes the clip contained in the slot. Raises an exception if the slot was empty. From Live’s runtime docstring.
duplicate_clip_to()
Section titled “duplicate_clip_to()”- target_clip_slot: ClipSlot
Duplicates the slot’s clip to the passed in target slot. Overrides the target’s clip if it’s not empty. Raises an exception if the (source) slot itself is empty, or if source and target have different track types (audio vs. MIDI). Also raises if the source or target slot is in a group track (so called group slot). From Live’s runtime docstring.
fire()
Section titled “fire()”Fire a Clip if this Clipslot owns one, else trigger the stop button, if we have one. From Live’s runtime docstring.
set_fire_button_state()
Section titled “set_fire_button_state()”- state: bool
Set the clipslot’s fire button state directly. Supports all launch modes. From Live’s runtime docstring.
stop()
Section titled “stop()”Stop playing the contained Clip, if there is a Clip and its currently playing. From Live’s runtime docstring.
Returned by 3 members elsewhere in the LOM
ClipSlotPlayingState
Section titled “ClipSlotPlayingState”Members
Section titled “Members”stopped | 0 |
started | 1 |
recording | 2 |
This is an independent reference site. Not affiliated with, endorsed by, or sponsored by Ableton AG. “Ableton”, “Live”, “Push”, and related marks are trademarks of Ableton AG.