Skip to content

Commit

Permalink
Fix clock_source setter logic
Browse files Browse the repository at this point in the history
  • Loading branch information
ideoforms committed Sep 19, 2024
1 parent 7d86e3f commit 0bb0fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions isobar/timelines/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def __init__(self,
start: If True, automatically start the timeline running in the background.
"""
self._clock_source: Optional[Clock] = None

if clock_source is None:
clock_source = Clock(self, tempo, ticks_per_beat)
else:
Expand All @@ -68,8 +69,7 @@ def __init__(self,
clock_source = Clock(self, tempo, ticks_per_beat)
else:
raise ValueError("Invalid clock source: %s" % clock_source)

self.set_clock_source(clock_source)
self.set_clock_source(clock_source)

self.clock_multipliers: dict[OutputDevice, Callable] = {}
"""
Expand Down

0 comments on commit 0bb0fde

Please sign in to comment.