Live.Sample (runtime)¶
Live 11 — Live Object Model & framework reference (descriptions and signatures).
Classes¶
class Sample(LomObject)¶
This class represents a sample file loaded into a Simpler instance.
Properties¶
_live_ptrbeats_granulation_resolution- Access to the Granulation Resolution parameter in Beats Warp Mode.beats_transient_envelope- Access to the Transient Envelope parameter in Beats Warp Mode.beats_transient_loop_mode- Access to the Transient Loop Mode parameter in Beats Warp Mode.canonical_parent- Access to the sample's canonical parent.complex_pro_envelope- Access to the Envelope parameter in Complex Pro Mode.complex_pro_formants- Access to the Formants parameter in Complex Pro Warp Mode.end_marker- Access to the position of the sample's end marker.file_path- Get the path of the sample file.gain- Access to the sample gain.length- Get the length of the sample file in sample frames.sample_rate- Access to the audio sample rate of the sample.slices- Access to the list of slice points in sample time in the sample.slicing_beat_division- Access to sample's slicing step size.slicing_region_count- Access to sample's slicing split count.slicing_sensitivity- Access to sample's slicing sensitivity whose sensitivity is in between 0.0 and 1.0.slicing_style- Access to sample's slicing style.start_marker- Access to the position of the sample's start marker.texture_flux- Access to the Flux parameter in Texture Warp Mode.texture_grain_size- Access to the Grain Size parameter in Texture Warp Mode.tones_grain_size- Access to the Grain Size parameter in Tones Warp Mode.warp_markers- Get the warp markers for this sample.warp_mode- Access to the sample's warp mode.warping- Access to the sample's warping property.
Methods¶
__init__(...)¶
Raises an exception This class cannot be instantiated from Python
add_beats_granulation_resolution_listener(...)¶
add_beats_granulation_resolution_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "beats_granulation_resolution" has changed.
C++ signature :
void add_beats_granulation_resolution_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_beats_transient_envelope_listener(...)¶
add_beats_transient_envelope_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "beats_transient_envelope" has changed.
C++ signature :
void add_beats_transient_envelope_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_beats_transient_loop_mode_listener(...)¶
add_beats_transient_loop_mode_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "beats_transient_loop_mode" has changed.
C++ signature :
void add_beats_transient_loop_mode_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_complex_pro_envelope_listener(...)¶
add_complex_pro_envelope_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "complex_pro_envelope" has changed.
C++ signature :
void add_complex_pro_envelope_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_complex_pro_formants_listener(...)¶
add_complex_pro_formants_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "complex_pro_formants" has changed.
C++ signature :
void add_complex_pro_formants_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_end_marker_listener(...)¶
add_end_marker_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "end_marker" has changed.
C++ signature :
void add_end_marker_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_file_path_listener(...)¶
add_file_path_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "file_path" has changed.
C++ signature :
void add_file_path_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_gain_listener(...)¶
add_gain_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "gain" has changed.
C++ signature :
void add_gain_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_slices_listener(...)¶
add_slices_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "slices" has changed.
C++ signature :
void add_slices_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_slicing_beat_division_listener(...)¶
add_slicing_beat_division_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "slicing_beat_division" has changed.
C++ signature :
void add_slicing_beat_division_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_slicing_region_count_listener(...)¶
add_slicing_region_count_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "slicing_region_count" has changed.
C++ signature :
void add_slicing_region_count_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_slicing_sensitivity_listener(...)¶
add_slicing_sensitivity_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "slicing_sensitivity" has changed.
C++ signature :
void add_slicing_sensitivity_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_slicing_style_listener(...)¶
add_slicing_style_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "slicing_style" has changed.
C++ signature :
void add_slicing_style_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_start_marker_listener(...)¶
add_start_marker_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "start_marker" has changed.
C++ signature :
void add_start_marker_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_texture_flux_listener(...)¶
add_texture_flux_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "texture_flux" has changed.
C++ signature :
void add_texture_flux_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_texture_grain_size_listener(...)¶
add_texture_grain_size_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "texture_grain_size" has changed.
C++ signature :
void add_texture_grain_size_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_tones_grain_size_listener(...)¶
add_tones_grain_size_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "tones_grain_size" has changed.
C++ signature :
void add_tones_grain_size_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_warp_markers_listener(...)¶
add_warp_markers_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "warp_markers" has changed.
C++ signature :
void add_warp_markers_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_warp_mode_listener(...)¶
add_warp_mode_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "warp_mode" has changed.
C++ signature :
void add_warp_mode_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
add_warping_listener(...)¶
add_warping_listener( (Sample)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "warping" has changed.
C++ signature :
void add_warping_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
beat_to_sample_time(...)¶
beat_to_sample_time( (Sample)self, (float)beat_time) -> float : Converts the given beat time to sample time. Raises an error if the sample is not warped.
C++ signature :
double beat_to_sample_time(TPyHandle<AMultiSamplePart>,double)
beats_granulation_resolution_has_listener(...)¶
beats_granulation_resolution_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "beats_granulation_resolution".
C++ signature :
bool beats_granulation_resolution_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
beats_transient_envelope_has_listener(...)¶
beats_transient_envelope_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "beats_transient_envelope".
C++ signature :
bool beats_transient_envelope_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
beats_transient_loop_mode_has_listener(...)¶
beats_transient_loop_mode_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "beats_transient_loop_mode".
C++ signature :
bool beats_transient_loop_mode_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
clear_slices(...)¶
clear_slices( (Sample)self) -> None : Clears all slices created in Simpler's manual mode.
C++ signature :
void clear_slices(TPyHandle<AMultiSamplePart>)
complex_pro_envelope_has_listener(...)¶
complex_pro_envelope_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "complex_pro_envelope".
C++ signature :
bool complex_pro_envelope_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
complex_pro_formants_has_listener(...)¶
complex_pro_formants_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "complex_pro_formants".
C++ signature :
bool complex_pro_formants_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
end_marker_has_listener(...)¶
end_marker_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "end_marker".
C++ signature :
bool end_marker_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
file_path_has_listener(...)¶
file_path_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "file_path".
C++ signature :
bool file_path_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
gain_display_string(...)¶
gain_display_string( (Sample)self) -> str : Get the gain's display value as a string.
C++ signature :
TString gain_display_string(TPyHandle<AMultiSamplePart>)
gain_has_listener(...)¶
gain_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "gain".
C++ signature :
bool gain_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
insert_slice(...)¶
insert_slice( (Sample)self, (int)slice_time) -> None : Add a slice point at the provided time if there is none.
C++ signature :
void insert_slice(TPyHandle<AMultiSamplePart>,int)
move_slice(...)¶
move_slice( (Sample)self, (int)old_time, (int)new_time) -> int : Move the slice point at the provided time.
C++ signature :
int move_slice(TPyHandle<AMultiSamplePart>,int,int)
remove_beats_granulation_resolution_listener(...)¶
remove_beats_granulation_resolution_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "beats_granulation_resolution".
C++ signature :
void remove_beats_granulation_resolution_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_beats_transient_envelope_listener(...)¶
remove_beats_transient_envelope_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "beats_transient_envelope".
C++ signature :
void remove_beats_transient_envelope_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_beats_transient_loop_mode_listener(...)¶
remove_beats_transient_loop_mode_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "beats_transient_loop_mode".
C++ signature :
void remove_beats_transient_loop_mode_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_complex_pro_envelope_listener(...)¶
remove_complex_pro_envelope_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "complex_pro_envelope".
C++ signature :
void remove_complex_pro_envelope_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_complex_pro_formants_listener(...)¶
remove_complex_pro_formants_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "complex_pro_formants".
C++ signature :
void remove_complex_pro_formants_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_end_marker_listener(...)¶
remove_end_marker_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "end_marker".
C++ signature :
void remove_end_marker_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_file_path_listener(...)¶
remove_file_path_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "file_path".
C++ signature :
void remove_file_path_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_gain_listener(...)¶
remove_gain_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "gain".
C++ signature :
void remove_gain_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_slice(...)¶
remove_slice( (Sample)self, (int)slice_time) -> None : Remove the slice point at the provided time if there is one.
C++ signature :
void remove_slice(TPyHandle<AMultiSamplePart>,int)
remove_slices_listener(...)¶
remove_slices_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "slices".
C++ signature :
void remove_slices_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_slicing_beat_division_listener(...)¶
remove_slicing_beat_division_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "slicing_beat_division".
C++ signature :
void remove_slicing_beat_division_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_slicing_region_count_listener(...)¶
remove_slicing_region_count_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "slicing_region_count".
C++ signature :
void remove_slicing_region_count_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_slicing_sensitivity_listener(...)¶
remove_slicing_sensitivity_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "slicing_sensitivity".
C++ signature :
void remove_slicing_sensitivity_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_slicing_style_listener(...)¶
remove_slicing_style_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "slicing_style".
C++ signature :
void remove_slicing_style_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_start_marker_listener(...)¶
remove_start_marker_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "start_marker".
C++ signature :
void remove_start_marker_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_texture_flux_listener(...)¶
remove_texture_flux_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "texture_flux".
C++ signature :
void remove_texture_flux_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_texture_grain_size_listener(...)¶
remove_texture_grain_size_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "texture_grain_size".
C++ signature :
void remove_texture_grain_size_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_tones_grain_size_listener(...)¶
remove_tones_grain_size_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "tones_grain_size".
C++ signature :
void remove_tones_grain_size_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_warp_markers_listener(...)¶
remove_warp_markers_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "warp_markers".
C++ signature :
void remove_warp_markers_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_warp_mode_listener(...)¶
remove_warp_mode_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "warp_mode".
C++ signature :
void remove_warp_mode_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
remove_warping_listener(...)¶
remove_warping_listener( (Sample)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "warping".
C++ signature :
void remove_warping_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
reset_slices(...)¶
reset_slices( (Sample)self) -> None : Resets all edited slices to their original positions.
C++ signature :
void reset_slices(TPyHandle<AMultiSamplePart>)
sample_to_beat_time(...)¶
sample_to_beat_time( (Sample)self, (float)sample_time) -> float : Converts the given sample time to beat time. Raises an error if the sample is not warped.
C++ signature :
double sample_to_beat_time(TPyHandle<AMultiSamplePart>,double)
slices_has_listener(...)¶
slices_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "slices".
C++ signature :
bool slices_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
slicing_beat_division_has_listener(...)¶
slicing_beat_division_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "slicing_beat_division".
C++ signature :
bool slicing_beat_division_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
slicing_region_count_has_listener(...)¶
slicing_region_count_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "slicing_region_count".
C++ signature :
bool slicing_region_count_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
slicing_sensitivity_has_listener(...)¶
slicing_sensitivity_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "slicing_sensitivity".
C++ signature :
bool slicing_sensitivity_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
slicing_style_has_listener(...)¶
slicing_style_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "slicing_style".
C++ signature :
bool slicing_style_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
start_marker_has_listener(...)¶
start_marker_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "start_marker".
C++ signature :
bool start_marker_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
texture_flux_has_listener(...)¶
texture_flux_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "texture_flux".
C++ signature :
bool texture_flux_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
texture_grain_size_has_listener(...)¶
texture_grain_size_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "texture_grain_size".
C++ signature :
bool texture_grain_size_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
tones_grain_size_has_listener(...)¶
tones_grain_size_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "tones_grain_size".
C++ signature :
bool tones_grain_size_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
warp_markers_has_listener(...)¶
warp_markers_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "warp_markers".
C++ signature :
bool warp_markers_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
warp_mode_has_listener(...)¶
warp_mode_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "warp_mode".
C++ signature :
bool warp_mode_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
warping_has_listener(...)¶
warping_has_listener( (Sample)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "warping".
C++ signature :
bool warping_has_listener(TPyHandle<AMultiSamplePart>,boost::python::api::object)
class SlicingBeatDivision(enum)¶
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Methods¶
__init__(self, /, *args, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
bit_length(self, /)¶
Number of bits necessary to represent self in binary.
bin(37) '0b100101' (37).bit_length() 6
conjugate(...)¶
Returns self, the complex conjugate of any int.
from_bytes(bytes, byteorder, *, signed=False)¶
Return the integer represented by the given array of bytes.
bytes Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder' as the byte order value. signed Indicates whether two's complement is used to represent the integer.
to_bytes(self, /, length, byteorder, *, signed=False)¶
Return an array of bytes representing an integer.
length Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder' as the byte order value. signed Determines whether two's complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
Attributes¶
denominator=<attribute 'denominator' of 'int' objects>- the denominator of a rational number in lowest termseighth=Sample.SlicingBeatDivision.eightheighth_triplett=Sample.SlicingBeatDivision.eighth_triplettfour_bars=Sample.SlicingBeatDivision.four_barshalf=Sample.SlicingBeatDivision.halfhalf_triplett=Sample.SlicingBeatDivision.half_triplettimag=<attribute 'imag' of 'int' objects>- the imaginary part of a complex numbername=<member 'name' of 'Boost.Python.enum' objects>names={'sixteenth': Sample.SlicingBeatDivision.sixteenth, 'sixteenth_triplett': Sample.SlicingBeatDivision.sixteenth_triplett, 'eighth': Sample.SlicingBeatDivision.ei...- dict() -> new empty dictionarynumerator=<attribute 'numerator' of 'int' objects>- the numerator of a rational number in lowest termsone_bar=Sample.SlicingBeatDivision.one_barquarter=Sample.SlicingBeatDivision.quarterquarter_triplett=Sample.SlicingBeatDivision.quarter_triplettreal=<attribute 'real' of 'int' objects>- the real part of a complex numbersixteenth=Sample.SlicingBeatDivision.sixteenthsixteenth_triplett=Sample.SlicingBeatDivision.sixteenth_tripletttwo_bars=Sample.SlicingBeatDivision.two_barsvalues={0: Sample.SlicingBeatDivision.sixteenth, 1: Sample.SlicingBeatDivision.sixteenth_triplett, 2: Sample.SlicingBeatDivision.eighth, 3: Sample.SlicingBeatDivision....- dict() -> new empty dictionary
class SlicingStyle(enum)¶
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Methods¶
__init__(self, /, *args, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
bit_length(self, /)¶
Number of bits necessary to represent self in binary.
bin(37) '0b100101' (37).bit_length() 6
conjugate(...)¶
Returns self, the complex conjugate of any int.
from_bytes(bytes, byteorder, *, signed=False)¶
Return the integer represented by the given array of bytes.
bytes Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder' as the byte order value. signed Indicates whether two's complement is used to represent the integer.
to_bytes(self, /, length, byteorder, *, signed=False)¶
Return an array of bytes representing an integer.
length Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder' as the byte order value. signed Determines whether two's complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
Attributes¶
beat=Sample.SlicingStyle.beatdenominator=<attribute 'denominator' of 'int' objects>- the denominator of a rational number in lowest termsimag=<attribute 'imag' of 'int' objects>- the imaginary part of a complex numbermanual=Sample.SlicingStyle.manualname=<member 'name' of 'Boost.Python.enum' objects>names={'transient': Sample.SlicingStyle.transient, 'beat': Sample.SlicingStyle.beat, 'region': Sample.SlicingStyle.region, 'manual': Sample.SlicingStyle.manual}- dict() -> new empty dictionarynumerator=<attribute 'numerator' of 'int' objects>- the numerator of a rational number in lowest termsreal=<attribute 'real' of 'int' objects>- the real part of a complex numberregion=Sample.SlicingStyle.regiontransient=Sample.SlicingStyle.transientvalues={0: Sample.SlicingStyle.transient, 1: Sample.SlicingStyle.beat, 2: Sample.SlicingStyle.region, 3: Sample.SlicingStyle.manual}- dict() -> new empty dictionary
class TransientLoopMode(enum)¶
int([x]) -> integer int(x, base=10) -> integer
Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.
If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.
int('0b100', base=0) 4
Methods¶
__init__(self, /, *args, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
bit_length(self, /)¶
Number of bits necessary to represent self in binary.
bin(37) '0b100101' (37).bit_length() 6
conjugate(...)¶
Returns self, the complex conjugate of any int.
from_bytes(bytes, byteorder, *, signed=False)¶
Return the integer represented by the given array of bytes.
bytes Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder' as the byte order value. signed Indicates whether two's complement is used to represent the integer.
to_bytes(self, /, length, byteorder, *, signed=False)¶
Return an array of bytes representing an integer.
length Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes. byteorder The byte order used to represent the integer. If byteorder is 'big', the most significant byte is at the beginning of the byte array. If byteorder is 'little', the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder' as the byte order value. signed Determines whether two's complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.
Attributes¶
alternate=Sample.TransientLoopMode.alternatedenominator=<attribute 'denominator' of 'int' objects>- the denominator of a rational number in lowest termsforward=Sample.TransientLoopMode.forwardimag=<attribute 'imag' of 'int' objects>- the imaginary part of a complex numbername=<member 'name' of 'Boost.Python.enum' objects>names={'off': Sample.TransientLoopMode.off, 'forward': Sample.TransientLoopMode.forward, 'alternate': Sample.TransientLoopMode.alternate}- dict() -> new empty dictionarynumerator=<attribute 'numerator' of 'int' objects>- the numerator of a rational number in lowest termsoff=Sample.TransientLoopMode.offreal=<attribute 'real' of 'int' objects>- the real part of a complex numbervalues={0: Sample.TransientLoopMode.off, 1: Sample.TransientLoopMode.forward, 2: Sample.TransientLoopMode.alternate}- dict() -> new empty dictionary