Last active
October 23, 2024 01:33
-
-
Save Dinir/215f08d367848a5f1f5fe897000d3377 to your computer and use it in GitHub Desktop.
2CC for each encoder, arranged for 90° Rotation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "c48454ff-b623-4460-a9eb-047a986304f0", | |
"modifiedAt": "2024-10-22T14:21:04.241Z", | |
"createdAt": "2024-10-20T09:13:08.235Z", | |
"name": "Double CC EN16 (Relative)", | |
"description": "CC numbers are assigned from `ccs` to 15 consecutive numbers. CC when pushed are assigned from `ccs+ccsh`. Numbers are by default aligned for 90° rotation. To change this, change `function er(eln)` in the System Setup Event.\n - for 0°, put `num+ccs`.\n - for 270°, change it to `(-4*(num+1))%17-1+ccs`.\n\nChange `cln`, `cld`, `clx`, and `clg` to apply different color. `cln` is for neutral, `cld` and `clx` are for turning left and right, `clg` is for button push.\n\nButton color by default is set to grey, so it doesn't affect encoder color and when pressed it just makes the color a bit brighter.", | |
"type": "EN16", | |
"version": { | |
"major": "1", | |
"minor": "3", | |
"patch": "6" | |
}, | |
"configType": "profile", | |
"configs": [ | |
{ | |
"controlElementNumber": 0, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 1, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 2, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 3, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 4, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 5, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 6, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 7, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 8, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 9, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 10, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 11, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 12, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 13, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 14, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 15, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@l]] local num,bval,eval=self:ind(),self:bva(),self:eva()--[[@s]] self.cc,self.hold=er(num),0--[[@sec]] self:emo(1) self:ev0(50)--[[@cb#Color Definitions]] glc(num,1,clg,clg,clg,1)glc(num,2,cln[1],cln[2],cln[3])glp(num,1,bval)glp(num,2,64) ?>" | |
}, | |
{ | |
"event": 3, | |
"config": "<?lua --[[@l]] local num,val=self:ind(),self:bva()--[[@cb#Shift]] if val>0 and self.hold==0 then self.hold=1 elseif self.hold==1 then self.hold=0 end--[[@glp]] glp(num,1,val) ?>" | |
}, | |
{ | |
"event": 2, | |
"config": "<?lua --[[@l]] local num,val,cc=self:ind(),self:eva(),self.cc--[[@cb#MIDI Send]] if self.hold==1 then cc=cc+ccsh end;gms(ch,176,cc,val)gtt(num,125)--[[@cb#Color Change]] if val<64 then glc(num,2,cld[1],cld[2],cld[3],0)elseif val>64 then glc(num,2,clx[1],clx[2],clx[3],0)end ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@l]] local num = self:ind()--[[@glc]] glc(num,2,cln[1],cln[2],cln[3],0) ?>" | |
} | |
] | |
}, | |
{ | |
"controlElementNumber": 255, | |
"events": [ | |
{ | |
"event": 0, | |
"config": "<?lua --[[@g]] ch,ccs,ccsh,cln,cld,clx,clg=gpc(),16,32,{48,67,83},{103,159,101},{186,184,127},31--[[@cb]] glr(cln[1])glg(cln[2])glb(cln[3])function cr(ccn)return(4*(-ccn+ccs-1.25))%17 end;function er(eln)return(4*(eln+1))%17-1+ccs end ?>" | |
}, | |
{ | |
"event": 4, | |
"config": "<?lua --[[@cb]] gpl(gpn()) ?>" | |
}, | |
{ | |
"event": 5, | |
"config": "<?lua --[[@l]] local ch,cmd,param1,param2,num=midi.ch,midi.cmd,midi.p1,midi.p2,0--[[@cb]] if param1<(ccs+ccsh)then num=cr(param1)else num=cr(param1-ccsh)end;glp(num,1,param2*2)--[[@cb]] ele[num]:eva(param2)glp(num,2,param2*2) ?>" | |
}, | |
{ | |
"event": 6, | |
"config": "<?lua --[[@cb]] print('tick') ?>" | |
} | |
] | |
} | |
], | |
"owner": "d7Hbrpe9qTfWix6DVvd2DYyjROB3", | |
"cloudId": "z8bm3IgDM6wyYhKMSs5S", | |
"fileName": "Double CC EN16 (Relative) 2.json", | |
"isEditable": true, | |
"syncStatus": "synced", | |
"public": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment