Page 1 of 1

Any suggested Music Format?

Posted: 26 Feb 2019, 17:59
by Hercules40
I am trying to figure out HOW to rename my music files.

I picked this format:

Code: Select all

{n}/{album+'/'}{pi.pad(2)+'. '} {t}
But it gives me inconsistent results within the same Album:
/Boston/We're Ready
vs.
Boston/04. Cool the Engines
Should I be using ID3 tags for matching?

Can you point me to a music format I can "borrow" from someone?

I have multiple music files, across itunes purchased, ripped from my CDs, downloaded from legit sources (like my brother-in-laws website -- he's an artist), on USB sticks, on CDs as MP3s, an old iPod even, etc.

I want to end up with one DRIVE full of music, organized by category, musician, album, etc.

How do I proceed to generate the necessary renaming format I can use across all my media?

Re: Any suggested Music Format?

Posted: 27 Feb 2019, 03:18
by rednoah
1.
ID3 tags will give you more consistent results, assuming that the ID3 tags are consistent.


2.
The Format Editor has a number of built-in formats you can just select. The one you've got already looks good to me.


3.
It's your format. Different people organize their files differently, especially the corner cases.

You can try this to get started:

Code: Select all

M:/Music/
{any{genre}{'No Genre'}}/
{any{n}{'No Artist'}}/
{any{album}{'No Album'}}/
{pi.pad(2)+'. '}{t}

Re: Any suggested Music Format?

Posted: 27 Feb 2019, 22:58
by Hercules40
rednoah wrote: 27 Feb 2019, 03:18 1.
ID3 tags will give you more consistent results, assuming that the ID3 tags are consistent.


2.
The Format Editor has a number of built-in formats you can just select. The one you've got already looks good to me.


3.
It's your format. Different people organize their files differently, especially the corner cases.

You can try this to get started:

Code: Select all

M:/Music/
{any{genre}{'No Genre'}}/
{any{n}{'No Artist'}}/
{any{album}{'No Album'}}/
{pi.pad(2)+'. '}{t}
Man, you're awesome and I appreciate you for it.

Can you point me to where I can find expressions such as "genre" and their definition? Is "genre" a defined variable in your code?

The reason I'm asking, I'd like to know what this means:

Code: Select all

{any{genre}{'No Genre'}}
What does "any" mean? What does it do?
What does " ' No Genre ' " mean? What does it do?

Can I use "genre" without "any"? -- BTW, when I tried that it told me I had a syntax error?

When I run the code "any", it give me 4 and sometimes five music genres! It even gave me this gem: "hardrock;Hard Rock". How can I fix that?

Thank you so much for your awesome product? I am hoping to soon be able to give an additional donation on top of having purchased the program.

Re: Any suggested Music Format?

Posted: 28 Feb 2019, 04:32
by rednoah
1.
You can check the built-in binding explorer to see commonly used bindings and values for a particular file:
viewtopic.php?f=5&t=4285


2.
Not all files have a "category". What happens if "category" is undefined? Well, we default to "No Genre" in this particular example.


3.
Well, you can always make sure that files are nicely tagged before hand. If the tag says "hardrock;Hard Rock" then that's the value you get. How can you fix it? First consider what a fix looks like? Do you want the first word before the ";" which is hardrock? Yes? Maybe net? The second / last word? In this case maybe ok, but what about other files?

You can fix it, but you'll need to be able to precisely express that fix in Groovy code. ;)

e.g. this might work for you:

Code: Select all

{genre.tokenize(';').first()}