home *** CD-ROM | disk | FTP | other *** search
- FIT version 1.0 12/18/91
-
- WHAT IT IS
-
- FIT is a program determine a list of songs that will fit on a
- tape. In attempting to record songs on a cassette, it is not
- unusual to have too much space on one side and a truncated song
- on the other. Manually trying to figure out which songs to put
- where quickly becomes a difficult task, but one ideally suited
- for a computer.
-
- WHAT IT DOES
-
- The program accepts a file with song durations and titles plus
- some information about max and min acceptable times and
- generates another file with the titles that fit. It will ask
- if you wish to continue, and if there are songs left from the
- first pass, it will produce a second file with a listing for
- the next side. This process continues until all songs are
- accounted for.
-
- A word about max and min acceptable times: The max time is
- just that - the maximum time you will accept. For a
- 45 minute tape, you should set this to 44:00 to 44:30 to
- account for the delays between songs. The min time is the
- least amount of time you will accept. While the max and min
- may be set equal, the only combination that would be acceptable
- would be a combination of songs whose duration was EXACTLY
- equal to the max. In most cases this would require the program
- to examine ALL combinations, a process which, on a 4.77 mHz XT
- might take a while. It is generally recommended that a min time
- slightly less than the max, say 30 seconds to a minute be set.
-
- If the program does not find a combination that will fit in the
- min to max window, it will produce a listing representing the
- combination having the longest time without exceeding the max.
-
- The output files will have the same name as your source file
- with extensions of .000, .001, .002 etc, If a file already
- exists with the name and extension that the program is
- trying to create, that particular extension will be skipped
- and your existing file will not be overwritten.
-
- WHAT YOU WILL NEED
-
- You will need an ascii text file (no control characters) with
- the following format:
-
- The first line of the file must be the max time in mm:ss format.
- The second line must be the min time in mm:ss format.
- Starting with the third line, songs are entered, one per line,
- with the following format:
- mm:ss Title....... to 75 characters.
- Enter "end" at the end of the list.
- All lines must begin in column one. Any line after the max/min
- lines that does not begin with a number is regarded as the end
- of the list.
-
- Please examine the file "RAGS" as an example.
-
- HOW TO USE IT
-
- Run the program with no command line arguments - the program
- will prompt you to enter the name of the source file. After that
- follow the prompts.
-
- Included in the archive is a file, "RAGS" which is a list of songs
- from two albums by the Red Rose Ragtime Band, a group from Chicago
- with a great ragtime sound. Examine the format of this file and
- run the program on it. Try changing the max/min times to see
- the differences in the results.
-
- WHAT YOU GET
-
- After the program runs there will be files with names like
- SRC.000, SRC.001 etc. (assuming that your source file has the
- name "SRC". These are ascii text files that can be viewed or
- printed with LIST or your favorite editor.
-
- WHAT ARE THE LIMITATIONS
-
- This version is limited to 32 titles. That may not seem like
- very many, but do you really have tapes with more than 32 titles?
- The limitation was imposed for two reasons:
- 1) Programming convenience. You have to draw the line somewhere.
- 2) Thirty two titles represents over four billion combinations.
- The simple algorithm used isn't realistic for larger numbers.
-
- This program was initially written for my own amusement and
- convenience. There is only a modest amount of error checking.
-
- TECHNICAL STUFF
-
- FIT is written in assembler and uses a straight forward,
- examine all combinations, algorithm. If anyone has some
- suggestions for a faster one, I would appreciate any
- comments.
-
- WHAT'S IT COST
-
- Nothing. I keep the copyright, you use it for free. Send me
- a post card with comments - pro and con. You are, however, not
- allowed to sell this program or bundle it with other program
- without written permission from the author. You may give it
- to anyone you like, but only in its original form with the
- complete documentation.
-
- LEGAL STUFF
-
- I will not be held liable for any misfortune that may or may not
- happen to you, which may or may not be the result of using or not
- using this program. In other words, the usual disclaimer applies here.
-
- Bob Fehrenbach
- 1460 Church Street
- Wauwatosa, WI 53213
-
- I log on to Exec-PC regularly if you wish to leave a message.
-