INTERACT FORUM

Please login or register.

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

Author Topic: Conditional filter inside group  (Read 783 times)

sirkus

  • World Citizen
  • ***
  • Posts: 121
Conditional filter inside group
« on: October 19, 2020, 11:56:16 am »

I can't find a way to filter stereo tracks if group (album or folder path) contains both stereo and multichannels tracks (sacd)?
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Conditional filter inside group
« Reply #1 on: October 19, 2020, 12:35:08 pm »

The [Channels] field indicates the number of channels in the track.  You can create or modify a view based on that field.

Read Marko's excellent tutorial on how to customize a view:
https://yabb.jriver.com/interact/index.php?topic=68960.0
Logged

sirkus

  • World Citizen
  • ***
  • Posts: 121
Re: Conditional filter inside group
« Reply #2 on: October 20, 2020, 04:28:46 am »

My view is grouped only by albums, by default. I want to apply filter (hide stereo) only in group (album) if group (album) contains both stereo and multi channels. This means that stereo albums will be displayed as is and multi channels albums will hide stereo tracks, all in the same view.
I can sort by channels, but I can't hide by channels.


Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Conditional filter inside group
« Reply #3 on: October 20, 2020, 12:23:44 pm »

It can still be done.

Create an additional field called [AlbumChannels].  Set this to multi for every track in albums that contain any multichannel tracks.  (There's even a clever way to do this automatically using an expression with GroupSummaryQuery that I leave as an exercise for the reader.)

Now use the set files to include option in your view, as follows:

The rules would be:
All files where AlbumChannels is empty
 OR
All files where AlbumChannels is multi AND channels > 2

That's the plain English version. I assume you can translate that into the search language and can use the necessary grouping operators.

A lot of people avoid this problem by treating the stereo and multichannel versions of an album as separate versions of the album, instead of as a single version as you have done.
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: Conditional filter inside group
« Reply #4 on: October 20, 2020, 04:22:51 pm »

With panes view one can also create toggles with "search list".

So you can create search lists named "Show Multichannel" / "Show Stereo
There should be an example of this concept at least with "duplicate finder" view template if you do the search here
https://yabb.jriver.com/interact/index.php/topic,103098.msg728276.html#msg728276

E: panel ==> panes
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Conditional filter inside group
« Reply #5 on: October 20, 2020, 04:40:56 pm »

With panel view one can also create toggles with "search list".

lepa, are you talking about Panel, the web-based interface?  Or did you mean a panes view, using a search inside one of the panes?  If using the panes view, you could filter directly on the [AlbumChannels] field, making a search unnecessary.  I took the OP's request to be that he wanted something in the standard interface.
Logged

sirkus

  • World Citizen
  • ***
  • Posts: 121
Re: Conditional filter inside group
« Reply #6 on: December 27, 2020, 01:24:54 pm »

After I have spent some time on this one, it still displays stereo tracks in a multichannel album/folder. My settings:

[AlbumChannels]=Math(Round(RemoveCharacters(GroupSummary(Channels), avg)))


And, I'm not sure how to set the group targeted by GroupSummary(). The group changes if I click on a single album/folder or if I click on a folder that contains many albums/subfolders.
Logged

wer

  • Citizen of the Universe
  • *****
  • Posts: 2640
Re: Conditional filter inside group
« Reply #7 on: December 27, 2020, 01:30:45 pm »

Just set your AlbumChannels tag manually and get your view right. You have to walk before you can run.
Logged

sirkus

  • World Citizen
  • ***
  • Posts: 121
Re: Conditional filter inside group
« Reply #8 on: December 27, 2020, 01:46:18 pm »

I could, but, I have ripped all my classical SACD boxsets and I have more than enough steps for a single rip...

Edit: Anyway, Thanks for your help so far, I'm learning things...
Logged
Pages: [1]   Go Up