Sample
Represents a sample file loaded into a Simpler instance. The Sample class
exposes the sample’s file path, length, sample rate, slicing markers, and
the warp markers that drive Simpler’s playback engine.
Sample
Section titled “Sample”This class represents a sample file loaded into a Simpler instance. From Live’s runtime docstring.
Properties
Section titled “Properties”Inherited from LomObject
_live_ptr: int
Section titled “_live_ptr: int”canonical_parent: SimplerDevice
Section titled “canonical_parent: SimplerDevice”Access to the sample’s canonical parent. From Live’s runtime docstring.
beats_granulation_resolution: int
Section titled “beats_granulation_resolution: int”Access to the Granulation Resolution parameter in Beats Warp Mode. From Live’s runtime docstring.
beats_transient_envelope: float
Section titled “beats_transient_envelope: float”Access to the Transient Envelope parameter in Beats Warp Mode. From Live’s runtime docstring.
beats_transient_loop_mode: TransientLoopModeProbed asinthigh confidence- sister method
TransientLoopMode enum in same module (Sample). Property name is a direct snake-case match.
Section titled “beats_transient_loop_mode: TransientLoopModeProbed asinthigh confidencesister method TransientLoopMode enum in same module (Sample). Property name is a direct snake-case match.”TransientLoopMode enum in same module (Sample). Property name is a direct snake-case match.Access to the Transient Loop Mode parameter in Beats Warp Mode. From Live’s runtime docstring.
complex_pro_envelope: float
Section titled “complex_pro_envelope: float”Access to the Envelope parameter in Complex Pro Mode. From Live’s runtime docstring.
complex_pro_formants: float
Section titled “complex_pro_formants: float”Access to the Formants parameter in Complex Pro Warp Mode. From Live’s runtime docstring.
end_marker: int
Section titled “end_marker: int”Access to the position of the sample’s end marker. From Live’s runtime docstring.
file_path: str
Section titled “file_path: str”Get the path of the sample file. From Live’s runtime docstring.
gain: float
Section titled “gain: float”Access to the sample gain. From Live’s runtime docstring.
length: int
Section titled “length: int”Get the length of the sample file in sample frames. From Live’s runtime docstring.
sample_rate: float
Section titled “sample_rate: float”Access to the audio sample rate of the sample. From Live’s runtime docstring.
slices: tuple
Section titled “slices: tuple”Access to the list of slice points in sample time in the sample. From Live’s runtime docstring.
slicing_beat_division: SlicingBeatDivisionProbed asinthigh confidence- sister method
SlicingBeatDivision enum in same module (Sample). Property name is a direct snake-case match.
Section titled “slicing_beat_division: SlicingBeatDivisionProbed asinthigh confidencesister method SlicingBeatDivision enum in same module (Sample). Property name is a direct snake-case match.”SlicingBeatDivision enum in same module (Sample). Property name is a direct snake-case match.Access to sample’s slicing step size. From Live’s runtime docstring.
slicing_region_count: int
Section titled “slicing_region_count: int”Access to sample’s slicing split count. From Live’s runtime docstring.
slicing_sensitivity: float
Section titled “slicing_sensitivity: float”Access to sample’s slicing sensitivity whose sensitivity is in between 0.0 and 1.0. The higher the sensitivity, the more slices will be available. From Live’s runtime docstring.
slicing_style: SlicingStyleProbed asinthigh confidence- sister method
SlicingStyle enum in same module (Sample). Property name is a direct snake-case match.
Section titled “slicing_style: SlicingStyleProbed asinthigh confidencesister method SlicingStyle enum in same module (Sample). Property name is a direct snake-case match.”SlicingStyle enum in same module (Sample). Property name is a direct snake-case match.Access to sample’s slicing style. From Live’s runtime docstring.
start_marker: int
Section titled “start_marker: int”Access to the position of the sample’s start marker. From Live’s runtime docstring.
texture_flux: float
Section titled “texture_flux: float”Access to the Flux parameter in Texture Warp Mode. From Live’s runtime docstring.
texture_grain_size: float
Section titled “texture_grain_size: float”Access to the Grain Size parameter in Texture Warp Mode. From Live’s runtime docstring.
tones_grain_size: float
Section titled “tones_grain_size: float”Access to the Grain Size parameter in Tones Warp Mode. From Live’s runtime docstring.
Get the warp markers for this sample. From Live’s runtime docstring.
warp_mode: WarpModeProbed asinthigh confidence- sister method
WarpMode enum lives in Clip but drives both Clip.warp_mode and Sample.warp_mode (the sample inside an audio clip). Cross-module but unambiguous — only one WarpMode enum exists across the LOM.
Section titled “warp_mode: WarpModeProbed asinthigh confidencesister method WarpMode enum lives in Clip but drives both Clip.warp_mode and Sample.warp_mode (the sample inside an audio clip). Cross-module but unambiguous — only one WarpMode enum exists across the LOM.”WarpMode enum lives in Clip but drives both Clip.warp_mode and Sample.warp_mode (the sample inside an audio clip). Cross-module but unambiguous — only one WarpMode enum exists across the LOM.Access to the sample’s warp mode. From Live’s runtime docstring.
warping: bool
Section titled “warping: bool”Access to the sample’s warping property. From Live’s runtime docstring.
Methods
Section titled “Methods”beat_to_sample_time()
Section titled “beat_to_sample_time()”- beat_time: float
Converts the given beat time to sample time. Raises an error if the sample is not warped. From Live’s runtime docstring.
clear_slices()
Section titled “clear_slices()”Clears all slices created in Simpler’s manual mode. From Live’s runtime docstring.
gain_display_string()
Section titled “gain_display_string()”Get the gain’s display value as a string. From Live’s runtime docstring.
insert_slice()
Section titled “insert_slice()”- slice_time: int
Add a slice point at the provided time if there is none. From Live’s runtime docstring.
move_slice()
Section titled “move_slice()”- old_time: int
- new_time: int
Move the slice point at the provided time. From Live’s runtime docstring.
remove_slice()
Section titled “remove_slice()”- slice_time: int
Remove the slice point at the provided time if there is one. From Live’s runtime docstring.
reset_slices()
Section titled “reset_slices()”Resets all edited slices to their original positions. From Live’s runtime docstring.
sample_to_beat_time()
Section titled “sample_to_beat_time()”- sample_time: float
Converts the given sample time to beat time. Raises an error if the sample is not warped. From Live’s runtime docstring.
Returned by 1 member elsewhere in the LOM
SlicingBeatDivision
Section titled “SlicingBeatDivision”Members
Section titled “Members”sixteenth | 0 |
sixteenth_triplett | 1 |
eighth | 2 |
eighth_triplett | 3 |
quarter | 4 |
quarter_triplett | 5 |
half | 6 |
half_triplett | 7 |
one_bar | 8 |
two_bars | 9 |
four_bars | 10 |
SlicingStyle
Section titled “SlicingStyle”Members
Section titled “Members”transient | 0 |
beat | 1 |
region | 2 |
manual | 3 |
TransientLoopMode
Section titled “TransientLoopMode”Members
Section titled “Members”off | 0 |
forward | 1 |
alternate | 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.