-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
duplicated code in learn.py #29
Comments
I think it's more readable this way. But I agree with you, this is not good... There is also a bug with knowCtrl and knownBtn list : When you overwrite some mapping, old values are not removed from lists of used btn an ctrl. So you cannot switch two controls (for example play and pause).
are not present in every if part. Maybe we can replace string in self.send_midi_to by a callable function. This way, we can create separate little functions that will handle midi event. |
That's a good idea - i'll put it in our fork :) |
Actually I in gui.py there is a similar situation in processNote: |
yes, but can you make this modification in a new branch created from last tag 1.2.0 ? |
Damn i have already started - To be honest i have rewritten the whole device and most of learn.py. |
Ok, brace yourself @Vampouille, here it is: 660dd95 I'll clean it up a bit more, then we will do some more extensive testing - and then I'll issue a pull request. |
look at the processNote method - why is it that way?
The text was updated successfully, but these errors were encountered: