Welcome Guest

Pages: 1
Sample Rate not available
a2jimenezPostMay 10, 2020, 12:17
Newbie
Posts: 2
Registered:
October 4, 2019, 18:18
Normal topicSample Rate not available

Hi,

A newbie question, I am trying to add "sample rate" to the folder name. I am doing the following:
"get property Sample Rate (Hz) -> Variable 0"

in the renaming function, I am doing the following:
❨IfExists Disc❩
    ❨Disc Pad2❩·
❨endIf❩
❨Track Pad2❩·-·❨Title❩

❨Folder Start❩

❨Album❩·-·
❨IfExists Album Artist❩
    ❨Album Artist❩·-·
❨endIf❩
·(❨Year❩)·[
❨IfExists Custom 8❩
    ❨Custom 8❩·-·
❨endIf❩
❨File Type❩·❨Variable 0❩]

But nothing gets returned on "Variable 0". Is there something I am missing to get that value?

thanks,

AJ

2MR2PostMay 10, 2020, 12:51
Avatar photo
Administrator
Posts: 2084
Registered:
August 23, 2012, 19:27
Normal topicRe: Sample Rate not available

I've duplicated your scenario: (Except I do not have a Custom Field named Custom Field 8 so I substituted Opus:

❨IfExists Disc❩
    ❨Disc Pad2❩
❨endIf❩
❨Track Pad2❩·-·❨Title❩

❨Folder Start❩

❨Album❩·-
❨IfExists Album Artist❩
    ❨Album Artist❩·-·
❨endIf❩
❨Year❩·-·
❨IfExists Opus❩
    ❨Opus❩·-
❨endIf❩
❨File Type❩·❨Variable 0❩

My action is:

Get Property Sample Rate (Hz) -> Variable 0
Rename Files (test)

It works for me:

The original path was:

.../Desktop/test/Sands of Nevada.ape

and it became:

.../Desktop/Sailing to Philadelphia -Mark Knopfler - 2005 - APE 44100/0113 - Sands of Nevada.ape

One possible problem is that the folder metadata is not the same for every track in the folder. The net effect of that is that the folder will be renamed each time the metadata changes.

2MR2PostMay 10, 2020, 12:54
Avatar photo
Administrator
Posts: 2084
Registered:
August 23, 2012, 19:27
Normal topicRe: Sample Rate not available

I did miss the [ ] but they do not change anything.

a2jimenezPostMay 18, 2020, 09:46
Newbie
Posts: 2
Registered:
October 4, 2019, 18:18
Normal topicRe: Sample Rate not available

Thanks! I couldn't see all the fields populated in the preview of the task and assumed it wouldn't work but It does.

AJ

2MR2PostMay 18, 2020, 10:01
Avatar photo
Administrator
Posts: 2084
Registered:
August 23, 2012, 19:27
Normal topicRe: Sample Rate not available

The next release will support Sample Rate as a token in Rename templates.

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.018 seconds.