Bugtesting and minor fixes
This commit is contained in:
parent
64a1d2ed4a
commit
b67ef34693
|
|
@ -2,7 +2,7 @@ from mapping.base import BasicMessageParse,BasicActions,MatchError,BasicMidiInte
|
|||
import mido
|
||||
import re,configparser
|
||||
|
||||
commandlist={1:"go",2:"stop",3:"resume",4:"timed_go",6:"set",7:"fire",11:"go_off"}
|
||||
commandlist={1:"go",2:"stop",3:"resume",4:"timed_go",6:"set",7:"fire",11:"go_off",10:"exec"}
|
||||
#A MessageParse object MUST be included in the file, the rest is implementation Specific
|
||||
class MessageParse(BasicMessageParse):
|
||||
"""Parsing of a gma SyEx message this parser is used once and will return a different Action object every time it is called"""
|
||||
|
|
@ -29,6 +29,7 @@ class MessageParse(BasicMessageParse):
|
|||
self.commandformat=message[3]
|
||||
self.command=message[4]
|
||||
self.data=message[5:]
|
||||
#print(self)
|
||||
return self
|
||||
except:
|
||||
raise MatchError("Can't parse the data {}".format(message))
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ if __name__ == '__main__':
|
|||
except Module.MatchError:
|
||||
pass
|
||||
except:
|
||||
print("[Unexpected error] {}".format(sys.exc_info()))
|
||||
print("[Unexpected error@midibind.py] {}".format(sys.exc_info()))
|
||||
except ImportError:
|
||||
print("[Error] Module {} doesn't exist".format(interpath))
|
||||
except KeyboardInterrupt:
|
||||
|
|
|
|||
|
|
@ -1,28 +1,16 @@
|
|||
[interface]
|
||||
input=Midi Through Port-0
|
||||
output1=Midi Through Port-0
|
||||
output2=KMidimon
|
||||
input=Scarlett 6i6 USB MIDI 1
|
||||
output1=MIDI Mix MIDI 1
|
||||
output2=Scarlett 6i6 USB MIDI 1
|
||||
inputchanel = 1
|
||||
outputchannel1 = 1
|
||||
outputchannel2 = 1
|
||||
mapping = GrandMA2
|
||||
|
||||
[set/1]
|
||||
0-99 = 1/cc/10
|
||||
0-99/toggle = 22/42
|
||||
0-50 = 2/cc/11
|
||||
57-67 = 1/cc/12-32
|
||||
56 = 1/note/127
|
||||
56/val = lambda x: min(x,50)*2
|
||||
[set/5]
|
||||
1 = 1/cc/2;2/note/19/127
|
||||
|
||||
[fire]
|
||||
13 = 1/note/10
|
||||
15 = 1/cc/44/127
|
||||
17-27 = cc/45/127
|
||||
29-37 = cc/46-46/127
|
||||
38 = 1/cc/65/124;2/cc/79/100;note/25
|
||||
38/toggle = 0/127
|
||||
[fire/5]
|
||||
15 = 1/cc/2;2/note/19/127
|
||||
[set/2]
|
||||
0-99 = 2/cc/1
|
||||
#0-99/toggle = 0/127
|
||||
#0-50 = 2/cc/11
|
||||
#57-67 = 1/cc/12-32
|
||||
#56 = 1/note/127
|
||||
#56/val = lambda x: min(x,50)*2
|
||||
|
|
|
|||
Loading…
Reference in New Issue