Skip to content

Commit

Permalink
Feat: simplify greeter function
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Jun 24, 2024
1 parent caa631c commit 14996f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sardine_core/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .sequences import ListParser, ziffers_factory
from .sequences.tidal_parser import *
from .superdirt import SuperDirtProcess
from .utils import Quant, get_deadline_from_quant, greeter_printer, join, sardine_intro
from .utils import Quant, get_deadline_from_quant, greeter_printer

ParamSpec = ParamSpec("PS")
T = TypeVar("T")
Expand All @@ -24,7 +24,7 @@
# READING USER CONFIGURATION (TAKEN FROM SARDINE-CONFIG)

config = read_user_configuration()
print(greeter_printer(sardine_intro, config))
print(greeter_printer(config))


# Initialisation of the FishBowl (the environment holding everything together)
Expand Down
3 changes: 1 addition & 2 deletions sardine_core/utils/Messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ def _ticked(condition: bool):
return "[X]" if condition else "[ ]"


def greeter_printer(intro_logo: str, config: Config):
def greeter_printer(config: Config):
os.system("cls" if os.name == "nt" else "clear")
midi_port = "Automatic" if config.midi == "Sardine" else config.midi
config_message = (
f"[yellow]BPM: [red]{config.bpm}[/red] "
+ f"[yellow]BEATS: [red]{config.beats}[/red] "
Expand Down

0 comments on commit 14996f3

Please sign in to comment.