Hmmm ok, so basically the file has the following contents
<Note time="2.0" duration="0.0" track="3" >
</Note>
<Note time="3.0" duration="0.0" track="1" >
</Note>
<Note time="5.5" duration="0.0" track="2" >
</Note>
<Note time="6.5" duration="0.0" track="4" >
</Note>
But funny thing is, sometimes it does read the file, and is able to load up the beat bars. But anyway the values for noteTime is not of an integer value. But is it even possible to cast total_secs into integer?
You're typecasting it into an integer, so if the note time is something 2.0, 3.0 etc, it will load the bar, but when it's end with something different then x.0 it will fail.
Your best bet is to work with something else then seconds.
as miliseconds ingame will never be the same (because of the 16 frames per second loop).
What i would do, is track seconds by adding a variable with +1 every frame, and dividing that by 16.
Then base the timing on seconds.framenumber(1-16).
regards,