Live.Groove (runtime)¶
Live 11 — Live Object Model & framework reference (descriptions and signatures).
Classes¶
class Base(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¶
count=Groove.Base.countdenominator=<attribute 'denominator' of 'int' objects>- the denominator of a rational number in lowest termsgb_eight=Groove.Base.gb_eightgb_eight_triplet=Groove.Base.gb_eight_tripletgb_four=Groove.Base.gb_fourgb_sixteen=Groove.Base.gb_sixteengb_sixteen_triplet=Groove.Base.gb_sixteen_tripletgb_thirtytwo=Groove.Base.gb_thirtytwoimag=<attribute 'imag' of 'int' objects>- the imaginary part of a complex numbername=<member 'name' of 'Boost.Python.enum' objects>names={'gb_four': Groove.Base.gb_four, 'gb_eight': Groove.Base.gb_eight, 'gb_eight_triplet': Groove.Base.gb_eight_triplet, 'gb_sixteen': Groove.Base.gb_sixteen, 'gb_s...- 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 numbervalues={0: Groove.Base.gb_four, 1: Groove.Base.gb_eight, 2: Groove.Base.gb_eight_triplet, 3: Groove.Base.gb_sixteen, 4: Groove.Base.gb_sixteen_triplet, 5: Groove.Base....- dict() -> new empty dictionary
class Groove(LomObject)¶
This class represents a groove in Live.
Properties¶
_live_ptrbase- Get/set the groove's base grid.canonical_parent- Get the canonical parent of the groove.name- Read/write/listen access to the groove's namequantization_amount- Read/write/listen access to the groove's quantization amount.random_amount- Read/write/listen access to the groove's random amount.timing_amount- Read/write/listen access to the groove's timing amount.velocity_amount- Read/write/listen access to the groove's velocity amount.
Methods¶
__init__(...)¶
Raises an exception This class cannot be instantiated from Python
add_name_listener(...)¶
add_name_listener( (Groove)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<AGroove>,boost::python::api::object)
add_quantization_amount_listener(...)¶
add_quantization_amount_listener( (Groove)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "quantization_amount" has changed.
C++ signature :
void add_quantization_amount_listener(TPyHandle<AGroove>,boost::python::api::object)
add_random_amount_listener(...)¶
add_random_amount_listener( (Groove)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "random_amount" has changed.
C++ signature :
void add_random_amount_listener(TPyHandle<AGroove>,boost::python::api::object)
add_timing_amount_listener(...)¶
add_timing_amount_listener( (Groove)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "timing_amount" has changed.
C++ signature :
void add_timing_amount_listener(TPyHandle<AGroove>,boost::python::api::object)
add_velocity_amount_listener(...)¶
add_velocity_amount_listener( (Groove)arg1, (object)arg2) -> None : Add a listener function or method, which will be called as soon as the property "velocity_amount" has changed.
C++ signature :
void add_velocity_amount_listener(TPyHandle<AGroove>,boost::python::api::object)
name_has_listener(...)¶
name_has_listener( (Groove)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<AGroove>,boost::python::api::object)
quantization_amount_has_listener(...)¶
quantization_amount_has_listener( (Groove)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "quantization_amount".
C++ signature :
bool quantization_amount_has_listener(TPyHandle<AGroove>,boost::python::api::object)
random_amount_has_listener(...)¶
random_amount_has_listener( (Groove)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "random_amount".
C++ signature :
bool random_amount_has_listener(TPyHandle<AGroove>,boost::python::api::object)
remove_name_listener(...)¶
remove_name_listener( (Groove)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "name".
C++ signature :
void remove_name_listener(TPyHandle<AGroove>,boost::python::api::object)
remove_quantization_amount_listener(...)¶
remove_quantization_amount_listener( (Groove)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "quantization_amount".
C++ signature :
void remove_quantization_amount_listener(TPyHandle<AGroove>,boost::python::api::object)
remove_random_amount_listener(...)¶
remove_random_amount_listener( (Groove)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "random_amount".
C++ signature :
void remove_random_amount_listener(TPyHandle<AGroove>,boost::python::api::object)
remove_timing_amount_listener(...)¶
remove_timing_amount_listener( (Groove)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "timing_amount".
C++ signature :
void remove_timing_amount_listener(TPyHandle<AGroove>,boost::python::api::object)
remove_velocity_amount_listener(...)¶
remove_velocity_amount_listener( (Groove)arg1, (object)arg2) -> None : Remove a previously set listener function or method from property "velocity_amount".
C++ signature :
void remove_velocity_amount_listener(TPyHandle<AGroove>,boost::python::api::object)
timing_amount_has_listener(...)¶
timing_amount_has_listener( (Groove)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "timing_amount".
C++ signature :
bool timing_amount_has_listener(TPyHandle<AGroove>,boost::python::api::object)
velocity_amount_has_listener(...)¶
velocity_amount_has_listener( (Groove)arg1, (object)arg2) -> bool : Returns true, if the given listener function or method is connected to the property "velocity_amount".
C++ signature :
bool velocity_amount_has_listener(TPyHandle<AGroove>,boost::python::api::object)