IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
TAGS: Is there a tag for embedded cuesheets?
Chris Norman
post Apr 1 2013, 22:35
Post #1





Group: Members
Posts: 139
Joined: 3-June 05
From: Cluj-Napoca
Member No.: 22498



Hello,

I was just wondering wheather there is a tag which indicates if a file contains an embedded cuesheet.

Any help appreciated,

Thanks.


--------------------
http://www.vonpell.com
Go to the top of the page
+Quote Post
db1989
post Apr 1 2013, 22:47
Post #2





Group: Super Moderator
Posts: 5275
Joined: 23-June 06
Member No.: 32180



In what sense? Cue-sheets are normally stored as a field named CUESHEET, hence %cuesheet% or $meta(cuesheet). There is no native ‘flag’ field that specifies whether the former is present as that would be totally redundant. You can construct such a flag yourself using $if(%cuesheet%,yes,no) in title-formatting syntax or cuesheet PRESENT in query syntax.
Go to the top of the page
+Quote Post
Kohlrabi
post Apr 2 2013, 00:27
Post #3





Group: Super Moderator
Posts: 1113
Joined: 12-March 05
From: Kiel, Germany
Member No.: 20561



QUOTE (db1989 @ Apr 1 2013, 22:47) *
Cue-sheets are normally stored as a field named CUESHEET, hence %cuesheet% or $meta(cuesheet).
No, that is not true, and it doesn't work for embedded CUE sheets.

QUOTE (db1989 @ Apr 1 2013, 22:47) *
There is no native ‘flag’ field that specifies whether the former is present as that would be totally redundant. You can construct such a flag yourself using $if(%cuesheet%,yes,no) in title-formatting syntax or cuesheet PRESENT in query syntax.
That is completely unnecessary, because you don't need to have a dedicated metadata field indicating whether an embedded CUE sheet is present. As per the Title Formatting Reference you can use $info(cue_embedded) or %__cue_embedded% to determine whether the track/file in question has an embedded CUE sheet.

This post has been edited by Kohlrabi: Apr 2 2013, 00:36


--------------------
It's only audiophile if it's inconvenient.
Go to the top of the page
+Quote Post
db1989
post Apr 2 2013, 00:40
Post #4





Group: Super Moderator
Posts: 5275
Joined: 23-June 06
Member No.: 32180



QUOTE (Kohlrabi @ Apr 2 2013, 00:27) *
QUOTE (db1989 @ Apr 1 2013, 22:47) *
Cue-sheets are normally stored as a field named CUESHEET, hence %cuesheet% or $meta(cuesheet).
No, that is not true, and it doesn't work for embedded CUE sheets.
It did work this way with WavPack when I used to use that, and APE if I remember correctly. I presume you’re referring to how FLAC stores cuesheets in a separate frame, in which case, I do apologise for making a misleading over-generalisation.

QUOTE (Kohlrabi @ Apr 2 2013, 00:27) *
That is completely unnecessary, because you don't need to have a dedicated metadata field indicating whether an embedded CUE sheet is present. As per the Title Formatting Reference you can use $info(cue_embedded) or %__cue_embedded% to determine whether the track/file in question has an embedded CUE sheet.
My example existed specifically to avoid having a dedicated field acting as a flag of presence/absence. However, good point on that $info field, which I had forgotten and did not notice on a scan of the Reference when composing my reply.

This post has been edited by db1989: Apr 2 2013, 00:40
Go to the top of the page
+Quote Post
Kohlrabi
post Apr 2 2013, 00:52
Post #5





Group: Super Moderator
Posts: 1113
Joined: 12-March 05
From: Kiel, Germany
Member No.: 20561



QUOTE (db1989 @ Apr 2 2013, 00:40) *
QUOTE (Kohlrabi @ Apr 2 2013, 00:27) *
QUOTE (db1989 @ Apr 1 2013, 22:47) *
Cue-sheets are normally stored as a field named CUESHEET, hence %cuesheet% or $meta(cuesheet).
No, that is not true, and it doesn't work for embedded CUE sheets.
It did work this way with WavPack when I used to use that, and APE if I remember correctly. I presume you’re referring to how FLAC stores cuesheets in a separate frame, in which case, I do apologise for making a misleading over-generalisation.
I just tested $meta(cuesheet) across my collection of single file FLACs, FLACs with CUEs and WavPacks with CUEs, and it didn't exist in any of my files. Maybe foobar2000 specifically hides that field from the user, or your files were created with a program which also wrote info to that metadata field.

Sorry for my answer being so sharp, but I'm a bit wary of recommending bad practices (IMHO!) to users.

This post has been edited by Kohlrabi: Apr 2 2013, 00:54


--------------------
It's only audiophile if it's inconvenient.
Go to the top of the page
+Quote Post
db1989
post Apr 2 2013, 01:12
Post #6





Group: Super Moderator
Posts: 5275
Joined: 23-June 06
Member No.: 32180



QUOTE (Kohlrabi @ Apr 2 2013, 00:52) *
Maybe foobar2000 specifically hides that field from the user, or your files were created with a program which also wrote info to that metadata field.
Maybe fb2k does hide the field CUESHEET. I can say with full confidence that I used to embed cue-sheets in my files by writing them into the aforementioned field.

My guess would be that cue-sheets are written to the special frame in FLAC and to a normal field named CUESHEET in other formats, but presented via a common interface distinct from normal metadata-editing operations regardless of which method is used to store the data. However, it is also possible that foobar2000 tolerates cue-sheets embedded in the latter way but moves/duplicates them to another type of storage before presenting a list of fields to the user. I would appreciate confirmation from anyone who has the relevant details to hand; I searched a bit, but I didn’t find anything conclusive.

QUOTE
Sorry for my answer being so sharp, but I'm a bit wary of recommending bad practices (IMHO!) to users.
No offence taken; your attitude is correct. All that can happen is that we give more accurate answers and possibly get a better understanding of what’s going on under-the-hood, both of which I welcome.

This post has been edited by db1989: Apr 2 2013, 01:13
Go to the top of the page
+Quote Post
Chris Norman
post Apr 3 2013, 21:27
Post #7





Group: Members
Posts: 139
Joined: 3-June 05
From: Cluj-Napoca
Member No.: 22498



Thanks for the info.

That got me finally to the solution. Basically I was looking for an automatic method to move my files regardless whether they are individual files or if they single files (with a cue sheet). Thus, I can avoid strange long file names.

This is my result:

CODE
%album artist%/%album%/$if($stricmp(%__cue_embedded%,yes),[%discnumber%]00 - %album artist% - %album% '('embedded cue sheet')',[$num(%discnumber%,1)]%tracknumber% - %album artist% - %album% - $if($meta(album artist),%artist% - ,)%title%)


Again, thanks!


--------------------
http://www.vonpell.com
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th November 2014 - 04:13