1

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?

oguz ismail
  • 1
  • 16
  • 47
  • 69
hippie
  • 649
  • 3
  • 9
  • 18

1 Answers1

2

Each minute contains 60 seconds (obviously); each second contains 75 frames; and each frame contains 588 samples.

So the calculation would be something like this...

offset = ((((minutes * 60) + seconds) * 75) + frames) * 588
LukeH
  • 263,068
  • 57
  • 365
  • 409
  • I think this calculation is slightly off- it should be `((((60 * minutes) + seconds) * 75) + frames) * 588` – sbooth Sep 03 '11 at 23:41
  • @sbooth: Thanks, you're right. I can't believe that this answer has been sitting here for almost a year without me -- or anybody else -- noticing that the calculation was off. I've edited to fix. – LukeH Sep 04 '11 at 00:57