'Length' tab > minutes and seconds

Hello....
I've just today updated to the latest version of the excellent MP3 TAG (64-bit) version

However, for some time now, I've had a a minor irritation with DISPLAY OF TRACK TIME ie under 'Length' tab

I want to lose the 'leading zero' so that, say, 04:06 > 4:06

Right-clicking 'Length' > Customize Columns: in the 'Value' box at the right, the default is: %_length%

I'm assuming that will have to change but to what exactly?

Can anyone help?

Many thanks

If you use %_length% as is, then the definition from the documentation

applies:
%_length% Length (formatted)
If you do not like that, you would have to create your own format string.
It is up to you to determine if loosing that leading zero is worth the effort.

Hi ohrenkinko..

Thanks for the prompt reply. :slightly_smiling_face:

However I can't see any format string in the 'Documentation' link you posted that would help me 'create' what I want.
Any other suggestions welcome...

Many thanks

The linked documentation referred to the definition of _LENGTH.
There is no readymade format string.
You would have to create your own formatting if you do not want to take the existing formatted time.
I would think it would require the length in seconds to be divided and separated into minutes and seconds and format each part indivdually

Are you looking for something like this:

The mathematical formula for the field Value would be something like this for the HH (hours):MM (minutes):SS (seconds).
$ifgreater($div(%_length_seconds%,3600),0,$div(%_length_seconds%,3600):,)$ifgreater($div($mod(%_length_seconds%,3600),60),0,$div($mod(%_length_seconds%,3600),60):,)$mod($mod(%_length_seconds%,3600),60)

The problem will be to find a solution for the wanted(?) zero for the minutes and/or seconds like in the above example for 3:07

Try this: $trimLeft(%_length%,0)
But you may not like what the result is for tracks shorter than 1 minute.

You could further enhance this with some IF conditions to check the raw track length to decide when to trim or not. Lots of options to get the display as you prefer.

As always there is more than one way to skin a cat.
$num(%_length%,1):$right(%_length%,2)

That works for tracks up to 59 minutes.
But anyway, I think anything without the leading zero in front looks odd.

Or, as there are so many ways to skin this cat:
$regexp(%_length%,^0,)

Hi again...many thanks to all for taking time to reply. Much appreciated.

For 'ryerman': your suggestion worked perfectly, though with a small, rather than capital 'L' on 'Left' :slightly_smiling_face:

So: '$trimleft(%_length,0)

As for MP3 tracks of LESS than one minute...well, that would be extremely unlikely to happen for my music taste anyway.

Regarding absence of 'leading zero's looking 'odd':

I take the opposite view. Leading zeros for music tracks are just so unnecessary.
Far cleaner to show '4.06' than '04.06' which in my view just looks 'untidy', no matter how techhnically accurate on a 24hr clock. :grinning:

That said, I've quite a few tracks that reach above '10'...as in 11.06, say.
Now that IS a necessary leading number to give clarity on!

For 'ohrenkino': despite above, having a string to show tracks LESS than one minute is at least useful to know, so thanks again for that. Same with MotleyG...on 'IF' conditions...

Whatever your view, the central point to agree on is: MP3 TAG is a great resource for us all, as is the chance to share help and views on its usage.

Regards