Skip to content

Commit

Permalink
acep: cast offset to int
Browse files Browse the repository at this point in the history
  • Loading branch information
SoulMelody committed Jan 5, 2025
1 parent 9e3b1d4 commit 7684c80
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions libresvip/plugins/acep/ace_studio_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,11 @@ def parse_track(self, ace_track: AcepTrack) -> Optional[Track]:
):
track = InstrumentalTrack(
audio_file_path=ace_track.patterns[0].path,
offset=int(ace_track.patterns[0].pos)
if self.content_version < 7
else self.synchronizer.get_actual_ticks_from_secs(ace_track.patterns[0].pos),
offset=int(
ace_track.patterns[0].pos
if self.content_version < 7
else self.synchronizer.get_actual_ticks_from_secs(ace_track.patterns[0].pos)
),
)
elif isinstance(ace_track, AcepVocalTrack):
track = SingingTrack(
Expand Down

0 comments on commit 7684c80

Please sign in to comment.