INTERACT FORUM

Please login or register.

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

Author Topic: Limiting track length in Smartlist  (Read 1139 times)

Araj

  • World Citizen
  • ***
  • Posts: 190
Limiting track length in Smartlist
« on: March 06, 2018, 07:30:56 am »

I would like to create smartlists in which the length of the individual tracks is limited to a certain time.

Is there a way to do this? The only way that I've found to roughly limit the length of tracks is to limit the file size, but that's pretty unreliable in terms of actual play time, since I have files in various formats / bit rates
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10935
Re: Limiting track length in Smartlist
« Reply #1 on: March 06, 2018, 07:40:21 am »

Can't you simply check for the [Duration] field in the smart list? If you compare against [Duration,0] you get the plain value in seconds, and you can add your own limit there.
Logged
~ nevcairiel
~ Author of LAV Filters

Araj

  • World Citizen
  • ***
  • Posts: 190
Re: Limiting track length in Smartlist
« Reply #2 on: March 06, 2018, 07:50:23 am »

Indeed I can. Totally missed that. Must be having a bad day.
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Limiting track length in Smartlist
« Reply #3 on: March 06, 2018, 07:52:42 am »

you want

isequal([Duration],desired length in seconds, 3)

which will give you less than the desired length in seconds.  we all miss this stuff all the time, there's enough things in life to remember

Logged
Pages: [1]   Go Up