Worst push so far, nothing valuable
This commit is contained in:
parent
6df64e1262
commit
f22b0c7840
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
3
gmaPy.py
3
gmaPy.py
|
|
@ -1,2 +1,5 @@
|
|||
import mido
|
||||
from config import *
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue