INTERACT FORUM

Please login or register.

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

Author Topic: How can i create a field to separate lossy and lossless formats?  (Read 1830 times)

steviewonders

  • Recent member
  • *
  • Posts: 35
How can i create a field to separate lossy and lossless formats?
« on: September 06, 2011, 01:59:30 pm »

Hi. I've looked at the options for creating a custom field but it's much too technical for me. How would i be able to create a field that separates lossy and lossless formats? My audio files are a mixture of flac, wav, wma and mp3 if that's of any relevance. Thanks for any help.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72439
  • Where did I put my teeth?
Re: How can i create a field to separate lossy and lossless formats?
« Reply #1 on: September 06, 2011, 02:02:14 pm »

Welcome to the forum.  Just create a new field.  It will work for any filetype.
Logged

steviewonders

  • Recent member
  • *
  • Posts: 35
Re: How can i create a field to separate lossy and lossless formats?
« Reply #2 on: September 06, 2011, 02:06:06 pm »

What details should i put in the options? I'm trying to get flac and wav grouped in the heading lossless and mp3 and wma under lossy.
Logged

MrC

  • Citizen of the Universe
  • *****
  • Posts: 10462
  • Your life is short. Give me your money.
Re: How can i create a field to separate lossy and lossless formats?
« Reply #3 on: September 06, 2011, 02:32:00 pm »

Start simply; you don't need to create a new field, as you can use existing data.

Create a new expression column in a panes view.  Enter the following as the expression:

   If(Regex([File Type], /#^(flac|wav)$#/), Lossless, Lossy)

It looks for file types flac or wav, and outputs the label Lossless, otherwise it outputs the label Lossy.  Add more lossless types as necessary, each separated by the | character as above.

If you're not sure how to add a new column to a panes view, let us know...
Logged
The opinions I express represent my own folly.

steviewonders

  • Recent member
  • *
  • Posts: 35
Re: How can i create a field to separate lossy and lossless formats?
« Reply #4 on: September 06, 2011, 02:47:16 pm »

Thank you very much!!!! My music library is now organised exactly how i want it.
Logged
Pages: [1]   Go Up