Music time left


In my music widget, how can I show how much time is left at my song?

Gr, Richard

You can display time left by doing

  • Use $mi(len) - mi(pos)$ to show how many seconds are left on the song
  • Use $tf(mi(len) - mi(pos))$ to show an automatic version of the seconds left (ex "2 minutes and 3 seconds")
  • Use $tf(mi(len) - mi(pos), MM:ss)$ to show time left in MM:SS format

That's what I wanted. Great, thanks.