; ------- 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 the BomeBox or MT Player anymore. ; [Preset.0] Active=1 Comments= Incoming0=EnDi02 Incoming1=KAM10000KSQ1000201B21B Incoming2=Tim0TimT0004Init Name=Init Name0=Project Opened - Init Name1=Esc - Init Name2=Initialize Global Variables Options0=Actv01Stop00OutO00 Options1=Actv01Stop00OutO00 Options2=Actv01Stop00OutO00StMa00000030label0027__cmt>// Fader Offset for current faderlabel004E__cmt>// This will change with bank up, bank down, channel up and channel downga=0label0042__cmt>// Total number of channels 0-23 - 23 to control 24 channelslabel0043__cmt>// It is important we know this for current fader calculationlabel0049__cmt>// If it is different on the DAW, this calculation will be hosed upgb=23label0032__cmt>// faders will be ha-hx for 24 channels 0-23label0015__cmt>// logging flaggc=1label001E__cmt>// Faders in Sync Bitmaplabel0022__cmt>// 1= in sync 0= not in synclabel002A__cmt>// Start with not in sync to be safegd=0label0048__cmt>// fader busy flag, ignore from DAW if faders moving on controllerge=0label003B__cmt>// set DAW faders to initial position 1/2 way assumedlabel0023__cmt>// until we hear from the dawlabel0037__cmt>// DAW last known fader position is in lower wordlabel0039__cmt>// Controller last known fader position is in upperlabel000D__cmt>// wordlabel0006__cmt>pp=16383/2ha=pphb=pphc=pphd=pphe=pphf=pphg=pphh=pphi=pphj=pphk=pphl=pphm=pphn=pphq=pphr=pphs=ppht=pphu=pphv=pphw=pphx=pplabel0006__cmt>label0006__cmt>label0006__cmt> Outgoing0=Tim0TimS0004Init1:0:1 Outgoing1=Tim0TimS0004Init1:0:1 Outgoing2=None PresetSwitchIgnore=0 [Preset.1] Active=1 Comments= Incoming0=MID3 Incoming1=MID3 Incoming2=MID3 Incoming3=MID3 Name=Fader Management Name0=Bank Left (Down) Name1=Bank Right (Up) Name2=Channel Left (Down) Name3=Channel Right (Up) Options0=Actv01Stop00OutO00StMa00000005label0013__cmt>// set offsetpp=ga-8if(pp<0)noexecutega=ppif(gc>0)label001A__log>Fader Offset is %ga% Options1=Actv01Stop00OutO00StMa00000006label0013__cmt>// set offsetpp=gb-7qq=ga+8if(qq>pp)noexecutega=qqif(gc>0)label001A__log>Fader Offset is %ga% Options2=Actv01Stop00OutO00StMa00000004label0013__cmt>// set offsetga=ga-1if(ga<0)ga=0if(gc>0)label001A__log>Fader Offset is %ga% Options3=Actv01Stop00OutO00StMa00000004label0013__cmt>// set offsetga=ga+1if(ga>23)ga=gbif(gc>0)label001A__log>Fader Offset is %ga% Outgoing0=MID3 Outgoing1=MID3 Outgoing2=MID3 Outgoing3=MID3 PresetSwitchIgnore=0 [Preset.2] Active=1 Comments= DefaultInPorts=MIDA00010014My Mackie Controller DefaultOutPorts=MIDA00010003DAW Incoming0=MID1oopptt Incoming1=MID1oopptt Incoming2=MID2MIDA00010003DAWoopptt Incoming3=Tim0TimT0012Release fader busy Incoming4=MID190ppqq Name=Faders Name0=Faders Controller to DAW Name1=Faders Controller - Fader busy Name2=Faders DAW to Controller Name3=Release Fader Busy Name4=Notes Options0=Actv01Stop00OutO00StMa000000BBlabel002E__cmt>// for controllers that only put out LSBtt=pplabel0006__cmt>label0018__cmt>// store for laterww=pplabel001C__cmt>// Look for pitch bendrr=oo&240if(rr!=224)noexecutelabel0014__cmt>// Which faderrr=oo&15if(rr>7)noexecuteif(gc>0)label001B__log>Fader Channel is %rr%label0015__cmt>// Apply Offsetpp=rr+gaif(gc>0)label0021__log>Actual Fader Number is %pp%label0006__cmt>label0006__cmt>label0042__cmt>// get current last known daw fader position and put into qqlabel0006__cmt>if(pp==0)qq=ha&65535if(pp==1)qq=hb&65535if(pp==2)qq=hc&65535if(pp==3)qq=hd&65535if(pp==4)qq=he&65535if(pp==5)qq=hf&65535if(pp==6)qq=hg&65535if(pp==7)qq=hh&65535if(pp==8)qq=hi&65535if(pp==9)qq=hj&65535if(pp==10)qq=hk&65535if(pp==11)qq=hl&65535if(pp==12)qq=hm&65535if(pp==13)qq=hn&65535if(pp==14)qq=ho&65535if(pp==15)qq=hp&65535if(pp==16)qq=hq&65535if(pp==17)qq=hr&65535if(pp==18)qq=hs&65535if(pp==19)qq=ht&65535if(pp==20)qq=hu&65535if(pp==21)qq=hv&65535if(pp==22)qq=hw&65535if(pp==23)qq=hx&65535label0006__cmt>label0049__cmt>// get current last known controller fader position and put into sslabel0006__cmt>if(pp==0)ss=ha>>16if(pp==1)ss=hb>>16if(pp==2)ss=hc>>16if(pp==3)ss=hd>>16if(pp==4)ss=he>>16if(pp==5)ss=hf>>16if(pp==6)ss=hg>>16if(pp==7)ss=hh>>16if(pp==8)ss=hi>>16if(pp==9)ss=hj>>16if(pp==10)ss=hk>>16if(pp==11)ss=hl>>16if(pp==12)ss=hm>>16if(pp==13)ss=hn>>16if(pp==14)ss=ho>>16if(pp==15)ss=hp>>16if(pp==16)ss=hq>>16if(pp==17)ss=hr>>16if(pp==18)ss=hs>>16if(pp==19)ss=ht>>16if(pp==20)ss=hu>>16if(pp==21)ss=hv>>16if(pp==22)ss=hw>>16if(pp==23)ss=hx>>16label0006__cmt>label0006__cmt>label0006__cmt>label0006__cmt>label0032__cmt>// assemble current position and put into rrrr=tt<<7rr=rr|wwif(gc>0)label000D__log>rr=%rr%label0006__cmt>label0017__cmt>// see if in syncww=gd>>ppww=ww&1label0015__log>ww=%ww% qq=%qq%if(ww==1)goto000CUpdate Faderlabel0006__cmt>label0006__cmt>label0006__cmt>label0012__cmt>// DAW deltauu=rr-qqvv=ss-qqlabel0006__cmt>label0006__cmt>label0029__cmt>// compare with last known positionww=uu*vvif(gc>0)label0032__log>Last qq=%qq% rr=%rr% vv=%vv% uu=%uu% ww=%ww%label002E__cmt>// If positive, then paths did not crossif(ww>0)noexecutelabel0006__cmt>label000CUpdate Faderlabel0006__cmt>if(gc==1)label0021__log>Updating Fader %pp% to %rr%label0006__cmt>vv=qq<<16label0006__cmt>if(pp==0)tt=ha&65535if(pp==0)ha=tt|vvlabel0006__cmt>if(pp==1)tt=hb&65535if(pp==1)hb=tt|vvlabel0006__cmt>if(pp==2)tt=hc&65535if(pp==2)hc=tt|vvlabel0006__cmt>if(pp==3)tt=hd&65535if(pp==3)hd=tt|vvlabel0006__cmt>if(pp==4)tt=he&65535if(pp==4)he=tt|vvlabel0006__cmt>label0006__cmt>if(pp==5)tt=hf&65535if(pp==5)hf=vv|ttlabel0006__cmt>if(pp==6)tt=hg&65535if(pp==6)hg=vv|ttlabel0006__cmt>if(pp==6)tt=hh&65535if(pp==7)hh=vv|ttlabel0006__cmt>if(pp==8)tt=hi&65535if(pp==8)hi=vv|ttlabel0006__cmt>if(pp==9)tt=hj&65535if(pp==9)hj=vv|ttlabel0006__cmt>if(pp==10)tt=hk&65535if(pp==10)hk=vv|ttlabel0006__cmt>if(pp==11)tt=hl&65535if(pp==11)hl=vv|ttlabel0006__cmt>if(pp==12)tt=hm&65535if(pp==12)hm=vv|ttlabel0006__cmt>if(pp==13)tt=hn&65535if(pp==13)hn=vv|ttlabel0006__cmt>if(pp==14)tt=ho&65535if(pp==14)ho=vv|ttlabel0006__cmt>if(pp==15)tt=hp&65535if(pp==15)hp=vv|ttlabel0006__cmt>if(pp==16)tt=hq&65535if(pp==16)hq=vv|ttlabel0006__cmt>if(pp==17)tt=hr&65535if(pp==17)hr=vv|ttlabel0006__cmt>if(pp==18)tt=hs&65535if(pp==18)hs=vv|ttlabel0006__cmt>if(pp==19)tt=ht&65535if(pp==19)ht=vv|ttlabel0006__cmt>if(pp==20)tt=hu&65535if(pp==20)hu=vv|ttlabel0006__cmt>if(pp==21)tt=hv&65535if(pp==21)hv=vv|ttlabel0006__cmt>if(pp==22)tt=hw&65535if(pp==22)hw=vv|ttlabel0006__cmt>if(pp==23)tt=hx&65535if(pp==23)hx=vv|ttlabel0006__cmt>label0013__cmt>// For outputlabel0006__cmt>tt=rr&127pp=rr>>7label0006__cmt>label0032__cmt>//if gc>0 then Log "rr=%rr% tt=%tt% pp=%pp%"label0006__cmt>label0025__cmt>// Set Sync Flag for this faderrr=1<label001C__cmt>// Look for pitch bendrr=oo&240if(rr!=224)noexecutelabel0014__cmt>// Which faderrr=oo&15if(rr>7)noexecutelabel0011__cmt>// set busyge=1 Options2=Actv01Stop00OutO00StMa00000065label0018__cmt>// store for laterlabel0014__cmt>// fader busyif(ge==1)noexecuteww=pplabel001C__cmt>// Look for pitch bendrr=oo&240if(rr!=224)noexecutelabel0014__cmt>// Which faderrr=oo&15if(rr>7)noexecuteif(gc>0)label001B__log>Fader Channel is %rr%label0015__cmt>// Apply Offsetpp=rr+gaif(gc>0)label0021__log>Actual Fader Number is %pp%label0006__cmt>rr=tt<<7rr=rr|wwlabel0006__cmt>label0027__cmt>// Don't touch upper bits as theylabel0031__cmt>// are last known controller fader positionlabel0019__cmt>// clear lower bitsif(pp==0)ha=ha&-65536if(pp==0)ha=rr|halabel0006__cmt>if(pp==1)hb=hb&-65536if(pp==1)hb=rr|hblabel0006__cmt>if(pp==2)hc=hc&-65536if(pp==2)hc=rr|hclabel0006__cmt>if(pp==3)hd=hd&-65536if(pp==3)hd=rr|hdlabel0006__cmt>if(pp==4)he=he&-65536if(pp==4)he=rr|helabel0006__cmt>if(pp==5)hf=hf&-65536if(pp==5)hf=rr|hflabel0006__cmt>if(pp==6)hg=hg&-65536if(pp==6)hg=rr|hglabel0006__cmt>if(pp==7)hh=hh&-65536if(pp==7)hh=rr|hhlabel0006__cmt>if(pp==8)hi=hi&-65536if(pp==8)hi=rr|hilabel0006__cmt>if(pp==9)hj=hj&-65536if(pp==9)hj=rr|hjlabel0006__cmt>if(pp==10)hk=hk&-65536if(pp==10)hk=rr|hklabel0006__cmt>if(pp==11)hl=hl&-65536if(pp==11)hl=rr|hllabel0006__cmt>if(pp==12)hm=hm&-65536if(pp==12)hm=rr|hmlabel0006__cmt>if(pp==13)hn=hn&-65536if(pp==13)hn=rr|hnlabel0006__cmt>if(pp==14)ho=ho&-65536if(pp==14)ho=rr|holabel0006__cmt>if(pp==15)hp=hp&-65536if(pp==15)hp=rr|hplabel0006__cmt>if(pp==16)hq=hq&-65536if(pp==16)hq=rr|hqlabel0006__cmt>if(pp==17)hr=hr&-65536if(pp==17)hr=rr|hrlabel0006__cmt>if(pp==18)hs=hs&-65536if(pp==18)hs=rr|hslabel0006__cmt>if(pp==19)ht=ht&-65536if(pp==19)ht=rr|htlabel0006__cmt>if(pp==20)hu=hu&-65536if(pp==20)hu=rr|hulabel0006__cmt>if(pp==21)hv=hv&-65536if(pp==21)hv=rr|hvlabel0006__cmt>if(pp==22)hw=hw&-65536if(pp==22)hw=rr|hwlabel0006__cmt>if(pp==23)hx=hx&-65536if(pp==23)hx=rr|hxlabel0006__cmt>label0006__cmt>if(gc>0)label0025__log>DAW Updating fader %pp% to %rr%label0006__cmt>label0027__cmt>// Clear Sync Flag for this faderrr=1< Options3=Actv00Stop00OutO00StMa00000001ge=0 Options4=Actv00Stop00OutO00 Outgoing0=MID1oopptt Outgoing1=Tim0TimS0012Release fader busy1:1000:1 Outgoing2=None Outgoing3=None Outgoing4=MID190ppqq PresetSwitchIgnore=0 [Project] Author=Steven Caldwell AuthorCopyright=2021 Comments=Do not re-distribute without included author information.\n\n DefaultInPorts=MIDA00010014My Mackie Controller DefaultOutPorts=MIDA00010003DAW Properties=

bome@sniz.biz

Version=2 [Signatures] SigName-1=[Midi Translator Pro Internal] Signature-1=yVHBqOAgMTWmm+2nvueH7x2sDbjIaD0PKFEJjEyu180wTFbXi9T2MbqKFEf4xdnlcvPzgf3wvFqZOVpofG8FAsu+BKTdLg8vmcY3IqXFEIoa2FPGfeOhXDJlgREbkHqMHshlmEPRKK0dLnMVBs15Y770AfcDKqPmByrt0Q8Umsw= SignedBy-1=Steve Caldwell