Help - Search - Members - Calendar
Full Version: how to perform batch editing of cue sheets please
Hydrogenaudio Forums > CD-R and Audio Hardware > CD Hardware/Software
abducted
Hi !

I have a problem with cue sheets.

For example :

TRACK 09 AUDIO
TITLE "J'aime la vie (addoll) - 132 se"
PERFORMER "Sandra Kim"
INDEX 01 00:54:00
TRACK 10 AUDIO
TITLE "132 se"
PERFORMER "tungsten"
INDEX 01 01:14:00
TRACK 11 AUDIO
TITLE "J'aime la vie - 131 se"
PERFORMER "Sandra Kim"
INDEX 01 01:38:00
TRACK 12 AUDIO
TITLE "J'aime la vie (addoll) - 136 se"
PERFORMER "Sandra Kim"
INDEX 01 01:53:00
TRACK 13 AUDIO
TITLE "J'aime la vie (addoll) - 137 se"
PERFORMER "Sandra Kim"
INDEX 01 02:34:00
TRACK 14 AUDIO
TITLE "Vivre ailleurs (livdeaddoll) - 133 se"
PERFORMER "Jakie Quartz"
INDEX 01 03:37:00
TRACK 15 AUDIO
TITLE "Vivre ailleurs (liviaddoll) - 138 se"
PERFORMER "Jakie Quartz"
INDEX 01 03:54:00
TRACK 16 AUDIO
TITLE "138 se"
PERFORMER "tungsten, la magiqe"
INDEX 01 04:41:00
TRACK 17 AUDIO
TITLE "Vivre ailleurs (liveaddoll) - 138 se"
PERFORMER "Jakie Quartz"
INDEX 01 05:00:00
TRACK 18 AUDIO
TITLE "Vivre ailleurs (liviaddoll) - 136 se"
PERFORMER "Jakie Quartz"
INDEX 01 05:39:00
TRACK 19 AUDIO
TITLE "Vivre ailleurs (liviaddoll) - 134 se"
PERFORMER "Jakie Quartz"
INDEX 01 06:04:00
TRACK 20 AUDIO
TITLE "Sans mensonge (lieaddoll) - 136 se"
PERFORMER "Marie Gillain"
INDEX 01 06:45:00
TRACK 21 AUDIO
TITLE "Sans mensonge (ldeaddoll) - 137 se"
PERFORMER "Marie Gillain"
INDEX 01 07:11:00
TRACK 22 AUDIO
TITLE "Marie Gillain - Sans mensonge - 136 se"
PERFORMER "tungsten, la magie"
INDEX 01 07:43:00
TRACK 23 AUDIO
TITLE "Sans mensonge (livingoll) - 138 se"
PERFORMER "Marie Gillain"
INDEX 01 08:10:00
TRACK 24 AUDIO
TITLE "Sauvez-moi (liviaddoll) - 141 se"
PERFORMER "Jeanne Mas"
INDEX 01 08:40:00
TRACK 25 AUDIO
TITLE "141 se"
PERFORMER "tungsten,danser"
INDEX 01 08:57:00
TRACK 26 AUDIO
TITLE "Sauvez-moi (deaddoll) - 137 se"
PERFORMER "Jeanne Mas"
INDEX 01 09:21:00
TRACK 27 AUDIO
TITLE "138 se"
PERFORMER "tungsten, !"
INDEX 01 09:44:00
TRACK 28 AUDIO
TITLE "Sauvez-moi (addoll) - 138 se"
PERFORMER "Jeanne Mas"
INDEX 01 10:01:00


In this example cue sheet, I need first to delete cues that contain the string "tungsten". (this means that I need to delete tracks 10,16,22,25,27)


Then, I need to keep only the first cue of a performer (this means
that I need to delete tracks 11, 12, 13, 15, 17, 18, 19, 21, 23, 26, 28)

And I need to do this automatically, because I have really huge cues to process.

Any help would be appreciated... Maybe I could use a wordprocessor or something...
Thanks !
Firon
You need something with regexp support (such as UltraEdit-32).

use this as a search term in a search and replace: TRACK*\r\nTITLE*\r\nPERFORMER*tungsten*\r\nINDEX*\r\n
then replace with nothing
(not every program has Unix syntax though, UE32 uses ^p instead of \r\n or \p for DOS newlines)

Not sure how to do the rest though... probably find the first occurence of the performer, scroll down below the INDEX belonging to it, and do a search and replace with that performer's name replacing tungsten in the line I gave before, making sure it doesn't start from the top, and isn't case sensitive.
something like.. scroll down to TITLE "J'aime la vie - 131 se" (after the first Sandra Kim entry)
then do S&R with TRACK*\r\nTITLE*\r\nPERFORMER*sandra kim*\r\nINDEX*\r\n

rinse and repeat with each performer. It's not really automatic unfortunately, but it's better than doing it line by line...
I'm sure someone else has a better solution.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.