INTERACT FORUM

Please login or register.

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

Author Topic: "Play Expression Expression" ?  (Read 891 times)

cochinada

  • World Citizen
  • ***
  • Posts: 240
"Play Expression Expression" ?
« on: February 06, 2024, 03:07:38 pm »

Hello good people!

My Standard View is not working as I designed it.
This is what I defined:


These are the respective Expressions and the View I get for each step:

1)
File Group Location (OK)


2)
Expression (OK)

if(IsEqual([File Group Location], Various Composers, 8 ),
if(IsEmpty([Disc #]), filefolder(), if(IsEqual(filefolder(,3 ), Various Composers, 8 ), filefolder(,2), filefolder(,1))),
Extract(6, Mid([FileName (path)], 46, -1), //, //)
)


3)
Expression (NOT OK!!!)

if(IsEqual([File Group Location], Various Composers, 8 ),
if(IsEmpty([Disc #]), filefolder(), if(IsEqual(filefolder(,3 ), Various Composers, 8 ), filefolder(,1), filefolder())),
if(IsEmpty([Disc #]), [Album], if(IsEqual (filefolder(,3 ), [Composer], 8 ), filefolder(,2), filefolder(,1)))
)


what is this nonsense Play Expression Expression with a 0 and a 1 instead of the expected Album names???

4)
Expression (NOT OK!!!)

if(IsEqual([File Group Location], Various Composers, 8 ),
filefolder()),
if(IsEmpty([Disc #]), [Album], if(IsEqual (filefolder(,3 ), [Composer], 8 ), filefolder(,1), filefolder()))
)


Again I have Play Expression with a 0...

5)
Expression (NOT OK!!!)

filefolder()


finally I should see here only the CDs belonging to "Brahms - The Masterworks" but I see other albums mixed as well.

My entire disc structure for Classical Music has a maximum of 5 sub-folders before the audio files.
All the files are organized similar to one of these examples below:

a)
[A-D]/Bach, Johann Sebastian/Complete Works Haenssler/VOL 01 Kantaten/CD2 - Cantatas BWV 4-6

b)
[E-M]/Liszt, Franz/Complete Piano Music - Leslie Howard/Vol 01 - The Waltzes

c)
[E-M]/Liszt, Franz/Bryon Janis Plays Lizst Concertos & Encores

d)
(Various Composers)/[Jordi Savall] CHRISTOPHORUS COLUMBUS - Paraísos Perdidos (SACD)/Disc 1/5.0

e)
(Various Composers)/[Ensemble Organum] Carmina Burana - Le Mystère de la Passion/CD1

f)
(Various Composers)/[Anonymous 4]/la bele marie

NOTE:
All multiple albums or compilations have always a Disc#. The only cases where Disc# is empty are for single Albums like in c) and f)
The path before the File Group Location on disc is common to all:
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2616
Re: "Play Expression Expression" ?
« Reply #1 on: February 06, 2024, 04:50:54 pm »

Quote
3) Expression (NOT OK!!!)

if(IsEqual([File Group Location], Various Composers, 8 ),
if(IsEmpty([Disc #]), filefolder(), if(IsEqual(filefolder(,3 ), Various Composers, 8 ), filefolder(,1), filefolder())),
if(IsEmpty([Disc #]), [Album], if(IsEqual (filefolder(,3 ), [Composer], 8 ), filefolder(,2), filefolder(,1)))
This is caused by an extra space after the "isequal " - because of this, it's not parsed as a valid function.

Quote
4) Expression (NOT OK!!!)

if(IsEqual([File Group Location], Various Composers, 8 ),
filefolder()),
if(IsEmpty([Disc #]), [Album], if(IsEqual (filefolder(,3 ), [Composer], 8 ), filefolder(,1), filefolder()))
)

There's again an extra space, and also an extra parenthesis on the second line. The fixed expression is:
Code: [Select]
if(IsEqual([File Group Location], Various Composers, 8 ), filefolder(),
if(IsEmpty([Disc #]), [Album],
if(IsEqual(filefolder(,3 ), [Composer], 8 ), filefolder(,1),
filefolder())))

Boa sorte!
Logged

cochinada

  • World Citizen
  • ***
  • Posts: 240
Re: "Play Expression Expression" ?
« Reply #2 on: February 06, 2024, 05:04:20 pm »

You are a genius Sir! I can't tell you how much time I have looked at this but not in one million Years I would imagine a space after the IsEqual was so crucial!
I find it very hard to find all the matching parentheses which is likely why I made the other mistake as well.
Everything looks great now but it's very late here and I need to do some checks to validate everything tomorrow with time.
Thank you so much!!!

I see you can also speak Portuguese  ;D
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2616
Re: "Play Expression Expression" ?
« Reply #3 on: February 06, 2024, 05:08:59 pm »

You're welcome, há que ser solidário com os compatriotas ;)
Zelda's syntax highlighting really helps to find these issues.
 
Logged

cochinada

  • World Citizen
  • ***
  • Posts: 240
Re: "Play Expression Expression" ?
« Reply #4 on: February 06, 2024, 05:14:50 pm »

Não esperava encontrar um compatriota por aqui  :D

This ZELDA is completely new to me. I will definitely try to play with it! Does it work with Linux?
Many thanks again!
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2616
Re: "Play Expression Expression" ?
« Reply #5 on: February 06, 2024, 05:37:22 pm »

It's Windows only. Maybe it works with Mono under Linux, but I haven't tested.
Logged

cochinada

  • World Citizen
  • ***
  • Posts: 240
Re: "Play Expression Expression" ?
« Reply #6 on: February 07, 2024, 01:38:36 pm »

Hi!

I'm reviewing many Albums and would like to do a slight modification but am not exactly sure how to do it.

I want to modify this expression to show me "CD1 - <album title>" instead of plain "CD1":

Code: [Select]
if(IsEqual([File Group Location], Various Composers, 8),
if(IsEmpty([Disc #]), filefolder(), if(IsEqual(filefolder(,3), Various Composers, 8), filefolder(,1), filefolder())),
if(IsEmpty([Disc #]), [Album], if(IsEqual(filefolder(,3), [Composer], 8), filefolder(,2), filefolder(,1)))
)

Consider this example:

filefolder(,2)               filefolder(,1)                                                                             filefolder()
(Various Composers)   [Ensemble Organum] Carmina Burana - Le Mystère de la Passion  CD1
(Various Composers)   [Ensemble Organum] Carmina Burana - Le Mystère de la Passion  CD2
(Various Composers)   [RICHTER] Complete Decca-Philips-DG Recordings                       CD01
(Various Composers)   [RICHTER] Complete Decca-Philips-DG Recordings                       CD02

So, instead of filefolder() which can sometimes be equal to "CD1" something like filefolder()&[Album] ?
I don't know if & is the equivalent to concatenation of strings...

Just seeing CD1, CD2, etc doesn't give me any clue about what the CDs are. Some could be Symphonies, others Concertos, you get the picture...
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2616
Re: "Play Expression Expression" ?
« Reply #7 on: February 07, 2024, 03:57:32 pm »

It's just "filefolder() - [Album]". Fields and function results are just replaced into the string.
Logged

cochinada

  • World Citizen
  • ***
  • Posts: 240
Re: "Play Expression Expression" ?
« Reply #8 on: February 07, 2024, 04:31:06 pm »

Thanks. With or without " ?
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2616
Re: "Play Expression Expression" ?
« Reply #9 on: February 07, 2024, 04:53:14 pm »

Do you want them there? :)
Logged

cochinada

  • World Citizen
  • ***
  • Posts: 240
Re: "Play Expression Expression" ?
« Reply #10 on: February 07, 2024, 05:16:51 pm »

Nope  ;D
Logged
Pages: [1]   Go Up