; ------- Bome MIDI Translator: Signed Project File ; ------- You can modify this file as you like, but that will invalidate ; ------- the signature so that it cannot be opened in MT Player anymore. ; [Preset.0] Name=Init Active=1 PresetSwitchIgnore=0 Name0=Init Open Incoming0=EnDi02 Outgoing0=Tim0TimS0004Init1:1000:1 Options0=Actv01Stop00OutO00 Name1=Init Esc Incoming1=KAM10000KSQ1000201B21B Outgoing1=Tim0TimS0004Init1:0:1 Options1=Actv01Stop00OutO00 Name2=Set Global Variables Incoming2=Tim0TimT0004Init Outgoing2=None Options2=Actv01Stop00OutO00StMa00000011label0029__cmt>// drag indicated 1=drag 0=non dragga=0label0015__cmt>// screen widthgb=1920label0027__cmt>// last mouse horizontal positiongc=gb/2label0034__cmt>// mouse starting horizontal position for draggd=gclabel0020__cmt>// mouse vertical positionge=1080/2label0024__cmt>// last mouse controller valuegf=127/2label0027__cmt>// current mouse controller valuegg=127/2label0010__cmt>// Scalinggh=gb+1gh=gh/128 Name3=Center Mouse Incoming3=Tim0TimT0004Init Outgoing3=Mse201gc:ge Options3=Actv01Stop00OutO00StMa00000001gc=gb/2 [Preset.1] Name=Work Active=1 PresetSwitchIgnore=0 Name0=Mouse Move Start Position Incoming0=MID3 Outgoing0=Mse201gd:ge Options0=Actv01Stop00OutO00StMa00000006label002F__cmt>// If mouse movement already started justlabel0010__cmt>// move itif(ga==1)noexecutelabel0006__cmt>gc=gdlabel0006__cmt> Name1=Mouse Move Click Down Incoming1=MID3 Outgoing1=Mse10300 Options1=Actv01Stop00OutO00Dlay50:MillisStMa00000004label002F__cmt>// If mouse movement already started justlabel0010__cmt>// move itif(ga==1)noexecuteif(ga==0)ga=1 Name2=Mouse Move Drag Incoming2=MID3 Outgoing2=Mse201gc:ge Options2=Actv01Stop00OutO00Dlay50:MillisStMa00000010label002F__cmt>// If mouse movement already started justlabel0010__cmt>// move itif(ga==0)noexecutelabel001C__cmt>// last mouse positionoo=gclabel001D__cmt>//how much did we move?qq=pp-gflabel0026__cmt>// set new mouse scaled positionqq=qq*ghgc=gc+qqif(gc<0)gc=0if(gc>gb)gc=gblabel0027__cmt>// Store new controller positionsgg=pplabel0006__cmt>label0006__cmt> Name3=Start Drag Timer Incoming3=MID3 Outgoing3=Tim0TimS0004Drag0:1000:1000 Options3=Actv01Stop00OutO00Dlay500:Millis Name4=Drag Time Incoming4=Tim0TimT0004Drag Outgoing4=Tim0TimK0004Drag Options4=Actv01Stop00OutO00StMa00000005label0021__cmt>// Did the controller move?if(gf==gg)ga=0label0023__cmt>// Store new controller valuegf=ggif(ga==1)noexecute Name5=Drag Time - Release Incoming5=Tim0TimT0004Drag Outgoing5=Mse10400 Options5=Actv01Stop00OutO00StMa00000001if(ga==1)noexecute [Project] Version=2 Author=Steven Caldwell AuthorContact=bome@sniz.biz Comments=For custom Bome programming, please email the author AuthorWWW= AuthorCopyright=2017 DefaultInPorts=MIDA0001000DMy Controller DefaultOutPorts=MIDA0000 [Signatures] SigName-1=[Midi Translator Pro Internal] Signature-1=PvzEQ17sbqLyAPr2aN7iDaNjAol0SHpWZf5lr158JJv9VB4ryo1fWhtQakPGs5ndWIoGqqDGNT4mKqK2iu/bA+FzmmRWOUyoh9t6u0bxDMaZGWtBtIwsWIEs6BTlUDxp4O+92CvjPyhOcC9wErbqNLU4+z6IbZBEtHmQ+Ss8/bs= SignedBy-1=Steve Caldwell