tags:

views:

9

answers:

1

Hi, I have a cuesheet from EAC and a FLAC file with the full album in. Im trying to make a little python script to play the file, there for i need to be able to set the position where to start in the flac file.

How do i get from the CueSheet format MM:SS:FF to samples?

A: 

Each minute contains 60 seconds (obviously); each second contains 75 sectors; each sector contains 98 frames; and each frame contains six samples.

So the calculation would be something like this...

offset = ((((minutes * 60) + seconds) * 75 * 98) + frames) * 6
LukeH
great thanks a lot
hippie