I have a TOC already made, using separate wave files for each track. I'd like to apply the track timings implicitly specified by the separate files to a new TOC, this time using a monolithic wave file and breaking it up nondestructively in the TOC.
So I plan to use the '<start> <length>' format of the FILE command in the TOC to cut the file. I figure I can get the values for them from the output of "cdrdao show-toc old_toc.toc", then plug them into the new toc file.
Of course, I ran into trouble, since the values displayed there is the end of each track over the disc as a whole, not its discrete length. So I figure I can subtract the value for END from each track from the value for START of the next, to get the length of the track.
Problem is, it's impractical to add and subtract values in the MSF format, and I don't really understand that format anyway. And, although it's possible to easily subtract the values displayed in brackets after the MSF value, there seems to be no way to specify lengths in terms of these in the TOC.
So what I'm asking is, is there a way to translate the value in brackets after the MSF to a value in samples or MSF? That would allow me to perform the calculation with those values, then convert them to a TOC-readable MSF or sample value when I'd finished.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey.
I have a TOC already made, using separate wave files for each track. I'd like to apply the track timings implicitly specified by the separate files to a new TOC, this time using a monolithic wave file and breaking it up nondestructively in the TOC.
So I plan to use the '<start> <length>' format of the FILE command in the TOC to cut the file. I figure I can get the values for them from the output of "cdrdao show-toc old_toc.toc", then plug them into the new toc file.
Of course, I ran into trouble, since the values displayed there is the end of each track over the disc as a whole, not its discrete length. So I figure I can subtract the value for END from each track from the value for START of the next, to get the length of the track.
Problem is, it's impractical to add and subtract values in the MSF format, and I don't really understand that format anyway. And, although it's possible to easily subtract the values displayed in brackets after the MSF value, there seems to be no way to specify lengths in terms of these in the TOC.
So what I'm asking is, is there a way to translate the value in brackets after the MSF to a value in samples or MSF? That would allow me to perform the calculation with those values, then convert them to a TOC-readable MSF or sample value when I'd finished.