Hi,
I am trying to do some conditional processing based on Loudness data but am running into problems most likely based on variable types.
stage one = Loudness analyzer - saves into styring variables
stage two = Conditional, based on the loudness data I would like to move files to different folders
I think the problem is that loudness analyzer is writing to string variables, and the conditional is looking for integers to compare values (above below certain values). Can this be solved in some way?
Regards
Robert
Loudness, string values and conditional handling
Re: Loudness, string values and conditional handling
Hi Robert,
congrats, you were already on a good way assuming Problems with the string!
The string variable for a loudness value Looks like this after it was filled by the loudness analyzer processor:
To use the conditial node e.g. for a ">" comparison to a value on the right side like "-21" (without the quotes), you can use functions like that:
Note that the "1" on the Right side means that we compare to the first number in the Array of numbers.
congrats, you were already on a good way assuming Problems with the string!
The string variable for a loudness value Looks like this after it was filled by the loudness analyzer processor:
Code: Select all
[-70.0,-70.0]
Code: Select all
$readarray($jsonencode("%s_loudness_levels%"),1)
emcodem, wrapping since 2009 you got the rhyme?
Re: Loudness, string values and conditional handling
This is great, thanks, will try this!!!