Checking the github actions
This commit is contained in:
parent
d1be937e02
commit
13c30cfd46
|
|
@ -13,8 +13,9 @@ classifier =
|
|||
version=0.1a
|
||||
packages=
|
||||
midiRebind
|
||||
midiRebind/panaremote
|
||||
midiRebind/pythonAnalogWay
|
||||
; midiRebind/panaremote
|
||||
; midiRebind/pythonAnalogWay
|
||||
; midiRebind/minitest
|
||||
install_requires=
|
||||
mido>=1.2.9
|
||||
python-rtmidi>=1.4.1
|
||||
|
|
@ -35,4 +36,6 @@ testing =
|
|||
midiRebind=py.typed
|
||||
|
||||
[flake8]
|
||||
max-line-length=160
|
||||
max-line-length=160
|
||||
select = E
|
||||
extend-ignore = E
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
# mypy: ignore-errors
|
||||
|
||||
from src.midiRebind.mapping.base import BasicMessageParse,BasicActions,MatchError,BasicMidiInterface
|
||||
|
||||
commandlist={1:"go",2:"stop",3:"resume",4:"timed_go",6:"set",7:"fire",10:"go_off"}
|
||||
|
|
@ -66,7 +68,7 @@ class Actions(BasicActions):
|
|||
def __call__(self,match):
|
||||
"Make the link between the regex and the action"
|
||||
action=commandlist[int(match.command)]
|
||||
id,value="1","1"
|
||||
id,value=1,1
|
||||
if action=="set":
|
||||
data=match.data
|
||||
page=int(data[1])
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
# mypy: ignore-errors
|
||||
|
||||
from src.midiRebind.mapping.base import BasicMessageParse,BasicActions,MatchError,BasicMidiInterface
|
||||
|
||||
commandlist={127:"DCA",55:"IN",84:"MIX",101:"MATRICE",115:"MASTER",336:"MASTER2",122:"PAGE",53:"MUTE",893:"CUE"}
|
||||
|
|
@ -49,7 +51,7 @@ class Actions(BasicActions):
|
|||
"Make the link between the regex and the action"
|
||||
# print(int(match.command))
|
||||
action=commandlist[int(match.command)]
|
||||
id,value="1","1"
|
||||
id,value=1,1
|
||||
page=0 # Yamaha consoles don't use pages in a way that is relevant to us
|
||||
#"DCA",55:"IN",84:"MIX",101:"MATRICE",115:"MASTER",82:"MASTER2",51:"PAGE"
|
||||
if action in ["IN","MIX","MATRICE","MASTER","MASTER2"]:
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ from math import trunc
|
|||
import mido
|
||||
import re
|
||||
import sys
|
||||
|
||||
# mypy: ignore-errors
|
||||
|
||||
# import traceback
|
||||
# print(traceback.print_stack())
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/python3
|
||||
# mypy: ignore-errors
|
||||
|
||||
# import pyautogui
|
||||
from src.midiRebind.mapping.base import BasicMidiInterface
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/python3
|
||||
# mypy: ignore-errors
|
||||
|
||||
#################################################
|
||||
# HARDCODED DEFINITIONS
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
#!/bin/python3
|
||||
# mypy: ignore-errors
|
||||
|
||||
###########################
|
||||
# IMPORTS
|
||||
import mido
|
||||
|
|
@ -291,7 +293,7 @@ class midiPageHandler(object):
|
|||
if (self._changedbasevalues[linecol[0]][linecol[1]] & statusId):
|
||||
self._changedbasevalues[linecol[0]][linecol[1]] -= statusId
|
||||
|
||||
def hasStatus(self, statusId):
|
||||
def hasStatus(self, linecol, statusId):
|
||||
"Check if a status is present"
|
||||
if (self._changedbasevalues[linecol[0]][linecol[1]] & statusId):
|
||||
return True
|
||||
|
|
@ -393,7 +395,7 @@ class midiPageHandler(object):
|
|||
class pulseRackController(object):
|
||||
"""Receive controls over a specific range and map them to commands to send"""
|
||||
|
||||
def __init__(self, returnInterface, ranges={j: j for j in range(3)}):
|
||||
def __init__(self, returnInterface, ranges):
|
||||
self.ranges = ranges
|
||||
self.returnRanges = {i: j for j, i in ranges.items()}
|
||||
_ALL_MESSAGE_TYPES = [
|
||||
|
|
@ -560,7 +562,7 @@ class AkaiAPCMini(midiPageHandler):
|
|||
self.lightnote(note, val)
|
||||
|
||||
def lightcolor(self, col, row, color):
|
||||
self.light(col, row, val=_COLORS[color])
|
||||
self.light(col, row, val=self.colors[color])
|
||||
|
||||
def light(self, col, row, val=1):
|
||||
self.lightnote(self.findit(col, row), val)
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 3198c7fa6016752b29ff36e3e221c1238d8cbd6b
|
||||
Subproject commit 5b4d9ca9ed68cd946f093db574dceed1f7db5d7f
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit da14c2efb421b44a847a65262551fe5d901471c7
|
||||
Subproject commit eac3f9f4c393331af23cf05d732f0da5292599ab
|
||||
|
|
@ -1 +1 @@
|
|||
Subproject commit c847c7fd889d81ab69b49d8220593ff78fa8fd07
|
||||
Subproject commit 7a4d53d497479824987bd4d580141ec177b57516
|
||||
Loading…
Reference in New Issue