aboutsummaryrefslogtreecommitdiffstats
path: root/cli-project/src/solo_tool_cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'cli-project/src/solo_tool_cli.py')
-rw-r--r--cli-project/src/solo_tool_cli.py15
1 files changed, 6 insertions, 9 deletions
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: