< Back to IRCAM Forum

Apparent bug in MubuTrackJS gettime

I have noticed some odd behavior with the gettime method of MubuTrackJS

If I have a track called track and call this:

track.gettime() ;
it does not return an array of timetags but seems to return an Array of indices.

something like the following
returns the correct time tag.

not sure what is going on but there seems to be a bug.

I can’t reproduce the bug. Here everything seems to work. If you have a patch to reproduce the problem can you post it please? Thanks

Here testgettime.zip (2.6 KB) is an example

Hi testcase, you must have figured it out by now, but, for the record, the answer is RTJSM.

for ... in array

iterates over the indices, what you want is

for ... of