HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: NetRanger on 2022-07-04 16:10:01

Title: CUESheet Creator Component
Post by: NetRanger on 2022-07-04 16:10:01
Hi

I know there is an old 'foo_cuesheet_creator' component floating around out there that doesn't work especially well with foobar2000 from what i've read, so now im wondering if there is another CUESheet Creator component available or?
Title: Re: CUESheet Creator Component
Post by: NetRanger on 2022-08-01 19:22:00
Anyone?
Title: Re: CUESheet Creator Component
Post by: SimBun on 2022-08-01 20:27:28
I assume you're trying to create a CUE sheet from a bunch of tracks in the playlist, is that correct?
Depending on what you need in the CUE - and how automated you want it - given it's just a text file have you tried using something simple like foo_utils (https://foosion.foobar2000.org/components/?id=utils&version=0.6.2+beta+6)?

If you put the following in the foo_utils configuration (File > Preferences > Tools > Text tools), then select a bunch of tracks and right click 'Legacy Commands (unsorted) > Copy Text OR Save Text' will give you a basic CUE sheet.

#Header
REM GENRE "%GENRE%"$crlf()
REM DATE "%DATE%"$crlf()
TITLE "%ALBUM%"$crlf()
PERFORMER "%ALBUM ARTIST%"$crlf()

#Body
FILE "%PATH%"$crlf()
  TRACK %TRACKNUMBER% AUDIO$crlf()
    TITLE "%TITLE%"$crlf()
    PERFORMER "%ARTIST%"$crlf()
    INDEX 01 00:00:00$crlf()
Title: Re: CUESheet Creator Component
Post by: SimBun on 2022-08-02 09:51:30
The code was meant as an example as I didn't have access to test it yesterday, so a working version is:
Code: [Select]
#Header
REM GENRE "%GENRE%"$crlf()
REM DATE "%DATE%"$crlf()
TITLE "%ALBUM%"$crlf()
PERFORMER "%ALBUM ARTIST%"$crlf()

#Body
FILE "%PATH%" WAVE$crlf()
  TRACK $num(%LIST_INDEX%,2) AUDIO$crlf()
    TITLE "%TITLE%"$crlf()
    PERFORMER "%ARTIST%"$crlf()
    INDEX 01 00:00:00$crlf()
Title: Re: CUESheet Creator Component
Post by: NetRanger on 2022-08-02 18:11:02
Hi @SimBum

Thnx a lot for that solution.

The only thing is that the full path is show with the track. Is it possible to change it so that just the track name is shown, ie.
FILE "01 - Sorrow Bearing Tree.flac" WAVE

and not

FILE "Q:\test\01 - Sorrow Bearing Tree.flac" WAVE
Title: Re: CUESheet Creator Component
Post by: marc2k3 on 2022-08-02 18:29:26
Code: [Select]
%filename_ext%

https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference#.25filename_ext.25
Title: Re: CUESheet Creator Component
Post by: SimBun on 2022-08-02 18:48:40
Thnx a lot for that solution.
No problem. I wasn't really sure what you were going to do with it (including whether you were going to reference files outside of the current directory) so I included the full path for safety.

If this doesn't do what you're after you can always use CUETools. I use foo_run to spawn an external process called with the path of the file I have selected in foobar:
Code: [Select]
"C:\Program Files '('x86')'\CUETools_2.2.0\CUETools.exe" "$directory_path(%_path%)"
Title: Re: CUESheet Creator Component
Post by: NetRanger on 2022-08-03 09:09:03
@mark2k3
Thnx :)

@SimBun
I've used CUETools for a 'few' years. It's a gr8 tool.
Have a custom portable of it that is use a lot.
Title: Re: CUESheet Creator Component
Post by: marc2k3 on 2022-09-05 08:03:23
I've not used it but Case has updated the component for fb2k v2.

https://foobar.hyv.fi/2.0/?view=foo_cuesheet_creator
Title: Re: CUESheet Creator Component
Post by: Aliaksandr_by on 2024-02-04 14:44:03
Cuesheet Creator

Component for foobar2000 v1.5 and newer.
Version:   0.4.6d
Released:   2023-08-29 10:09
Size:   72.7 KB
License:   Unknown
https://foobar.hyv.fi/?view=foo_cuesheet_creator