Skip to content

Commit

Permalink
Fix annoying default tempo value in sardine configuration tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Jun 13, 2024
1 parent e052f12 commit 29da76e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion sardine_core/cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ def _select_bpm_and_timing(config_file: dict) -> dict:
config_file["link_clock"] = link_clock
tempo = inquirer.number(
message="Input a new default tempo (BPM):",
min_allowed=20,
min_allowed=20.0,
default=120.0,
max_allowed=800,
float_allowed=True,
validate=EmptyInputValidator(),
).execute()
config_file["bpm"] = float(tempo)
Expand Down
6 changes: 3 additions & 3 deletions sardine_core/fish_bowl.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ def __repr__(self) -> str:
self.clock,
)

## TRANSPORT ##############################################################
## TRANSPORT ##############################################################

def pause(self) -> bool:
"""Pauses the fish bowl.
This will emit a `pause` event unless the fish bowl does
not need to be paused, e.g. being paused once already or not
having started.
not need to be paused, e.g. being paused once already or
not having started.
Returns:
bool: True if the fish bowl was paused, False otherwise.
Expand Down

0 comments on commit 29da76e

Please sign in to comment.