Page 2 of 4

Posted: Wed Dec 07, 2005 1:06 pm
by Peke
trixmoto,
If you search forum you will find that I wrote CUESheet editor few years ago.
help can be found Here
http://pekemm.madpage.com/temp/cuesheeteditor.chm
It is not as simple as it looks.
For example I use more complexed CUEs for my DJ mixes, but if statik finds it usefull. Also you will find under scripts forum My script which exports CUE from MM.
If you need any help I'll be glad to help you, but I think all you need is that Help file.

Posted: Wed Dec 07, 2005 1:36 pm
by statik
Well I just know that the cue sheets floating about the net are quite simple in most respects, as are the ones I use for my mixes. I've used cues for about 4 years now and have yet to encounter any significantly more complex than ones such as this:
PERFORMER "Markus Schulz"
TITLE "Coldharbour Sessions 2004 - CD1"
FILE "101-markus_schulz_-_coldharbour_sessions_2004_cd1-ds.mp3" MP3
TRACK 01 AUDIO
TITLE "Intro"
PERFORMER "Markus Schulz"
INDEX 01 00:00:00
TRACK 02 AUDIO
TITLE "Numb"
PERFORMER "Christian Rush"
INDEX 01 01:35:59
TRACK 03 AUDIO
TITLE "Glistening"
PERFORMER "Taxi"
INDEX 01 08:28:00
TRACK 04 AUDIO
TITLE "Satellite (Markus Schulz Coldharbour Remix)"
PERFORMER "Oceanlab"
INDEX 01 14:20:65
TRACK 05 AUDIO
TITLE "Simple"
PERFORMER "Pinkbox Special"
INDEX 01 24:02:65
TRACK 06 AUDIO
TITLE "Tranquility (Markus Schulz Coldharbour Remix)"
PERFORMER "Mark Otten"
INDEX 01 31:33:60
TRACK 07 AUDIO
TITLE "Morning Star (San's sho-road mix)"
PERFORMER "San Mehat"
INDEX 01 39:04:65
TRACK 08 AUDIO
TITLE "Afterlife"
PERFORMER "Mind"
INDEX 01 45:51:58
TRACK 09 AUDIO
TITLE "Lady Blue (Markus Schulz Coldharbour Remix)"
PERFORMER "Airwave"
INDEX 01 52:37:32
TRACK 10 AUDIO
TITLE "By Your Side (Sonorous Remix)"
PERFORMER "Miro"
INDEX 01 62:45:45
TRACK 11 AUDIO
TITLE "Somewhere [Clear Blue] (Markus Schulz Coldharbour Remix)"
PERFORMER "Markus Schulz pres. Elevation"
INDEX 01 69:31:27

Posted: Wed Dec 07, 2005 6:58 pm
by trixmoto
Progress report @23:55 07/12/2005

File parsing now enhanced so that all CUE commands can be read, although this script only check FILE (will look only for the one of the currently playing track - must be full path), TRACK (will look only for audio tracks), TITLE, PERFORMER and INDEX (will look only for 01). Other commands will be accepted but ignored.

Off to bed now, will continue in the morning! :)

Posted: Wed Dec 07, 2005 7:07 pm
by Peke
First two lines in statik CUE

Code: Select all

PERFORMER "Markus Schulz"
TITLE "Coldharbour Sessions 2004 - CD1"
Are:
PERFORMER = Album Artist
TITLE = Album
Those two appears only before first FILE line and should be interpreted that way..

Posted: Thu Dec 08, 2005 1:10 am
by statik
Peke wrote:First two lines in statik CUE

Code: Select all

PERFORMER "Markus Schulz"
TITLE "Coldharbour Sessions 2004 - CD1"
Are:
PERFORMER = Album Artist
TITLE = Album
Those two appears only before first FILE line and should be interpreted that way..
Yeah, that's album performer and title. Though not all cues have that, infact, a cue doesn't HAVE to have more than just the track indexes, but it looks like triximoto has though of that :)
Great work, looking forward to trying it!

Posted: Thu Dec 08, 2005 4:03 am
by trixmoto
My script currently ignore album title and performer, as the mp3 track itself will probably be labelled with these. My script is only worried about the tracks inside.

Yes statik, the script should be able to function without anything but the indexes (FILE, TRACK, INDEX). At the moment each track needs a TITLE and PERFORMER, but I'm removing that restriction now.

Posted: Thu Dec 08, 2005 5:12 am
by statik
Great! The most basic cues look like this:
FILE C:\1.mp3 MP3
TRACK 01 AUDIO
INDEX 01 00:00:00
TITLE 1
TRACK 02 AUDIO
INDEX 01 04:48:54
TRACK 03 AUDIO
INDEX 01 10:15:38
TRACK 04 AUDIO
INDEX 01 15:19:02
TRACK 05 AUDIO
INDEX 01 20:49:40
TRACK 06 AUDIO
INDEX 01 25:53:62
TRACK 07 AUDIO
INDEX 01 32:00:67
TRACK 08 AUDIO
INDEX 01 37:45:06
TRACK 09 AUDIO
INDEX 01 41:40:12
TRACK 10 AUDIO
INDEX 01 47:45:34
TRACK 11 AUDIO
INDEX 01 52:28:53
TRACK 12 AUDIO
INDEX 01 57:34:27
TRACK 13 AUDIO
INDEX 01 62:41:37
TRACK 14 AUDIO
INDEX 01 67:59:17
TRACK 15 AUDIO
INDEX 01 72:16:65

Posted: Thu Dec 08, 2005 5:23 am
by trixmoto
I'm having a slight problem at the moment with FILE, TITLE, PERFORMER, etc because the strings afterwards don't need the quotes if there are no spaces. Writing a function to get around that now though. If you're lucky there will be a testable version by the end of the day. :)

One question: If there are tracks listed with indexes that are larger than the total file length?

1) Error - reject the cue sheet as invalid
2) Ignore - accept the cue sheet but don't copy the track info
3) Continue - the player will just go as far to the end as possible and then onto the next track if the time is too large

Posted: Thu Dec 08, 2005 5:38 am
by statik
If the indexes go past the end of the mp3... En error-message would be nice, can't trust the cue sheet if it coesn't match the mp3.
An error message and then continue, if that's possible? :)

Posted: Thu Dec 08, 2005 5:43 am
by trixmoto
Ok, I make that option 2. It will ignore any tracks that have an index past the end of the track, and warn you that it is doing so.

I think this script could be very useful for some of my audio books which are whole discs as single tracks. I could create a cue sheet for the chapters. :)

Posted: Thu Dec 08, 2005 6:01 am
by statik
Yeah, cuesheets are quite useful when used properly :) Looking forward to trying it!

Posted: Thu Dec 08, 2005 8:50 am
by statik
Well, I haven't seen any cue sheets which cover more than one mp3 so I'm unsure of how that would work..
But it does seem logical for the PERFORMER and TITLE headers to cover the entire content of the cuesheet.

About the end tag, maybe you're right; but if the script runs out of lines to read then it would automatically end anyways, yeah?

edit: I'm confused: did you just remove you last post?

Posted: Thu Dec 08, 2005 9:18 am
by trixmoto
Sorry, I did remove that post, almost immediately afterwards - you must have been quick to read it! :)

It occurred to me that actually I didn't care about the album title or performer (as mentioned above) because the mp3 would be tagged with these. So it doesn't matter where they are, I'll simply ignore them unless they're inside a track.

Progress is being made, mainly with stability when reading different styles of CUE sheet, and erroneous CUE sheets.

Posted: Fri Dec 09, 2005 9:52 am
by trixmoto
A releasable version is close, there's just one problem I need to overcome. Just one more quick question as well:

How many tracks are a reasonable maximum to expect in a CUE sheet, for a single file? The largest example you've given me is 15, and because I am dynamically creating the size of the form to fit on all the tracks, should you create a CUE sheet with a very large number in, the form's not going to fit on the screen. I think I'll release it as it is once I've sorted the problem I'm having, but a new version might be needed with a cleverer way of displaying the tracks.

I'll post a link here as soon as I've released the first version. :)

Posted: Fri Dec 09, 2005 11:24 am
by trixmoto