; ------- 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=Open Project - Init Name1=ESC- Init Name2=Initialize Global Variables Options0=Actv01Stop00OutO00 Options1=Actv01Stop00OutO00 Options2=Actv01Stop00OutO00StMa0000000Dlabel0016__cmt>// fader 0 valueg0=0label0015__cmt>//fader 1 valueg1=0label0016__cmt>// fader 2 valueg2=0label0024__cmt>// current mute state 1= mutedga=0label001B__cmt>// desired mute stategb=0label0006__cmt>label000E__cmt>// debugzz=1 Outgoing0=Tim0TimS0004Init1:0:1 Outgoing1=Tim0TimS0004Init1:0:1 Outgoing2=None PresetSwitchIgnore=0 [Preset.1] Active=1 Comments= Incoming0=MID3XR18 Incoming1=MID3XR18 Incoming2=MID3XR18 Incoming3=MID3XR18 Incoming4=MID3XR18 Incoming5=Tim0TimT000AMute-State Incoming6=Tim0TimT000CMute-State 2 Name=Faders Name0=Fader 0 Name1=Fader 1 Name2=Fader 2 Name3=Check Fader States Name4=Check Fader States 2 Name5=Set Mute State Name6=Set Mute State 2 Options0=Actv01Stop00OutO00 Options1=Actv01Stop00OutO00 Options2=Actv01Stop00OutO00 Options3=Actv01Stop00OutO00StMa0000000Clabel001E__cmt>// only incoming cc0-cc2if(pp>2)noexecutelabel0006__cmt>label0019__cmt>// check each faderqq=g0|g1qq=qq|g2label0006__cmt>label001A__cmt>// set desired stategb=0if(qq>0)gb=1label0006__cmt>label0006__cmt> Options4=Actv01Stop00OutO00StMa0000000Clabel001E__cmt>// only incoming cc0-cc2if(tt>2)noexecutelabel0006__cmt>label0019__cmt>// check each faderha=g0|g1ha=ha|g2label0006__cmt>label001A__cmt>// set desired stategd=0if(ha>0)gd=1label0006__cmt>label0006__cmt> Options5=Actv01Stop00OutO00StMa0000000Clabel001F__cmt>// ga= current mute statelabel001F__cmt>// gb= desired mute statelabel0028__cmt>// do nothing if they are the sameif(ga==gb)noexecutelabel0006__cmt>label0035__cmt>// set outgoing value delenind on desired stateif(gb==1)qq=0if(gb==0)qq=127label0022__cmt>// Toggle current mute statega=ga^1label0006__cmt>if(zz==1)label001B__log>Log Mute state = %ga% Options6=Actv01Stop00OutO00StMa0000000Clabel001F__cmt>// gd= current mute statelabel001F__cmt>// ge= desired mute statelabel0028__cmt>// do nothing if they are the sameif(gd==ge)noexecutelabel0006__cmt>label0035__cmt>// set outgoing value delenind on desired stateif(gd==1)rr=127if(gd==0)rr=0label0022__cmt>// Toggle current mute statege=ge^1label0006__cmt>if(zz==1)label001B__log>Log Mute state = %gd% Outgoing0=None Outgoing1=None Outgoing2=None Outgoing3=Tim0TimS000AMute-State1:0:1 Outgoing4=Tim0TimS000CMute-State 21:0:1 Outgoing5=MID3XR18 Outgoing6=MID3Relay PresetSwitchIgnore=0 [Preset.2] Active=1 Comments= Incoming0=MID3Fader ControllerXR18 Incoming1=MID3XR18 Name=Gain Ctrl Name0=SysEX to CC Name1=Motorized Fader Ctrl Options0=Actv01Stop00OutO00StMa00000022label003B__cmt>// oo is the + or minus 0x2b for + and 0x2d for minuslabel0036__cmt>// pp is the tens digit and qq is the ones digitlabel0006__cmt>label001D__cmt>// lets convert to 0-72rr=rr*72rr=rr/127if(rr<0)rr=0if(rr>72)rr=72label0006__cmt>label002E__cmt>// Lets scale it so that it is -12 - +60rr=rr-12label0006__cmt>label003B__cmt>// Now rr contains the decimal value in DB +12 to -12label0006__cmt>label001E__cmt>// determine if negativeif(rr<=0)oo=45if(rr>=0)oo=43label0006__cmt>if(oo==45)rr=rr*-1label0006__cmt>label0016__cmt>//Get 10's Digitpp=rr/10pp=pp+48label0006__cmt>label0016__cmt>// get 1's digitqq=rr%10qq=qq+48label0006__cmt>if(pp>=54)qq=48label0006__cmt>label0045__cmt>// if pp<=30 then if pp<=30 then if pp<=30 then pp=doesnt existlabel0006__cmt>tt=ss+49label0006__cmt> Options1=Actv01Stop00OutO00 Outgoing0=MID2MIDA00010004XR18F0002032322F68656164616D702F30tt2F6761696E20ooppqqF7 Outgoing1=MID3Fader Controller PresetSwitchIgnore=0 [Project] DefaultInPorts=MIDA00020010Fader Controller0004XR18 DefaultOutPorts=MIDA00030005Relay0010Fader Controller0004XR18 Version=2 [Signatures] SigName-1=[Midi Translator Pro Internal] Signature-1=pXz3VewfbGbkp/7AKwlSV1CC89nQwPaTyr/fkNMsAT4zZkz165ILSZxU8Fa996X1KgxAyuNPqyioGHkKmd0U29EkEkQDs4NQvvl6Ui/zGpujkwUioVXAQVvaBtepovdqdsDFUaItOjT1GaqcawG0AbHpdTPBnYq8olyde6M3c7k= SignedBy-1=Steve Caldwell