# This is a remark # # Any question should be asked on the forum of MLT www.multimania.com/screamers/mlt # # In order to make your own .ini, you should read the followings: You can ask up to 256 ini-instructions. Each instruction are executed in the order you give. So, the next instruction may cover the previous one (for instance if you ask for the time on the first line, and then you put all the title on this first line too... you won't see the first one.) if you need to give a position. There is no matter of anykind if you use a 16x2 LCD or even a 40x4 LCD. position still the same. position is given by the instruction LOCATE x , y The next intruction will take place at the specified position. Please respect the syntax. locate 1,1 is not recognised. You must put LOCATE 1 , 1. Instruction are CASE SENSITIVE if you do not write the syntax correctly, MLT will return an error 106. And won't be loaded as a tsr. Instruction are: LOCATE x , y : this makes the cursor go to the x,y position of the LCD. all others instructions will be write there. PRINTTEXT your text here : Let you write your own text everywhere you want. PRINT : if is TIME : Display the current time. (hh:mm:ss) TIMEWITHOUTSECONDS : dipslay the current time. (hh:mm) DATE : Display the current date. (dd/mm/yyyy) ELAPSEDTIME : elapsed time of the current song. (mm:ss) SONGTIME : total time of the song. (mm:ss) TIMEREMAINING : time remaining in the song. (mm:ss) PLAYINGSTATUS : if the song is playing : display '>' if the song is fading out : display '{' if the song is fading in : display '}' if the song is crossfading: display 'X' TITLE : Title of the current song (ID3 if availaible) BANDNAME : Name of the band (if there is no ID3, nothing appear) FILETYPE : Display 'Layer III' if MP3... support WAV, MP2... FILESAMPLINGRATE : Display the Sampling Rate. FILESTREAM : Display the stream rate (somthing like x kb/s) MONOORSTEREO : Display 'Mono' or 'Stereo' CROSSFADING : Display 'Cross' if Crossfading option is on. Else display nothing BROWSER : Display an automatic browser (that will disapear if you do not browse anymore. EXTENSIONFILTEROFF : If Extension filter is off, you will see .MP3 at the end of each name EXTENSIONFILTERON : Avoid diplay of extension (MP3 MP2 & WAV) LCDLATENCY x : Let you define your own LCDLatency. The LCD needs time to perform each order. If you give an LCD latency of 10000, the program will wait 10000 nop between each instruction. But if the number is too high, the display will become too slow and you also can crash your computer. So for a Processor like a Duron 600 you can put 3000 but for a P200 try something like 500. If the number is too low, you will have a mess on the LCD. This will not damage anything... You just need to make it higher. If you find the limit between the mess and the good display, add a little bit to your number... because response of LCD change with the time and kind of instruction (and also its temperature...) I will need a busy flag to avoid this later on... NEWSLIDINGSCREEN : Each time you put this instruction, you will have a new defined screen. You can slide from one screen to the next by pressing the 5 of the pad. But you can redefine this key with the instruction SLIDINGSCANCODE SLIDINGSCANCODE x : x is the scan code of the key you wish use to slide from one screen to the next. REFRESHSCANCODE x : If you have a problem with your LCD because of a problem with your wire, you may crash your LCD. to 'Un-crash' it, you can use a key. Defined by its scancode. ( usefull because before you had to reboot ) HORIZONTALVOLUME x : This makes appear an horizontal volume bar starting form the current position and of a maximum size of x characters. (from the left to the right) POSITIONINSONG x : Display a progress bar of x characters. This will fill as the song is playing. Full bar when song finish. SPECTRUM16X2 : Display a Spectrum analyser of 16 char on 2 lines. SPECTRUM16X1 : Display a Spectrum analyser of 16 char on a single line. SCROLLSPEED x : define the scroll speed. the higher it is, the slower it goes. VERTICALVOLUME x : x define the number of char of the vertical screen (from 1 to 4) SETLPTPORTADRESS x : x define the LPT port. do not put this instruction until you have a special computer. no hex, only dec. (no FF, use 255) CENTER : center the specified arg at the middle of the screen of the current line defined by LOCATE. CENTER support as : TITLE, BANDNAME and BROWSER _________________ This program is a CardWare If you like this program.... just send me a postcard of your country ! the adress is : Fabrice de Chaumont 2 rue du petit Chateau 60200 COMPIEGNE FRANCE Thank you for using MLT ! _________________ End of the remark : here is the code # EXTENSIONFILTERON LCDLATENCY 3000 SLIDINGSCANCODE 204 SCROLLSPEED 10 REFRESHSCANCODE 53 NEWSLIDINGSCREEN # Must be write, even for a single-screen config # LOCATE 36 , 1 PRINT TIME LOCATE 36 , 2 PRINT DATE LOCATE 11 , 3 PRINTTEXT } LOCATE 29 , 3 PRINTTEXT { LOCATE 12 , 3 SPECTRUM16X1 LOCATE 34 , 4 PRINT MONOORSTEREO LOCATE 35 , 4 POSITIONINSONG 6 LOCATE 1 , 3 PRINT FILESTREAM LOCATE 1 , 4 PRINT FILESAMPLINGRATE LOCATE 33 , 3 PRINT FILETYPE LOCATE 1 , 1 CENTER TITLE LOCATE 1 , 2 CENTER BANDNAME LOCATE 1 , 3 CENTER BROWSER LOCATE 33 , 4 PRINT PLAYINGSTATUS LOCATE 1 , 2 PRINT CROSSFADING LOCATE 11 , 4 PRINTTEXT - LOCATE 12 , 4 PRINT TIMEREMAINING LOCATE 19 , 4 PRINT SONGTIME LOCATE 25 , 4 PRINT ELAPSEDTIME NEWSLIDINGSCREEN LOCATE 1 , 1 VERTICALVOLUME 4 LOCATE 2 , 1 VERTICALVOLUME 4 LOCATE 3 , 1 VERTICALVOLUME 4 LOCATE 4 , 1 VERTICALVOLUME 4 LOCATE 6 , 1 HORIZONTALVOLUME 35 LOCATE 6 , 2 HORIZONTALVOLUME 35 LOCATE 39 , 1 VERTICALVOLUME 4 LOCATE 38 , 1 VERTICALVOLUME 4 LOCATE 37 , 1 VERTICALVOLUME 4 LOCATE 36 , 1 VERTICALVOLUME 4 LOCATE 12 , 3 SPECTRUM16X2