To write a toc file 'new.toc' containing all wav files in a directory enter:
tocgen path-to-directory (or just 'tocgen' for present directory)
To write a toc file 'new.toc' containing specified wav files:
tocgen here_a.wav there_a.wav ... (or tocgen . ../d/track0[1-4]*.wav)
To write a toc file 'some.toc' that breaks 'live.wav' into five minute tracks,
starting 3 seconds into the wav file and ending 45 minutes, 32 seconds, and
41 frames into the wav file enter:
tocgen -t some.toc -w live.wav -i 5:0:0 -s 0:3:0 -e 45:32:41
To append 5 minute tracks to the end of an existing toc file enter:
tocgen -a -t some.toc -w live.wav -i 5:: -s 47:23:05 -e 65:23:09
To write a toc file for 'live.wav' with tracks split at specified points
with 1 and 1/2 second pregaps:
tocgen -p :1:37 -w live.wav (start of first track, e.g. :2:12) 4:23:23 10:43:54 ... (end of last track)
To write toc file from a wav with known track lengths,
starting the first track 3 and 1/3 seconds (25 frames) into 'album.wav':
tocgen -s 0:3:25 -w album.wav 3:40: 5:24: 4:7: ...
(don't forget to account for possible gaps between tunes)
tocgen 0.9b is written in Python and tested on Gnu/Linux with Python 2.0 and (to a lesser extent) Python 1.5.2. It was written with a view toward clarity and not brevity or efficiency (but it's a tiny file that runs in a split second). Also, the classes (TimeMark and Track) were originally separate, so they are slightly more extensive than is necessary for tocgen.
Questions or comments welcome; johns776@pilot.msu.edu or click on name below.
M. Johnson Last modified: Fri Apr 6 11:34:40 EDT 2001