Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Commit

Permalink
Fix incorrect frames to MSF/HMSF conversion
Browse files Browse the repository at this point in the history
Tagged a new release (v0.4.1) too.

Signed-off-by: JoeLametta <[email protected]>
  • Loading branch information
JoeLametta committed Dec 5, 2019
1 parent 928cc3d commit 884c9f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ carefully mimics EAC's generated ones (except for the checksum).
The logger should be feature complete so future development will consist
mainly of bugfixes.

If you're looking for the analogous [whipper](https:/whipper-team/whipper) plugin,
If you're looking for the analogous (legacy) [whipper](https:/whipper-team/whipper) plugin,
it can be found [here](https:/whipper-team/whipper-plugin-eaclogger).

## License
Expand Down
2 changes: 1 addition & 1 deletion eaclogger/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.0'
__version__ = '0.4.1'
8 changes: 4 additions & 4 deletions eaclogger/logger/eac.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def _framesToMSF(self, frames):
f = frames % common.FRAMES_PER_SECOND
frames -= f
s = (frames / common.FRAMES_PER_SECOND) % 60
frames -= s * 60
frames -= s * common.FRAMES_PER_SECOND
m = frames / common.FRAMES_PER_SECOND / 60
return "%2d:%02d.%02d" % (m, s, f)

Expand All @@ -32,9 +32,9 @@ def _framesToHMSF(self, frames):
f = frames % common.FRAMES_PER_SECOND
frames -= f
s = (frames / common.FRAMES_PER_SECOND) % 60
frames -= s * 60
m = frames / common.FRAMES_PER_SECOND / 60
frames -= m * 60
frames -= s * common.FRAMES_PER_SECOND
m = (frames / common.FRAMES_PER_SECOND / 60) % 60
frames -= m * common.FRAMES_PER_SECOND * 60
h = frames / common.FRAMES_PER_SECOND / 60 / 60
return "%2d:%02d:%02d.%02d" % (h, m, s, f)

Expand Down

0 comments on commit 884c9f7

Please sign in to comment.