Skip to content

Commit

Permalink
Fix core_parameters before core_events import bug
Browse files Browse the repository at this point in the history
This patch fixes the bug reported in issue
#24.
  • Loading branch information
levinericzimmermann committed Dec 22, 2022
1 parent 22cb43e commit c0147de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mutwo/core_events/envelopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,7 @@ def parameter_at(
def sample_at(
self,
absolute_time: core_parameters.abc.Duration | typing.Any,
append_duration: core_parameters.abc.Duration
| typing.Any = core_parameters.DirectDuration(0),
append_duration: core_parameters.abc.Duration | typing.Any = 0,
) -> Envelope:
"""Discretize envelope at given time
Expand Down Expand Up @@ -723,7 +722,7 @@ def resolve(
return resolve_envelope_class(point_list)


TempoPoint = core_parameters.abc.TempoPoint | core_constants.Real
TempoPoint: typing.TypeAlias = "core_parameters.abc.TempoPoint | core_constants.Real"


class TempoEnvelope(Envelope):
Expand Down

0 comments on commit c0147de

Please sign in to comment.