Worst push so far, nothing valuable

This commit is contained in:
Dandaedre 2019-05-01 02:09:13 +02:00
parent 6df64e1262
commit f22b0c7840
5 changed files with 30 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -1,2 +1,5 @@
import mido
from config import *
if __name__ == '__main__':
main()

17
mapping/GrandMA2.py Normal file
View File

@ -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

View File

@ -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