diff --git a/README.md b/README.md index c98ab93..f2c0fbd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # gmaPy -Get/send midi commands to a GrandMA +Get/send midi commands to a GrandMA will be configured to remap all custom messages in a near future + +# Depends +Mostly mido (pip install mido) blessing/curses in a near future diff --git a/config.py b/config.py index dbd4a03..066a6cf 100644 --- a/config.py +++ b/config.py @@ -1,3 +1,5 @@ +import mido + # Load the config and return an action class class Binding(object): """Binding class, simple binding between note and actions""" @@ -23,11 +25,12 @@ class ActionList(object): """List of action to play after a message is receaved""" def __init__(self,list): - """Takes the list of actions detected and + """Takes the list of actions detected and """ pass class Action(object): """Action itself, a mapper for the midi library""" def __init__(self,actiontype): + """Take one action and bind the correct midi message""" self.actiontype=actiontype diff --git a/gmaPy.py b/gmaPy.py index 8070695..d8eb4b1 100644 --- a/gmaPy.py +++ b/gmaPy.py @@ -1,2 +1,5 @@ +import mido +from config import * + if __name__ == '__main__': main() diff --git a/mapping/GrandMA2.py b/mapping/GrandMA2.py new file mode 100644 index 0000000..4769eb1 --- /dev/null +++ b/mapping/GrandMA2.py @@ -0,0 +1,17 @@ +class BasicMessageParse(object): + """Classic System Specific Midi Message as Hex (BasicSyHexParse).""" + + def __init__(self): + '''Basic init''' + self.type=None #Witch type of message it is, witch to choose from + self.value=None + self. + + def parseMidi(self,message): + """Take a midi SyxEx message and return a BasicParse""" + pass + +class BasicParser(object): + """A message with accesible properties and a reading manual""" + def __init__(self): + pass diff --git a/patch/default.ini b/patch/default.ini index 012ca36..d62918c 100644 --- a/patch/default.ini +++ b/patch/default.ini @@ -3,9 +3,10 @@ output="Scarlett i6" inputchanel = 1 outputchannel = 1 + mapping = GrandMA2 #Patching faders -[patch:1] #Patches layer 1 +[patch:1] #Patches layer 1 patch:2 would patch layer 2 and so on 1 = cc/10 #Send (midi) control change (10) with value mapped to the fader (1) value (fader 1 => cc 10) 5-50 = cc/11 #Map the faders 5-50 to the control change 11-45 (Straight patch) 56 = note/152 #Map fader 56 to note 152