Small bug in Juce Demo Plugin


#1

Hello
While validating the VST Time info in our DAW, I tried the Juce Demo plugin and figured out that the time code display is wrong in the plug-in editor (timeToTimecodeString function) and adds one extra hour every 5 min:

return String::formatted ("%02d:%02d:%02d.%03d",
                          millisecs / 360000, 
                          (absMillisecs / 60000) % 60,
                          (absMillisecs / 1000) % 60,
                          absMillisecs % 1000);

should be:

   return String::formatted ("%02d:%02d:%02d.%03d",
                          millisecs / 3600000, 
                          (absMillisecs / 60000) % 60,
                          (absMillisecs / 1000) % 60,
                          absMillisecs % 1000);

Cheers
Fred


#2

Yep, thanks for reporting.

I’ll fix that today.