You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Open Taiko Chart Information file, both "offset": x and "offset": -x make the first measure abs(x) seconds later than when the audio starts.
For example, both "offset": 2.416 and "offset": -2.416 makes the first measure 2.416 seconds later than when the audio starts.
movieoffset has the expected behavior.
Expected Behavior
"offset": x and "offset": -x should offset the first measure in the opposite direction.
If I interpret the documentation correctly, the equation should be offset = time-point-of-chart-start − time-point-of-audio-beginning.
For example, "offset": 2.416 should make the first measure 2.416 seconds later than when the audio starts, and "offset": -2.416 should make the first measure 2.416 seconds earlier than when the audio starts.
This means that Open Taiko Chart Information offset takes the opposite sign of TJA OFFSET:
For example, "offset": 2.416 in Open Taiko Chart Information would be equivalent to OFFSET:-2.416 in TJA.
After these lines, nowTime will be the time of the first measure, and nowTime - bgmStartChip.Time == offset should be true. However, the fails to be true for the case offset < 0.
Version
Current Behavior
In Open Taiko Chart Information file, both
"offset": x
and"offset": -x
make the first measureabs(x)
seconds later than when the audio starts.For example, both
"offset": 2.416
and"offset": -2.416
makes the first measure 2.416 seconds later than when the audio starts.movieoffset
has the expected behavior.Expected Behavior
"offset": x
and"offset": -x
should offset the first measure in the opposite direction.If I interpret the documentation correctly, the equation should be
offset
=time-point-of-chart-start
−time-point-of-audio-beginning
.For example,
"offset": 2.416
should make the first measure 2.416 seconds later than when the audio starts, and"offset": -2.416
should make the first measure 2.416 seconds earlier than when the audio starts.This means that Open Taiko Chart Information
offset
takes the opposite sign of TJAOFFSET:
For example,
"offset": 2.416
in Open Taiko Chart Information would be equivalent toOFFSET:-2.416
in TJA.See https://github.com/IepIweidieng/TJAPlayer3/blob/gh-pages/tja.md#offset
Test Cases
Metal-Pipe.zip
Edit
Metal-Pipe.tci
to changeoffset
andmovieoffset
.Koioto.offset.and.movieoffset.test.mp4
Possible Solutions
See https://github.com/Koioto/OpenTaikoChart/blob/b6855a3dc635462584344cadb34f0fd1f3f3ff4c/CourseParser.cs#L45-L68.
After these lines,
nowTime
will be the time of the first measure, andnowTime - bgmStartChip.Time == offset
should be true. However, the fails to be true for the caseoffset < 0
.It might be possible to solve by changing line 52
into
The text was updated successfully, but these errors were encountered: