diff options
| author | Eddy Pedroni <epedroni@pm.me> | 2025-02-23 13:01:15 +0100 | 
|---|---|---|
| committer | Eddy Pedroni <epedroni@pm.me> | 2025-02-23 13:01:15 +0100 | 
| commit | 54c368d4c0613f215ebce4c01334f8794ce014d7 (patch) | |
| tree | a76d5d09c458177963e8b8c6e13db6624649b7b8 /cli-project/src | |
| parent | fd05e8a3a53afae850f539a348e209c4770ec430 (diff) | |
MIDI interface fix, CLI tested and working
Diffstat (limited to 'cli-project/src')
| -rw-r--r-- | cli-project/src/solo_tool_cli.py | 15 | 
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: | 
