Live.SimplerDevice (runtime)¶
Live 12 — Live Object Model & framework reference (descriptions and signatures).
Functions¶
get_available_voice_numbers(...)¶
get_available_voice_numbers() -> IntVector : Get a vector of valid Simpler voice numbers.
C++ signature :
std::__1::vector<int, std::__1::allocator<int>> get_available_voice_numbers()
Classes¶
class PlaybackMode(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.
as_integer_ratio(self, /)¶
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
(10).as_integer_ratio() (10, 1) (-10).as_integer_ratio() (-10, 1) (0).as_integer_ratio() (0, 1)
bit_count(self, /)¶
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
bin(13) '0b1101' (13).bit_count() 3
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='big', *, 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. Default is to use 'big'. signed Indicates whether two's complement is used to represent the integer.
to_bytes(self, /, length=1, byteorder='big', *, 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. Default is length 1. 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. Default is to use 'big'. 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¶
classic=SimplerDevice.PlaybackMode.classicdenominator=<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 numbername=<member 'name' of 'Boost.Python.enum' objects>names={'classic': SimplerDevice.PlaybackMode.classic, 'one_shot': SimplerDevice.PlaybackMode.one_shot, 'slicing': SimplerDevice.PlaybackMode.slicing}- dict() -> new empty dictionarynumerator=<attribute 'numerator' of 'int' objects>- the numerator of a rational number in lowest termsone_shot=SimplerDevice.PlaybackMode.one_shotreal=<attribute 'real' of 'int' objects>- the real part of a complex numberslicing=SimplerDevice.PlaybackMode.slicingvalues={0: SimplerDevice.PlaybackMode.classic, 1: SimplerDevice.PlaybackMode.one_shot, 2: SimplerDevice.PlaybackMode.slicing}- dict() -> new empty dictionary
class SimplerDevice(Device)¶
This class represents a Simpler device.
Properties¶
_live_ptrcan_compare_ab- Returns true if the Device has the capability to AB compare.can_have_chains- Returns true if the device is a rack.can_have_drum_pads- Returns true if the device is a drum rack.can_warp_as- Returns true if warp_as is available.can_warp_double- Returns true if warp_double is available.can_warp_half- Returns true if warp_half is available.canonical_parent- Get the canonical parent of the Device.class_display_name- Return const access to the name of the device's class name as displayed in Live's browser and device chainclass_name- Return const access to the name of the device's class.is_active- Return const access to whether this device is active. This will be false bothwhen the device is off and when it's inside a rack device which is off.is_using_compare_preset_b- Returns whether the Device has loaded the preset in compare slot B. Only relevant if can_compare_ab, otherwise errors.latency_in_ms- Returns the latency of the device in ms.latency_in_samples- Returns the latency of the device in samples.multi_sample_mode- Returns whether Simpler is in mulit-sample mode.name- Return access to the name of the device.note_pitch_bend_range- Access to the Note Pitch Bend Range in Simpler.pad_slicing- When set to true, slices can be added in slicing mode by playing notesparameters- Const access to the list of available automatable parameters for this device.pitch_bend_range- Access to the Pitch Bend Range in Simpler.playback_mode- Access to Simpler's playback mode.playing_position- Constant access to the current playing position in the sample.playing_position_enabled- Returns whether Simpler is showing the playing position.retrigger- Access to Simpler's retrigger mode.sample- Get the loaded Sample.slicing_playback_mode- Access to Simpler's slicing playback mode.type- Return the type of the device.view- Representing the view aspects of a device.voices- Access to the number of voices in Simpler.
Methods¶
View(...)¶
Representing the view aspects of a simpler device.
__init__(...)¶
Raises an exception This class cannot be instantiated from Python
add_can_warp_as_listener(...)¶
add_can_warp_as_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "can_warp_as" has changed.
C++ signature :
void add_can_warp_as_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_can_warp_double_listener(...)¶
add_can_warp_double_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "can_warp_double" has changed.
C++ signature :
void add_can_warp_double_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_can_warp_half_listener(...)¶
add_can_warp_half_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "can_warp_half" has changed.
C++ signature :
void add_can_warp_half_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_is_active_listener(...)¶
add_is_active_listener( (Device)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "is_active" has changed.
C++ signature :
void add_is_active_listener(TPyHandle<ADevice>,boost::python::api::object)
add_is_using_compare_preset_b_listener(...)¶
add_is_using_compare_preset_b_listener( (Device)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "is_using_compare_preset_b" has changed.
C++ signature :
void add_is_using_compare_preset_b_listener(TPyHandle<ADevice>,boost::python::api::object)
add_latency_in_ms_listener(...)¶
add_latency_in_ms_listener( (Device)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "latency_in_ms" has changed.
C++ signature :
void add_latency_in_ms_listener(TPyHandle<ADevice>,boost::python::api::object)
add_latency_in_samples_listener(...)¶
add_latency_in_samples_listener( (Device)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "latency_in_samples" has changed.
C++ signature :
void add_latency_in_samples_listener(TPyHandle<ADevice>,boost::python::api::object)
add_multi_sample_mode_listener(...)¶
add_multi_sample_mode_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "multi_sample_mode" has changed.
C++ signature :
void add_multi_sample_mode_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_name_listener(...)¶
add_name_listener( (Device)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "name" has changed.
C++ signature :
void add_name_listener(TPyHandle<ADevice>,boost::python::api::object)
add_note_pitch_bend_range_listener(...)¶
add_note_pitch_bend_range_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "note_pitch_bend_range" has changed.
C++ signature :
void add_note_pitch_bend_range_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_pad_slicing_listener(...)¶
add_pad_slicing_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "pad_slicing" has changed.
C++ signature :
void add_pad_slicing_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_parameters_listener(...)¶
add_parameters_listener( (Device)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "parameters" has changed.
C++ signature :
void add_parameters_listener(TPyHandle<ADevice>,boost::python::api::object)
add_pitch_bend_range_listener(...)¶
add_pitch_bend_range_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "pitch_bend_range" has changed.
C++ signature :
void add_pitch_bend_range_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_playback_mode_listener(...)¶
add_playback_mode_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "playback_mode" has changed.
C++ signature :
void add_playback_mode_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_playing_position_enabled_listener(...)¶
add_playing_position_enabled_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "playing_position_enabled" has changed.
C++ signature :
void add_playing_position_enabled_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_playing_position_listener(...)¶
add_playing_position_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "playing_position" has changed.
C++ signature :
void add_playing_position_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_retrigger_listener(...)¶
add_retrigger_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "retrigger" has changed.
C++ signature :
void add_retrigger_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_sample_listener(...)¶
add_sample_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "sample" has changed.
C++ signature :
void add_sample_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_slicing_playback_mode_listener(...)¶
add_slicing_playback_mode_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "slicing_playback_mode" has changed.
C++ signature :
void add_slicing_playback_mode_listener(TSimplerDevicePyHandle,boost::python::api::object)
add_voices_listener(...)¶
add_voices_listener( (SimplerDevice)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "voices" has changed.
C++ signature :
void add_voices_listener(TSimplerDevicePyHandle,boost::python::api::object)
can_warp_as_has_listener(...)¶
can_warp_as_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "can_warp_as".
C++ signature :
bool can_warp_as_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
can_warp_double_has_listener(...)¶
can_warp_double_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "can_warp_double".
C++ signature :
bool can_warp_double_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
can_warp_half_has_listener(...)¶
can_warp_half_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "can_warp_half".
C++ signature :
bool can_warp_half_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
crop(...)¶
crop( (SimplerDevice)self) -> None : Crop the loaded sample to the active area between start- and end marker. Calling this method on an empty simpler raises an error.
C++ signature :
void crop(TSimplerDevicePyHandle)
guess_playback_length(...)¶
guess_playback_length( (SimplerDevice)self) -> float : Return an estimated beat time for the playback length between start- and end-marker. Calling this method on an empty simpler raises an error.
C++ signature :
double guess_playback_length(TSimplerDevicePyHandle)
is_active_has_listener(...)¶
is_active_has_listener( (Device)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "is_active".
C++ signature :
bool is_active_has_listener(TPyHandle<ADevice>,boost::python::api::object)
is_using_compare_preset_b_has_listener(...)¶
is_using_compare_preset_b_has_listener( (Device)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "is_using_compare_preset_b".
C++ signature :
bool is_using_compare_preset_b_has_listener(TPyHandle<ADevice>,boost::python::api::object)
latency_in_ms_has_listener(...)¶
latency_in_ms_has_listener( (Device)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "latency_in_ms".
C++ signature :
bool latency_in_ms_has_listener(TPyHandle<ADevice>,boost::python::api::object)
latency_in_samples_has_listener(...)¶
latency_in_samples_has_listener( (Device)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "latency_in_samples".
C++ signature :
bool latency_in_samples_has_listener(TPyHandle<ADevice>,boost::python::api::object)
multi_sample_mode_has_listener(...)¶
multi_sample_mode_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "multi_sample_mode".
C++ signature :
bool multi_sample_mode_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
name_has_listener(...)¶
name_has_listener( (Device)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "name".
C++ signature :
bool name_has_listener(TPyHandle<ADevice>,boost::python::api::object)
note_pitch_bend_range_has_listener(...)¶
note_pitch_bend_range_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "note_pitch_bend_range".
C++ signature :
bool note_pitch_bend_range_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
pad_slicing_has_listener(...)¶
pad_slicing_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "pad_slicing".
C++ signature :
bool pad_slicing_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
parameters_has_listener(...)¶
parameters_has_listener( (Device)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "parameters".
C++ signature :
bool parameters_has_listener(TPyHandle<ADevice>,boost::python::api::object)
pitch_bend_range_has_listener(...)¶
pitch_bend_range_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "pitch_bend_range".
C++ signature :
bool pitch_bend_range_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
playback_mode_has_listener(...)¶
playback_mode_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "playback_mode".
C++ signature :
bool playback_mode_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
playing_position_enabled_has_listener(...)¶
playing_position_enabled_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "playing_position_enabled".
C++ signature :
bool playing_position_enabled_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
playing_position_has_listener(...)¶
playing_position_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "playing_position".
C++ signature :
bool playing_position_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_can_warp_as_listener(...)¶
remove_can_warp_as_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "can_warp_as".
C++ signature :
void remove_can_warp_as_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_can_warp_double_listener(...)¶
remove_can_warp_double_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "can_warp_double".
C++ signature :
void remove_can_warp_double_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_can_warp_half_listener(...)¶
remove_can_warp_half_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "can_warp_half".
C++ signature :
void remove_can_warp_half_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_is_active_listener(...)¶
remove_is_active_listener( (Device)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "is_active".
C++ signature :
void remove_is_active_listener(TPyHandle<ADevice>,boost::python::api::object)
remove_is_using_compare_preset_b_listener(...)¶
remove_is_using_compare_preset_b_listener( (Device)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "is_using_compare_preset_b".
C++ signature :
void remove_is_using_compare_preset_b_listener(TPyHandle<ADevice>,boost::python::api::object)
remove_latency_in_ms_listener(...)¶
remove_latency_in_ms_listener( (Device)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "latency_in_ms".
C++ signature :
void remove_latency_in_ms_listener(TPyHandle<ADevice>,boost::python::api::object)
remove_latency_in_samples_listener(...)¶
remove_latency_in_samples_listener( (Device)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "latency_in_samples".
C++ signature :
void remove_latency_in_samples_listener(TPyHandle<ADevice>,boost::python::api::object)
remove_multi_sample_mode_listener(...)¶
remove_multi_sample_mode_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "multi_sample_mode".
C++ signature :
void remove_multi_sample_mode_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_name_listener(...)¶
remove_name_listener( (Device)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "name".
C++ signature :
void remove_name_listener(TPyHandle<ADevice>,boost::python::api::object)
remove_note_pitch_bend_range_listener(...)¶
remove_note_pitch_bend_range_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "note_pitch_bend_range".
C++ signature :
void remove_note_pitch_bend_range_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_pad_slicing_listener(...)¶
remove_pad_slicing_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "pad_slicing".
C++ signature :
void remove_pad_slicing_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_parameters_listener(...)¶
remove_parameters_listener( (Device)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "parameters".
C++ signature :
void remove_parameters_listener(TPyHandle<ADevice>,boost::python::api::object)
remove_pitch_bend_range_listener(...)¶
remove_pitch_bend_range_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "pitch_bend_range".
C++ signature :
void remove_pitch_bend_range_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_playback_mode_listener(...)¶
remove_playback_mode_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "playback_mode".
C++ signature :
void remove_playback_mode_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_playing_position_enabled_listener(...)¶
remove_playing_position_enabled_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "playing_position_enabled".
C++ signature :
void remove_playing_position_enabled_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_playing_position_listener(...)¶
remove_playing_position_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "playing_position".
C++ signature :
void remove_playing_position_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_retrigger_listener(...)¶
remove_retrigger_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "retrigger".
C++ signature :
void remove_retrigger_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_sample_listener(...)¶
remove_sample_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "sample".
C++ signature :
void remove_sample_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_slicing_playback_mode_listener(...)¶
remove_slicing_playback_mode_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "slicing_playback_mode".
C++ signature :
void remove_slicing_playback_mode_listener(TSimplerDevicePyHandle,boost::python::api::object)
remove_voices_listener(...)¶
remove_voices_listener( (SimplerDevice)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "voices".
C++ signature :
void remove_voices_listener(TSimplerDevicePyHandle,boost::python::api::object)
replace_sample(...)¶
replace_sample( (SimplerDevice)self, (object)file_path) -> None : Replaces the loaded samples with the one at the provided path.
C++ signature :
void replace_sample(TSimplerDevicePyHandle,TString)
retrigger_has_listener(...)¶
retrigger_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "retrigger".
C++ signature :
bool retrigger_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
reverse(...)¶
reverse( (SimplerDevice)self) -> None : Reverse the loaded sample. Calling this method on an empty simpler raises an error.
C++ signature :
void reverse(TSimplerDevicePyHandle)
sample_has_listener(...)¶
sample_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "sample".
C++ signature :
bool sample_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
save_preset_to_compare_ab_slot(...)¶
save_preset_to_compare_ab_slot( (Device)arg1) -> None : Saves the current state of the device to the compare AB slot. Only relevant if can_compare_ab, otherwise throws.
C++ signature :
void save_preset_to_compare_ab_slot(TPyHandle<ADevice>)
slicing_playback_mode_has_listener(...)¶
slicing_playback_mode_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "slicing_playback_mode".
C++ signature :
bool slicing_playback_mode_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
store_chosen_bank(...)¶
store_chosen_bank( (Device)arg1, (int)arg2, (int)arg3) -> None : Set the selected bank in the device for persistency.
C++ signature :
void store_chosen_bank(TPyHandle<ADevice>,int,int)
voices_has_listener(...)¶
voices_has_listener( (SimplerDevice)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "voices".
C++ signature :
bool voices_has_listener(TSimplerDevicePyHandle,boost::python::api::object)
warp_as(...)¶
warp_as( (SimplerDevice)self, (float)beat_time) -> None : Warp the playback region between start- and end-marker as the given length. Calling this method on an empty simpler raises an error.
C++ signature :
void warp_as(TSimplerDevicePyHandle,double)
warp_double(...)¶
warp_double( (SimplerDevice)self) -> None : Doubles the tempo for region between start- and end-marker.
C++ signature :
void warp_double(TSimplerDevicePyHandle)
warp_half(...)¶
warp_half( (SimplerDevice)self) -> None : Halves the tempo for region between start- and end-marker.
C++ signature :
void warp_half(TSimplerDevicePyHandle)
class SlicingPlaybackMode(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.
as_integer_ratio(self, /)¶
Return integer ratio.
Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.
(10).as_integer_ratio() (10, 1) (-10).as_integer_ratio() (-10, 1) (0).as_integer_ratio() (0, 1)
bit_count(self, /)¶
Number of ones in the binary representation of the absolute value of self.
Also known as the population count.
bin(13) '0b1101' (13).bit_count() 3
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='big', *, 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. Default is to use 'big'. signed Indicates whether two's complement is used to represent the integer.
to_bytes(self, /, length=1, byteorder='big', *, 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. Default is length 1. 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. Default is to use 'big'. 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 termsimag=<attribute 'imag' of 'int' objects>- the imaginary part of a complex numbermono=SimplerDevice.SlicingPlaybackMode.mononame=<member 'name' of 'Boost.Python.enum' objects>names={'mono': SimplerDevice.SlicingPlaybackMode.mono, 'poly': SimplerDevice.SlicingPlaybackMode.poly, 'thru': SimplerDevice.SlicingPlaybackMode.thru}- dict() -> new empty dictionarynumerator=<attribute 'numerator' of 'int' objects>- the numerator of a rational number in lowest termspoly=SimplerDevice.SlicingPlaybackMode.polyreal=<attribute 'real' of 'int' objects>- the real part of a complex numberthru=SimplerDevice.SlicingPlaybackMode.thruvalues={0: SimplerDevice.SlicingPlaybackMode.mono, 1: SimplerDevice.SlicingPlaybackMode.poly, 2: SimplerDevice.SlicingPlaybackMode.thru}- dict() -> new empty dictionary