INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Getting the start time of a track in a playlist  (Read 1436 times)

AracornRed

  • Recent member
  • *
  • Posts: 11
Getting the start time of a track in a playlist
« on: September 21, 2013, 06:48:20 pm »

Is it possible to get the starting time of each track in a playlist?  Via an expression perhaps?  So for example:

Code: [Select]
Seq  Name         Duration  *Start time*
1    Track One    2:30      0:00
2    Track Two    3:00      2:30
3    Track Three  2:45      5:30

...and so on.  Thanks in advance for any help. :)
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Getting the start time of a track in a playlist
« Reply #1 on: September 22, 2013, 03:19:17 am »

You can, but the technique is very limited.  a) it works correctly only once every 5 seconds, and b) moving the mouse over the contents of the playlist will destroy the sequence until you refresh the view with F5, limited by (a) above.

Add an expression column with the value:

if(compare(counter(), =, 1), formatduration(0)save([duration,0],dur), formatduration(load(dur))save(math([duration,0] + load(dur)), dur))
Logged
The opinions I express represent my own folly.

AracornRed

  • Recent member
  • *
  • Posts: 11
Re: Getting the start time of a track in a playlist
« Reply #2 on: September 23, 2013, 09:33:16 pm »

Thanks for that.  It is quite odd seeing the times creep up as I mouse over them but it gets the job done!
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: Getting the start time of a track in a playlist
« Reply #3 on: September 23, 2013, 10:03:15 pm »

Indeed, it is peculiar.

Change the expression to this:

   if(compare(CustomData(#), =, 1), formatduration(0)save([duration,0],dur), formatduration(load(dur))save(math([duration,0] + load(dur)), dur))

and it will eliminate the need to wait 5 seconds for the refresh, so item (a) goes away.  Also, mousing out of the file list view area will cause it to refresh properly, or F5 as before.
Logged
The opinions I express represent my own folly.
Pages: [1]   Go Up