ranger_391xt Posted December 5, 2009 Share Posted December 5, 2009 I know a lot of people use BetaBrites and have shared how they update them during their shows. I have built a LEDTriks system (details can be found at doityourselfchristmas.com), and thought I'd share how I integrated it into my display such that I am able to inform passers by what song is playing. I know there is at least one other LOR user out there that has built the LEDTriks, and I figure there may be others that have or are considering it.My goal was to be able to provide visitors to my display information such as the FM freuqeuncy to tune to, show times, and the title and artist of the currently playing song. To do this, I created several LEDTriks sequence files using Vixen. One sequence contains the Tune To information, another sequence contains the show time information, and then sequences for each song/artist were created.To start the LEDTriks display when the show started, I created a windows cmd (batch) file which is executed by my background sequence. This file runs in a loop, displaying the Tune To information, then the show time info, and then the song/artist information. The song artist information to display is determined by reading a .txt file which contains the name of the song/artist LEDTriks sequence. This .txt file is created/updated by other batch files that are executed when the sequences start. The LEDTriks stops display information if another .txt file (showdone.txt) exists, which is created by a batch file that is executed by my shutdown sequence.The batch file to "drive" the LEDTriks board is as follows:REM-----------------------------------------------------------------------REMREM Batch file to send updates to LEDTriks board with LOR show is runningREMREM By Chris Hoover, December 2, 2009REMREM-----------------------------------------------------------------------:INITC:CD "Program FilesLTC"setlocalset currentsong=set showrunning=IF EXIST "C:Program FilesLTCcurrent.txt" DEL "C:Program FilesLTCcurrent.txt"IF EXIST "C:Program FilesLTCshowdone.txt" DEL "C:Program FilesLTCshowdone.txt"ECHO Show Started %Date% %Time%> "C:Program FilesLTCshowrunning.txt":TuneToIF EXIST "C:Program FilesLTCshowdone.txt" GOTO ENDLTC TuneTo.led #FRM #DLY15000:ShowTimesIF EXIST "C:Program FilesLTCshowdone.txt" GOTO ENDLTC ShowTimes.led #FRM #DLY5000LTC Showtimes2.led #FRM #DLY500rem IF EXIST "C:Program FilesLTCcurrent.txt" (GOTO CurrentSong) ELSErem (GOTO TuneTo):CurrentSongIF EXIST "C:Program FilesLTCshowdone.txt" GOTO ENDIF NOT EXIST "C:Program FilesLTCcurrent.txt" GOTO TuneToFOR /F "tokens=*" %%a in ('Type "C:Program FilesLTCcurrent.txt" 2^>NUL') do set currentsong=%%aLTC NowPlaying.led #FRM #DLY5000LTC %currentsong%.led #FRM #DLY500GOTO TuneTO:ENDLTC #CLSexitOne of the files which updates the current.txt files looks as follws:IF EXIST "C:Program FilesLTCcurrent.txt" DEL "C:Program FilesLTCcurrent.txt"ECHO MusicBox> "C:Program FilesLTCcurrent.txt"EXITAdditionally, for my intermission sequences, as well as some animations that play between songs, I execute a batch file which deletes the current.txt file, so that no "Now Playing" info is displayed.Not sure if this will be useful to anyone else, but thought I would share how I did it.Chris Link to comment Share on other sites More sharing options...
Recommended Posts