aboutsummaryrefslogtreecommitdiffstats
path: root/cli-project
diff options
context:
space:
mode:
Diffstat (limited to 'cli-project')
-rw-r--r--cli-project/pyproject.toml4
-rw-r--r--cli-project/src/solo_tool_cli.py15
2 files changed, 8 insertions, 11 deletions
diff --git a/cli-project/pyproject.toml b/cli-project/pyproject.toml
index 3e2c855..489d1ec 100644
--- a/cli-project/pyproject.toml
+++ b/cli-project/pyproject.toml
@@ -8,9 +8,9 @@ authors = [
{ name = "Eddy Pedroni", email = "epedroni@pm.me" },
]
description = "A CLI frontend for the solo_tool library"
-requires-python = ">=3.12"
+requires-python = ">=3.13"
dependencies = [
- "solo_tool"
+ "solo_tool>=2.0"
]
dynamic = ["version"]
diff --git a/cli-project/src/solo_tool_cli.py b/cli-project/src/solo_tool_cli.py
index 5cc1537..d0f39c1 100644
--- a/cli-project/src/solo_tool_cli.py
+++ b/cli-project/src/solo_tool_cli.py
@@ -3,6 +3,7 @@ import time
from solo_tool import SoloTool
from solo_tool.midi_controller_launchpad_mini import MidiController
+from solo_tool.session_manager import loadSession
def main():
args = sys.argv[1:]
@@ -10,20 +11,16 @@ def main():
print("Please provide path to session file")
sys.exit(1)
- soloTool = SoloTool()
- soloTool.loadSession(args[0])
-
- def tick():
- soloTool.tick()
- threading.Timer(0.1, tick).start()
+ soloTool = loadSession(args[0])
midiController = MidiController(soloTool)
midiController.connect()
try:
- while(True):
- time.sleep(0.1)
- soloTool.tick()
+ while True:
+ raw = input("> ")
+ if raw == "q":
+ break
except KeyboardInterrupt:
pass
finally: