Aurora layers bugfixs

This commit is contained in:
sam 2020-10-06 03:11:02 +02:00
parent 132ea32d66
commit cc93d13e22
10 changed files with 210 additions and 13 deletions

View file

@ -283,6 +283,7 @@ AllFXDisplay = [True, True, True, True]
# Animation parameters for each layer
Layer = [] *lasernumber
Stars = []
currentlayer = 0
for l in range(lasernumber):
@ -410,6 +411,7 @@ def OSChandler(path, tags, args, source):
print("NOT POSSIBLE : only", lasernumber,"laser requested at startup")
lj.SendLJ("/line1",str(lasernumber)+ " Laser")
# /aurora/color/layernumber colorname
if path.find('/aurora/color') == 0:
@ -499,8 +501,8 @@ def OSChandler(path, tags, args, source):
# /aurora/scim
if path.find('/aurora/scim') == 0:
print("OScim sending to LJ /scim",int(args[0])+24)
lj.SendLJ("/scim", [int(args[0])+24])
print("OSC default got /scim",int(args[0]))
#lj.SendLJ("/scim", [int(args[0])+24])
'''
# /aurora/color/layernumber color
@ -517,6 +519,7 @@ def OSCcolor(path, tags, args, source):
'''
# /aurora/scim layernumber
'''
def OSCim(path, tags, args, source):
newarg = path.split(" ")
@ -526,6 +529,21 @@ def OSCim(path, tags, args, source):
print("sending knobs value for new layer")
UpdateKnobs(newlaser)
midix.SendUI('/status', ["Sim : "+newlaser])
'''
# /aurora/scim layernumber
def OSCim(path, tags, args, source):
global currentlayer
newarg = path.split(" ")
currentlayer = int(args[0])
print("OSim got /scim",str(currentlayer))
print("new layer :", currentlayer)
#lj.SendLJ("/scim", [newlaser])
#print("sending knobs value for new layer")
#UpdateKnobs(newlaser)
#midix.SendUI('/status', ["Sim : "+newlaser])
def Resampler(laser,lsteps):