cybercase / webminidisc

Upload your Music to NetMD MiniDisc devices thanks to WebUSB and WASM
GNU General Public License v2.0
306 stars 88 forks source link

Help with TOC Editing for Gapless Playback #109

Open kai-h opened 1 year ago

kai-h commented 1 year ago

I'm after some help please with editing a TOC to achieve gapless playback. I have confirmed that if I combine all tracks of an album, and then record to MD in SP or LP2 (LP4 not tested, but assumed to work) that I can then edit the disc to split the tracks on my deck, and the entire album will play back with no gaps, however small, between tracks.

In order to help me set the split points, I have created a spreadsheet that converts the track length times (given in minutes and seconds to two decimal places) into minutes, seconds and MD frames (each ~1/86th of a second). I calculate the actual frame to be used when editing SP discs, and round the frame to an even number for editing LP2 discs.

Here's the spreadsheet, you can view online and save a copy if you want to use it for yourself https://automaticaau-my.sharepoint.com/:x:/g/personal/kai_automatica_com_au/EW0xuTPwGRVCh2erKg7gVQ4BGxc3OaWtgirC3i3RFw3Tlg?e=OaSeQT

Now, my question is: When editing the TOC, how can I split a single track into two tracks? With some tweaking, I'm sure I can update my spreadsheet to give me the split times as cluster.sector.group in hex, but I don't know how to split a track to begin with.

Or, is there some way I can write a new TOC and dump that back to the MD? Using a Type-S portable and I'm able to download the TOC to my computer, but it's a binary file and I don't know how to even begin looking at it in any meaningful way, let alone editing it.