More > JRiver Media Center 32 for Mac

Expression for cases

<< < (3/4) > >>

lepa:
I think you should first think ALL the rules you want to apply and after that start to think how to achieve that because solution probably will be different depending on what the rules are
Current dilemma probably something like this could do it:

--- Code: ---listbuild(1,if(isempty([conductor][orchestra]),/ •/ ,/:/ ),listbuild(1,/,/ ,[soloist], [conductor]), listbuild(1,/,/ ,[orchestra],[choir]))
--- End code ---

one new nested listbuild to handle right side: orchestra & choir
and then if statement to choose correct delimiter depending on conductor & orchestra: colon or ball

EnglishTiger:

--- Quote from: lepa on February 19, 2024, 09:23:46 am ---I think you should first think ALL the rules you want to apply and after that start to think how to achieve that because solution probably will be different depending on what the rules are

--- End quote ---

The OP shouldn't just "think ALL the Rules he wants to apply" he needs to switch from Reactive mode into Proactive mode by sitting down with pencil, paper and everything he knows, or has available, about his Classical Music Collection because before too long he may well find the ideas/rules outlined above will constantly need rewriting as they only cover a few of the possible combinations of:
Conductor, Orchestra; Soloist and Chorus/Choir; although I have used the term "choir" it doesn't take too much lateral thinking to realise the existing MC "Chorus" Tag can be used to hold the name of a "Choir".  Plus he needs to deveop a rule that ensures that any manipulation of existing tags is restricted to only happening with tracks that are recognizable as "Classical Music".

While trawling thru the almost 15,400 classical music tracks in my own collection I encountered multiple instances of:-
Orchestra/Ensemble only
Conductor + Orchestra
Conductor + Orchestra + 1 or more Instrumental Soloist
Conductor + Orchestra + 1 or more Vocal Soloist
Conductor + Orchestra + 1 or more Choir/Chorus
Conductor + Orchestra + 1 or more Instrumental Soloist + 1 or more Vocal Soloist
Conductor + Orchestra + 1 or more Instrumental Soloist + 1 or more Choir/Chorus
Conductor + Orchestra + 1 or more Vocal Soloist + 1 or more Choir/Chorus
Conductor + Orchestra + 1 or more Instrumental Soloist + 1 or more Vocal Soloist + 1 or more Choir/Chorus
1 or more Instrumental Soloist
1 or more Instrumental Soloist + 1 or more Vocal Soloist
1 or more Instrumental Soloist + 1 or more Choir/Chorus
1 or more Instrumental Soloist + 1 or more Vocal Soloist + 1 or more Choir/Chorus.

zybex:
What about just color coding?  ;D


--- Code: ---listbuild(1,/ •/ ,
  if([soloist],<font color=#FF0000>[Soloist]<//font>,),
  if([conductor],<font color=#00FF00>[conductor]<//font>,),
  if([orchestra],<font color="#0000FF">[orchestra]<//font>,),
  if([choir],<font color=#FF00FF>[choir]<//font>,),
  if([cleaning lady],<font color="#FF8040">[cleaning lady]<//font>,)
)
--- End code ---

Anne-Sophie Mutter • Herbert von Karajan • Berlin Philharmonic • Thomanerchor Leipzig • Consuela De La Morrela

lepa:
I would just give up classical  ;D ::) :P

EnglishTiger:

--- Quote from: zybex on February 20, 2024, 11:39:34 am ---What about just color coding?  ;D

--- End quote ---


--- Quote from: lepa on February 20, 2024, 11:43:08 am ---I would just give up classical  ;D ::) :P

--- End quote ---

I just stuck to making better use of the existing tags/fields and then with the help of Wer creating MC's 1st TrackInfo Plugin that was designed to handle Classical music in a better way.  ;D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version