From 26fd6684df4b1a4df07f134ec9716b1bb6842d1a Mon Sep 17 00:00:00 2001 From: Maximilien Rigaut Date: Thu, 4 Nov 2021 02:20:06 +0100 Subject: [PATCH] Toward more visibility --- TODO.md | 12 +++++++++--- src/midiRebind/mapping/base.py | 4 ++++ src/midiRebind/pythonAnalogWay | 2 +- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/TODO.md b/TODO.md index 99b9640..e9374ea 100644 --- a/TODO.md +++ b/TODO.md @@ -1,3 +1,9 @@ +# Big list of big stuff to do +* Move all projects/subprojects to src/ +* Make all tests +* Clean up the code and the TODO +* Make the code more readable +* Create a keystrokes.py with all the keystrokes loaded from a config file # Adding another mapping interface * TODO: Explain it better than just "look at the ones I made" @@ -12,13 +18,11 @@ * URGENT : /funct with an existing trigger might not work, should be with an empty trigger anyway. * Add asynchronous mode ? * URGENT : Crash when assigning to an existing trigger -* TODO: Make an @armtake decorator * TODO: Async and Disconnection protect for VPs * TODO: Disconnect: 'NoneType' object has no attribute 'groups' : Should handle disconnect & Crashes * TODO: Color and un-color VP as it connects * TODO: Unified verbose printing & usage - * TODO: Pagehandler: make a note handler * TODO: Color management, get colors associated to all statuses * TODO: General decorators @armtake @@ -35,4 +39,6 @@ * TODO: Use logging instead of this clusterfk * TODO: Sysexit not working * URGENT: Network interruption not working -* TODO: Empty triggers should give a little more info \ No newline at end of file +* TODO: Empty triggers should give a little more info +* TODO: Clean up the whole IO handler + diff --git a/src/midiRebind/mapping/base.py b/src/midiRebind/mapping/base.py index 2754166..699595f 100644 --- a/src/midiRebind/mapping/base.py +++ b/src/midiRebind/mapping/base.py @@ -422,6 +422,10 @@ class EmptyTrigger(BasicMidiTrigger): "No state to add" pass + def __repr__(self): + """An empty trigger""" + return "({self.note}:{self.parent})@{self.__name__}".format(self=self) + class EmptyInterface(object): "An empty interface, to send empty messages" diff --git a/src/midiRebind/pythonAnalogWay b/src/midiRebind/pythonAnalogWay index c847c7f..54312e9 160000 --- a/src/midiRebind/pythonAnalogWay +++ b/src/midiRebind/pythonAnalogWay @@ -1 +1 @@ -Subproject commit c847c7fd889d81ab69b49d8220593ff78fa8fd07 +Subproject commit 54312e99eabfe10ac5032962e5259d8f4321f410