; ------- 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. ; [MIDI.routes] In0=My LaunchPad Out0=Application [Preset.0] Name=Led Toggle Feedback Active=1 Comments= PresetSwitchIgnore=0 DefaultInPorts=MIDA0001000CMy LaunchPad DefaultOutPorts=MIDA0001000CMy LaunchPad Name0=Toggle LED MK2 Incoming0=MID3 Outgoing0=MID3 Options0=Actv00Stop00OutO01StMa00000041label001F__cmt>// Bottom Row 1 0x0b-0x13label0018__cmt>// Row 2 0x15-0x1dlabel0018__cmt>// Row 3 0x1f-0x27label0018__cmt>// Row 4 0x29-0x31label0018__cmt>// Row 5 0x33-0x3blabel0018__cmt>// Row 6 0x3d-0x45label0018__cmt>// Row 7 0x47-0x4flabel0018__cmt>// Row 8 0x51-0x55label0023__cmt>// Row 9 (round) CC 0x68-0x6flabel0006__cmt>label0035__cmt>// We will map only square buttons to ga and gblabel0006__cmt>label0016__cmt>// Determine Rowrr=pp/10rr=rr-1label0019__cmt>//Log "Row is %rr%"label0006__cmt>label0019__cmt>// Determine Columntt=pp-11tt=tt%10label001C__cmt>//Log "Column is %tt%"label0019__cmt>// Discard column 8if(tt>7)noexecutelabel0006__cmt>label0024__cmt>// Determine Bit to manipulateuu=rr*8uu=uu+ttlabel0020__cmt>//Log "Bit Number is %uu%"label0006__cmt>label0024__cmt>// Determine Variable ga or gbvv=gaif(uu>31)vv=gblabel0006__cmt>label0028__cmt>// Determine bit with mod operatorww=uu%32label0027__cmt>//Log "Bit to manimupate is %ww%"label002C__cmt>// vv now contains the global variablelabel001C__cmt>// ww contains the bitlabel0006__cmt>label0017__cmt>// Toggle the bitlabel0019__cmt>// Shift into placess=1<// toggle itvv=vv^sslabel0006__cmt>label0023__cmt>// Put back into global spaceif(uu<=31)ga=vvif(uu>31)gb=vvlabel0006__cmt>label0032__cmt>// Determine what to send back to controllerqq=vv>>wwqq=qq&1label0006__cmt>label0025__cmt>// Reuse variable rr for outputlabel0006__cmt>label001A__cmt>// Off Value (color)rr=0label0006__cmt>label0019__cmt>// On Value (color)if(qq==1)rr=127label0006__cmt>label0006__cmt>label0006__cmt>label0006__cmt>label0006__cmt> Name1=Toggle LED Mini Incoming1=MID3 Outgoing1=MID3 Options1=Actv01Stop00OutO01StMa00000041label0025__cmt>// Row top (round) CC 0x68-0x6flabel0018__cmt>// Row 0 0x00-0x08label0018__cmt>// Row 1 0x10-0x18label0018__cmt>// Row 2 0x20-0x28label0018__cmt>// Row 3 0x30-0x38label0018__cmt>// Row 4 0x40-0x48label0018__cmt>// Row 5 0x50-0x58label0018__cmt>// Row 6 0x60-0x68label0018__cmt>// Row 7 0x70-0x78label0006__cmt>label0044__cmt>// We will map 64 square buttons to 32 bit variables ga and gblabel0006__cmt>label001C__cmt>// Determine Row (0-7)rr=pp+16rr=rr/16rr=rr-1label0019__cmt>//Log "Row is %rr%"label0006__cmt>label001F__cmt>// Determine Column (0-7)tt=pp%16label001C__cmt>//Log "Column is %tt%"label001D__cmt>// ignore round buttonsif(tt>7)noexecutelabel0006__cmt>label0024__cmt>// Determine Bit to manipulateuu=rr*8uu=uu+ttlabel0020__cmt>//Log "Bit Number is %uu%"label0006__cmt>label0024__cmt>// Determine Variable ga or gbvv=gaif(uu>31)vv=gblabel0006__cmt>label0028__cmt>// Determine bit with mod operatorww=uu%32label0027__cmt>//Log "Bit to manipulate is %ww%"label002C__cmt>// vv now contains the global variablelabel001C__cmt>// ww contains the bitlabel0006__cmt>label0017__cmt>// Toggle the bitlabel0019__cmt>// Shift into placess=1<// toggle itvv=vv^sslabel0006__cmt>label0023__cmt>// Put back into global spaceif(uu<=31)ga=vvif(uu>31)gb=vvlabel0006__cmt>label0032__cmt>// Determine what to send back to controllerqq=vv>>wwqq=qq&1label0006__cmt>label0025__cmt>// Reuse variable rr for outputlabel0006__cmt>label001A__cmt>// Off Value (color)rr=0label0006__cmt>label0019__cmt>// On Value (color)if(qq==1)rr=127label0006__cmt>label0006__cmt>label0006__cmt>label0006__cmt>label0006__cmt> [Project] Version=2 Author= AuthorContact= Comments= AuthorWWW= AuthorCopyright= DefaultInPorts=MIDA0001000ELaunchpad Mini DefaultOutPorts=MIDA0002000BApplication000ELaunchpad Mini [Signatures] SigName-1=[Midi Translator Pro Internal] Signature-1=Z/kq2MJJ5Fj0wFijAdXqbJ6gZ3sTZlAp3RmhdoaFu76N3AOmeDo6jqRZ5cJnmh3guKhy+lmOpCQDFXJikTYAFw8mUhmEf2ZgeSwYjeGrW5vX5RqPbMixkv0+ljuH+1Dy4GkY7RJNbASqzoNLwBpmdNIwjFi2Z8jKnkP7iGiGub8= SignedBy-1=Dan Richardson