Added
- new class: `mutwo.core_parameters.abc.Duration`
- new class: `mutwo.core_parameters.DirectDuration`
- new `UnknownObjectToObjectTest` in `core_converters` module
- `EventToMetrizedEvent` in `core_converters`
- `filter_undefined` keyword to `get_parameter` method
To all event classes
- `metrize` method
- `tempo_envelope` as property of each event class
- `reset_tempo_envelope` method
- `set` method
Changed
- implicit `duration` of any numerical type to explicit `duration` of `mutwo.core_parameters.abc.Duration` type
- return type of `get_parameter(flat=True)` for `SimpleEvent` is no longer a tuple but only the parameter value itself
- argument `n_items_to_sum_up` of `core_utilites.find_numbers_which_sums_up_to` to `item_to_sum_up_count_set`
- use `class_specific_side_attribute_tuple` as a class init instead of a simple class attribute
old:
python3
class MyComplexEvent(ComplexEvent):
_class_specific_side_attribute_tuple = (("new_attribute",) +
ComplexEvent._class_specific_side_attribute_tuple)
new:
python3
class MyComplexEvent(
ComplexEvent,
class_specific_side_attribute_tuple = ("new_attribute",)
): pass
Fixed
- illegal comparison of `SingleValueParameter` (raises error now)
Removed
- `core_utilites.import_module_if_dependencies_have_been_installed` (no longer used)