//Menu File for iSMART TFT module SETUP(system) { touchsamples=10; touchdebounce=5; touchaccuracy=50; //test=showTouchAreas; } ////////// //Files// ///////// LIB(borderb,"SDHC/Image1.bmp?back=\\00ff00"); //Image that creates the boundaries LIB(Backg,"SDHC/songs.bmp?back=\\fefefe"); //Song list image LIB(Select1,"SDHC/sctsong1.bmp"); //Song 1 select LIB(Select2,"SDHC/sctsong2.bmp"); //Song 2 select LIB(Select3,"SDHC/sctsong3.bmp"); //Song 3 select LIB(Select4,"SDHC/sctsong4.bmp"); //Song 4 select LIB(Select5,"SDHC/sctsong5.bmp"); //Song 5 select LIB(Select6,"SDHC/sctsong6.bmp"); //Song 6 select LIB(asc16,"SDHC/asc_16b.fnt"); //Ascii size 16 font LIB(FF1,"SDHC/FFwd.bmp"); //Fast Forward unselected key LIB(Play1,"SDHC/Play.bmp"); //Play unselected key LIB(RW1,"SDHC/Rwd.bmp"); //Rewind unselected key LIB(Stop1,"SDHC/Stop.bmp"); //Stop unselected key LIB(Pause2,"SDHC/Pause.bmp"); //Pause selected key LIB(FF2,"SDHC/FFwd2.bmp"); //Fast Forward selected key LIB(RW2,"SDHC/Rwd2.bmp"); //Rewind selected key LIB(Stop2,"SDHC/Stop2.bmp"); //Stop selected key LIB(VolM,"SDHC/VolMute.bmp?back=\\FFFFFF"); //Volume Mute LIB(VolL,"SDHC/VolFull.bmp?back=\\FFFFFF"); //Volume full LIB(Scroll,"SDHC/Scroll.bmp"); //Scrol bar /////////////// //Variables// ////////////// VAR(TB1,77,U16); //Track Button 1 position VAR(TB2,153,U16); //Track Button 2 position VAR(TB3,229,U16); //Track Button 3 position VAR(TB4,305,U16); //Track Button 4 position VAR(TB5,383,U16); //Track Button 5 position VAR(TB6,457,U16); //Track Button 6 position VAR(TA,"",TXT); //Track Artist Text VAR(TT,"",TXT); //Track Title Text VAR(TD,"",TXT); //Track Duration Text VAR(BGY,530,U16); //Track list y position VAR(BGX,453,U16); //Track lisy x position VAR(slide,0,U8); //Slide variable that cahnges depending on what slider is selected VAR(TY,205,U16); //Position of slide bar //Graphic Equalizer Variables VAR(GY1E,190,U16E); //EEPROM Value VAR(GY2E,190,U16E); //EEPROM Value VAR(GY3E,190,U16E); //EEPROM Value VAR(GY4E,190,U16E); //EEPROM Value //Speaker Balance Variables VAR(LR,40,U16); //Volume Variables VAR(V1E,190,U16E); //EEPROM Value VAR(TN,1,U8E); //TN Value /////////////// //Functions// ////////////// //Track List Functions FUNC(TYFnc) { LOAD(TY,TOUCHY); //Load the y touch coordinates into TY IF(TY<19?[LOAD(TY,19);]); //Sets Lower limits of TY IF(TY>252?[LOAD(TY,252);]); //Sets Upper limits of TY POSN(465,TY,VSlide); //Position the slider bar at TY CALC(BGY,530,TY,"-"); //Calculate the new y cooridnates of the song list POSN(BGX,BGY,BG); //Position the song list in the new position CALC(TB1,77,TY,"-"); //Calculate the offset for track 1 key and image POSN(402,TB1,B1K); POSN(402,TB1,B1S); //Position the tracks Key and Image CALC(TB2,153,TY,"-"); //Calculate the offset for track 2 key and image POSN(402,TB2,B2K); POSN(402,TB2,B2S); //Position the tracks Key and Image CALC(TB3,229,TY,"-"); //Calculate the offset for track 3 key and image POSN(402,TB3,B3K); POSN(402,TB3,B3S); //Position the tracks Key and Image CALC(TB4,305,TY,"-"); //Calculate the offset for track 4 key and image POSN(402,TB4,B4K); POSN(402,TB4,B4S); //Position the tracks Key and Image CALC(TB5,381,TY,"-"); //Calculate the offset for track 5 key and image POSN(402,TB5,B5K); POSN(402,TB5,B5S); //Position the tracks Key and Image CALC(TB6,457,TY,"-"); //Calculate the offset for track 6 key and image POSN(402,TB6,B6K); POSN(402,TB6,B6S); //Position the tracks Key and Image POSN(465,TY,dnV); //Position the slide bar key POSN(465,TY,upV); //Position the slide bar key } //Graphic Equalizer Functions FUNC(GY1Fnc) { LOAD(GY1E,TOUCHY); //Load the y touch coordinate into GY1E IF(GY1E<140?[LOAD(GY1E,140);]); //Set lower limits of GY1E IF(GY1E>240?[LOAD(GY1E,240);]); //Set upper limits of GY1E POSN(130,GY1E,GSlide); //Position the blue bar at GY1E POSN(130,GY1E,dnG); //Position the equalizer down key POSN(130,GY1E,upG); //Position the equalizer release key } FUNC(GY2Fnc) { LOAD(GY2E,TOUCHY); //Load the y touch coorrdinate into GY2E IF(GY2E<140?[LOAD(GY2E,140);]); //Set lower limits of GY2E IF(GY2E>240?[LOAD(GY2E,240);]); //Set upper limits of GY2E POSN(170,GY2E,GSlide2); //Position the blue slide bar at GY2E POSN(170,GY2E,dnG2); //Position the equalizer down key POSN(170,GY2E,upG2); //Position the equalizer release key } FUNC(GY3Fnc) { LOAD(GY3E,TOUCHY); //Load the y touch coordinates into GY3E IF(GY3E<140?[LOAD(GY3E,140);]); //Set lower limits of GY3E IF(GY3E>240?[LOAD(GY3E,240);]); //Set upper limits of GY3E POSN(210,GY3E,GSlide3); //Position the blue slide bar at GY3E POSN(210,GY3E,dnG3); //Position the equalizer down key POSN(210,GY3E,upG3); //Position the equalizer release key } FUNC(GY4Fnc) { LOAD(GY4E,TOUCHY); //Load the y touch coordinates into GY4E IF(GY4E<140?[LOAD(GY4E,140);]); //Set lower limits of GY4E IF(GY4E>240?[LOAD(GY4E,240);]); //Set upper limits of GY4E POSN(250,GY4E,GSlide4); //Position the blue slide bar at GY4E POSN(250,GY4E,dnG4); //Position the equalizer down key POSN(250,GY4E,upG4); //Position the equalizer release key } //Balance Functions FUNC(LRFnc) { LOAD(LR,TOUCHX); //Load the X touch coordinate into LR IF(LR<20?[LOAD(LR,20);]); //Set lower limits of LR IF(LR>80?[LOAD(LR,80);]); //Set upper limits of LR POSN(LR,95,LRSlide); //Position the blue slide bar at LR POSN(LR,95,dnLR); //Position the LR down key POSN(LR,95,upLR); //Position the LR release key } //Volume Functions FUNC(V1Fnc) { LOAD(V1E,TOUCHY); //Load the Y touch coordinate into V1E IF(V1E<140?[LOAD(V1E,140);]); //Set lower limits of V1E IF(V1E>240?[LOAD(V1E,240);]); //Set upper limits of V1E POSN(50,V1E,VolSlide); //Position the blue slide bar at V1E POSN(50,V1E,dnVo); //Position the Volume down key POSN(50,V1E,upVo); //Position the Volume release key } ///////////////////// //Track functions// ///////////////////// FUNC(BEBK) //Black Eyed Peas function { LOAD(TA,"Black Eyed Peas");TEXT(TAT,TA); //Loads track artist and shows LOAD(TT,"Dirty Bit");TEXT(TTT,TT); //Loads track title and shows LOAD(TD,"4:12");TEXT(TDT,TD); //Loads track duration and shows LOAD(TN,"1"); //Loads track No SHOW(B1S); HIDE(B2S,B3S,B4S,B5S,B6S); //Show Highlight on song list } FUNC(RIHK) //Rihanna function { LOAD(TA,"Rihanna");TEXT(TAT,TA); //Loads track artist and shows LOAD(TT,"Come On [Radio]");TEXT(TTT,TT); //Loads track title and shows LOAD(TD,"3:11");TEXT(TDT,TD); //Loads track duration and shows LOAD(TN,"2"); //Loads track No SHOW(B2S); HIDE(B1S,B3S,B4S,B5S,B6S); //Show highlight on song list } FUNC(ELLK) //Ellie Goulding function { LOAD(TA,"Ellie Goulding");TEXT(TAT,TA); //Loads track artist and shows LOAD(TT,"Lights");TEXT(TTT,TT); //Loads track title and shows LOAD(TD,"3:22");TEXT(TDT,TD); //Loads track duration and shows LOAD(TN,"3"); //Loads track No SHOW(B3S); HIDE(B1S,B2S,B4S,B5S,B6S); //Show Highlight on song list } FUNC(DREK) //Dr Dre function { LOAD(TA,"Dr Dre ft Eminem");TEXT(TAT,TA); //Loads track artist and shows LOAD(TT,"I need a Doctor");TEXT(TTT,TT); //Loads track title and shows LOAD(TD,"4:43");TEXT(TDT,TD); //Loads track duration and shows LOAD(TN,"4"); //Loads track No SHOW(B4S); HIDE(B1S,B2S,B3S,B5S,B6S); //Showe Highlight on song list } FUNC(CTEK) //Cage the Elephant function { LOAD(TA,"Cage The Elephant");TEXT(TAT,TA); //Loads track artist and shows LOAD(TT,"Shake Me Down");TEXT(TTT,TT); //Loads track title and shows LOAD(TD,"3:02");TEXT(TDT,TD); //Loads track duration and shows LOAD(TN,"5"); //Loads track No SHOW(B5S); HIDE(B1S,B2S,B3S,B4S,B6S); //Show Highlight on song list } FUNC(JESK) //Jessie J function { LOAD(TA,"Jessie J ft BOB");TEXT(TAT,TA); //Loads track artist and shows LOAD(TT,"Price Tag");TEXT(TTT,TT); //Loads track title and shows LOAD(TD,"3:41");TEXT(TDT,TD); //Loads track duration and shows LOAD(TN,"6"); //Loads track No SHOW(B6S); HIDE(B1S,B2S,B3S,B4S,B5S); //Show Highlight on song list } FUNC(REFunc) //Rewind Function { SHOW(E3); //Shows highlighted rewind button HIDE(E1,E2,E4,E5,PauseK); //Hides other highlighted keys and the pause key RUN(TNDn); //Decreases track No by 1 WAIT(350); //Delay SHOW(PlayI,PlayK); //Shows play button and key HIDE(E3); //Hides Highlighted Rewind button } FUNC(FFFunc) //FastForward Function { SHOW(E1); //Shows highlighted fastforward button HIDE(E2,E3,E4,E5,PauseK); //Hides other highlighted keys and pause key RUN(TNUp); //Increases track No by 1 WAIT(350); //Delay SHOW(PlayI,PlayK); //SHows play button and key HIDE(E1); //Hides highlighted Fast Forward button } FUNC(TNUp) { IF(TN<6?[CALC(TN,TN,1,"+");]:[LOAD(TN,"1");]);; //Increase track No if less than six if not set back to 1 } FUNC(TNDn) { IF(TN>1?[CALC(TN,TN,1,"-");]:[LOAD(TN,"6");]);; //Decrease track No if greater than 1 if not set back to 6 } //////////////////////////////////////////// //Preset Graphic Equalizer Functions// /////////////////////////////////////////// //Preset 1 Function FUNC(Pre1F) //Set preset one { LOAD(GY1E,160);LOAD(GY2E,150);LOAD(GY3E,190);LOAD(GY4E,220); //Load new values into equalizer variables POSN(130,GY1E,GSlide); POSN(130,GY1E,dnG); POSN(130,GY1E,upG); //Postion the bar and keys at new position POSN(170,GY2E,GSlide2); POSN(170,GY2E,dnG2); POSN(170,GY2E,upG2); //Postion the bar and keys at new position POSN(210,GY3E,GSlide3); POSN(210,GY3E,dnG3); POSN(210,GY3E,upG3); //Postion the bar and keys at new position POSN(250,GY4E,GSlide4); POSN(250,GY4E,dnG4); POSN(250,GY4E,upG4); //Postion the bar and keys at new position LOAD(PreB1.back,\\a6d3ee); //Change colour of the preset box 1 to blue LOAD(PreB2.back,white); //Change colour of the preset box 2 to white LOAD(PreBM.back,white); //Change colour of the manual box to white } //Preset 2 Function FUNC(Pre2F) { LOAD(GY1E,220);LOAD(GY2E,210);LOAD(GY3E,200);LOAD(GY4E,190); //Load new values into equalizer variables POSN(130,GY1E,GSlide); POSN(130,GY1E,dnG); POSN(130,GY1E,upG); //Postion the bar and keys at new position POSN(170,GY2E,GSlide2); POSN(170,GY2E,dnG2); POSN(170,GY2E,upG2); //Postion the bar and keys at new position POSN(210,GY3E,GSlide3); POSN(210,GY3E,dnG3); POSN(210,GY3E,upG3); //Postion the bar and keys at new position POSN(250,GY4E,GSlide4); POSN(250,GY4E,dnG4); POSN(250,GY4E,upG4); //Postion the bar and keys at new position LOAD(PreB1.back,white); //Change colour of the preset box 1 to white LOAD(PreB2.back,\\a6d3ee); //Change colour of the preset box 2 to blue LOAD(PreBM.back,white); //Change colour of the manual box to white } //Clear Graphic Equalizer Function FUNC(PreCF) { LOAD(GY1E,190);LOAD(GY2E,190);LOAD(GY3E,190);LOAD(GY4E,190); //Load new values into equalizer variables POSN(130,GY1E,GSlide); POSN(130,GY1E,dnG); POSN(130,GY1E,upG); //Postion the bar and keys at new position POSN(170,GY2E,GSlide2); POSN(170,GY2E,dnG2); POSN(170,GY2E,upG2); //Postion the bar and keys at new position POSN(210,GY3E,GSlide3); POSN(210,GY3E,dnG3); POSN(210,GY3E,upG3); //Postion the bar and keys at new position POSN(250,GY4E,GSlide4); POSN(250,GY4E,dnG4); POSN(250,GY4E,upG4); //Postion the bar and keys at new position LOAD(PreB1.back,white); //Change colour of the preset box 1 to white LOAD(PreB2.back,white); //Change colour of the preset box 2 to white LOAD(PreBM.back,\\a6d3ee); //Change colour of the manual box to blue } FUNC(PreMF) //change box to manual but keep existing GY values { LOAD(PreB1.back,white); //Change colour of the preset box 1 to white LOAD(PreB2.back,white); //Change colour of the preset box 2 to white LOAD(PreBM.back,\\a6d3ee); //Change colour of the manual box to blue } /////////// //Styles// /////////// STYLE(MainP,PAGE) {back=\\ffffff;} //White background style STYLE(BGIMG,IMAGE) {curRel=BR;} //Song list image style STYLE(VImg,IMAGE) {curRel=CC;} //Style for all images STYLE(VSB,DRAW) {type=B; col=blue; back=blue; curRel=CC;} //Back Box style for sliders STYLE(SBB,DRAW) {type=B; col=black; back=white; curRel=CC; } //Sliders style STYLE(TkeyU,key) {type=touch; action=U; delay=0;} //Key release style STYLE(TkeyD,key) {type=touch; action=D; delay=0;} //Key press style STYLE(mnuTxt,TEXT) {font=asc16;col=black;curRel=CC;} //Black text style STYLE(mnuTxtLR,TEXT) {font=asc16;col=BLUE;curRel=CC;} //Blue text style for LR STYLE(trkTxt,TEXT) {font=asc16;col=black;curRel=RC;maxLen=255;} //Track,Artist,Duration text style STYLE(preTxt,TEXT) {font=asc16;col=gray;curRel=LC;} //Preset box text STYLE(PreB1,DRAW) {type=B; col=gray; back=white; curRel=LC; } //Preset 1 box style STYLE(PreB2,DRAW) {type=B; col=gray; back=white; curRel=LC; } //Preset 2 box style STYLE(PreBM,DRAW) {type=B; col=gray; back=\\a6d3ee; curRel=LC;} //Manual box style ////////// //Page// ///////// PAGE(HomePg,MainP) { POSN(453,530); IMG(BG,Backg,BGIMG); //Songs Image POSN(402,TB1); KEY(B1K,[RUN(BEBK);],93,68,TOUCH); //Create Key for Song list IMG(B1S,Select1,VImg); HIDE(B1S); //Create Img for selected Song background POSN(402,TB2); KEY(B2K,[RUN(RIHK);],93,68,TOUCH); //Create Key for Song list IMG(B2S,Select2,VImg); HIDE(B2S); //Create Img for selected Song background POSN(402,TB3); KEY(B3K,[RUN(ELLK);],93,68,TOUCH); //Create Key for Song List IMG(B3S,Select3,VImg); HIDE(B3S); //Create Img for selected Song background POSN(402,TB4); KEY(B4K,[RUN(DREK);],93,68,TOUCH); //Create Key for Song List IMG(B4S,Select4,VImg); HIDE(B4S); //Create Img for selected Song background POSN(402,TB5); KEY(B5K,[RUN(CTEK);],93,68,TOUCH); //Create Key for Song List IMG(B5S,Select5,VImg); HIDE(B5S); //Create Img for Selected Song background POSN(402,TB6); KEY(B6K,[RUN(JESK);],93,68,TOUCH); //Create Key for Song List IMG(B6S,Select6,VImg); HIDE(B6S); //Create Img for selected Song background POSN(239,135); IMG(Border,borderb,VImg); //Background to draw borders POSN(270,15); TEXT(TAT,TA,trkTxt); //Track Artist POSN(270,35); TEXT(TTT,TT,trkTxt); //Track Title POSN(270,55); TEXT(TDT,TD,trkTxt); //Track Duration POSN(130,100);IMG(RWI,RW1,VImg); //Rewind Image KEY(RWK,REFunc,34,34,TOUCH); //Rewind Key IMG(E3,RW2,VImg); HIDE(E3); //Highlighted rewind key POSN(170,100);IMG(PlayI,Play1,VImg); //Play Image KEY(PlayK,[SHOW(E5,PauseK);HIDE(E1,E3,E4,E2,PlayK);],34,34,TOUCH); //Play Key shows Pause KEY(PauseK,[SHOW(PlayI,PlayK);HIDE(E1,E5,E3,E4,PauseK);],34,34,TOUCH); //Pause Key shows Play IMG(E2,Play1,VImg); HIDE(E2); //Play Image IMG(E5,Pause2,VImg); HIDE(E5); //Pause Image POSN(210,100);IMG(StopI,Stop1,VImg); //Stop Image KEY(StopK,[SHOW(E4,PlayI,PlayK);HIDE(E1,E2,E3,E5,PauseK);],34,34,TOUCH); //Stop Key IMG(E4,Stop2,VImg); HIDE(E4); //Stop Highlight Image POSN(250,100);IMG(FFI,FF1,VImg); //Fast Forward Image KEY(FFK,FFFunc,34,34,TOUCH); //Fast Forward Key IMG(E1,FF2,VImg); HIDE(E1); //Fast Forward Highlight Key POSN(45,255); TEXT(VolH,"Volume",mnuTxt); //Volume title POSN(50,190); DRAW(VolBox,12,100,SBB); //Volume Background box POSN(50,V1E); DRAW(VolSlide,16,6,VSB); //Volume Slide Bar KEY(dnVo,[VAR(slide,7);],25,25,TkeyD); //Volume SLide Key Down KEY(upVo,[VAR(slide,0);],25,25,TkeyU); //Volume Slide Key Release POSN(24,145); IMG(VL,VolL,VImg); //Volume Icon KEY(FVo,[LOAD(V1E,140);RUN(V1Fnc);],25,25,TOUCH); POSN(24,235); IMG(VM,VolM,VImg); //Volume Mute Icon KEY(MVo,[LOAD(V1E,240);RUN(V1Fnc);],25,25,TOUCH); POSN(465,19); IMG(VSlide,Scroll,VImg); //File Scroll Img KEY(dnV,[VAR(slide,1);],34,50,TkeyD); //File Scroll Key Down KEY(upV,[VAR(slide,0);],34,50,TkeyU); //File Scroll Key Release POSN(190,127);TEXT(GEH,"Graphic Equalizer",mnuTxt); //Graphic Equalizer Text POSN(13,16); DRAW(Pre1B,76,16,PreB1); //Preset 1 Box POSN(+5,15); TEXT(Pre1,"Preset 1",preTxt); //Preset 1 Text POSN(+33,16);KEY(SelP1KD,[RUN(Pre1F); ],76,16,TkeyD); //Preset 1 Key POSN(13,35); DRAW(Pre2B,76,16,PreB2); //Preset 2 Box POSN(+5,34); TEXT(Pre2,"Preset 2",preTxt); //Preset 2 Text POSN(+33,35);KEY(SelP2KD,[RUN(Pre2F);],76,16,TkeyD); //Preset 2 Key POSN(13,54); DRAW(PreMB,76,16,PreBM); //Manual Box POSN(+10,53); TEXT(PreM,"Manual",preTxt); //Manual Text POSN(+28,54); KEY(SelPCKD,[RUN(PreCF);],76,16,TkeyD); //Manual Key POSN(130,190); DRAW(GBox,8,100,SBB); //Equalizer 1 Box POSN(130,GY1E); DRAW(GSlide,16,6,VSB); //Equalizer 1 Slide KEY(dnG,[VAR(slide,2);RUN(PreMF);],30,30,TkeyD); //Equalizer 1 Key Down KEY(upG,[VAR(slide,0);],30,30,TkeyU); //Equalizer 1 Key Release POSN(130,255); TEXT(T32,"32",mnuTxt); //Equalizer 1 Text POSN(170,190); DRAW(GBox2,8,100,SBB); //Equalizer 2 Box POSN(170,GY2E); DRAW(GSlide2,16,6,VSB); //Equalizer 2 Slide KEY(dnG2,[VAR(slide,3);RUN(PreMF);],30,30,TkeyD); //Equalizer 2 Key Down KEY(upG2,[VAR(slide,0);],30,30,TkeyU); //Equalizer 2 Key Release POSN(170,255); TEXT(T125,"125",mnuTxt); //Equalizer 2 Text POSN(210,190); DRAW(GBox3,8,100,SBB); //Equalizer 3 Box POSN(210,GY3E); DRAW(GSlide3,16,6,VSB); //Equalizer 3 Slide KEY(dnG3,[VAR(slide,4);RUN(PreMF);],30,30,TkeyD); //Equalizer 3 Key Down KEY(upG3,[VAR(slide,0);],30,30,TkeyU); //Equalizer 3 Key Release POSN(210,255); TEXT(T500,"500",mnuTxt); //Equalizer 3 Text POSN(250,190); DRAW(GBox4,8,100,SBB); //Equalizer 4 Box POSN(250,GY4E); DRAW(GSlide4,16,6,VSB); //Equalizer 4 Slide KEY(dnG4,[VAR(slide,5);RUN(PreMF);],30,30,TkeyD); //Equalizer 4 Key Down KEY(upG4,[VAR(slide,0);],30,30,TkeyU); //Equalizer 4 Key Release POSN(250,255); TEXT(T1K,"1K",mnuTxt); //Equalizer 4 Text POSN(105,235); TEXT(TLP12,"+12",mnuTxt); //Equalizer Label 1 POSN(105,190); TEXT(TL0,"0",mnuTxt); //Equalizer Label 2 POSN(105,145); TEXT(TLM12,"-12",mnuTxt); //Equalizer Label 3 POSN(50,77); TEXT(LRH,"Balance",mnuTxt); //Balance Label POSN(50,95); DRAW(LRBox,60,8,SBB); //Balance Box DRAW(LRSlide,6,16,VSB); //Balance Slider KEY(dnLR,[VAR(slide,6);],30,30,TkeyD); //Balnace Key Down KEY(upLR,[VAR(slide,0);],30,30,TkeyU); //Balance Key Release POSN(50,108); TEXT(TLR,"L R",mnuTxtLR); //Balance Label 2 LOOP(scroll,FOREVER) //Loop forever to do the correct functions { IF(slide=1?TYFnc); //Scroll Song List Function IF(slide=2?GY1Fnc); //Graphic Equalizer 1 Function IF(slide=3?GY2Fnc); //Graphic Equalizer 2 Function IF(slide=4?GY3Fnc); //Graphic Equalizer 3 Function IF(slide=5?GY4Fnc); //Graphic Equalizer 4 Function IF(slide=6?LRFnc); //Balance Function IF(slide=7?V1Fnc); //Volume Function IF(TN=1?BEBK); //Display BEB track function IF(TN=2?RIHK); //Display RIH track function IF(TN=3?ELLK); //Display EEL track function IF(TN=4?DREK); //Display DRE track function IF(TN=5?CTEK); //Display CTE track function IF(TN=6?JESK);; //Display JES track function } } SHOW(HomePg);