Quick Sign In:  

Forum: General Discussion

Topic: Cue file into Youtube Playlist format
Just wanted to share to all users that not are familiar with using open source in github and how to use them. Like my myself since I'm to used with windows and .exe programs

Simply tried ChatGPT to convert the cuefile as a tracklist for youtube and hearthis.at

With this command
Strip these lines in plain text with timecode - performer - title; Convert Index 01 from minutes:seconds:frame to hours:minutes:seconds; case convert every first letter in word

Copy and paste the cue file that wanted to be used
ex:
TRACK 01 AUDIO
TITLE "Tragedy Blows on the Dancefloor (Kesha, Sophie Ellis-Bextor, Cutting Crew vs. Bee Gees)"
PERFORMER "Titus Jones"
INDEX 01 00:00:00
TRACK 02 AUDIO
TITLE "Call My Name"
PERFORMER "BLOND:ISH"
INDEX 01 02:41:00
TRACK 03 AUDIO
TITLE "HIPS DON`T LIE / SMACK YO (Charlie Roennez Mashup)"
PERFORMER "Shakira"
INDEX 01 05:49:00


With the result
Here are the lines stripped in plain text with the requested format:

**00:00:00 - Titus Jones - Tragedy Blows On The Dancefloor (Kesha, Sophie Ellis-Bextor, Cutting Crew Vs. Bee Gees)**
**02:41:00 - BLONDISH - Call My Name**
**05:49:00 - Shakira - Hips Dont Lie / Smack Yo (Charlie Roennez Mashup)**
 

Posted Mon 04 Nov 24 @ 7:13 am
locoDogPRO InfinityModeratorMember since 2013
You could have done this with a regex incantation, without having to second guess if AI just decided to make something up.

Search for
([\r\n]{0,1})\s*TRACK \d+ AUDIO\r\n\s{4}TITLE "(.+)"\r\n\s{4}PERFORMER "(.+)"\r\n\s{4}INDEX \d+ (\d+:\d+):\d+

replace all with
\1**\4 - \3 - \2**



More concise/ less readable, search for
([\r\n]{0,1})\s*.{6}\d+.{6}\r\n.{10}"(.+)"\r\n.{14}"(.+)"\r\n\s{4}.{9}(\d+:\d+):\d+


Then as a second pass to convert minutes to hours:minutes
you need a different np++ plugin [multiReplace] search using regex, allow variables
Search for
\*\*(\d+)

replace with
set( string.format("**%02d:%02d", math.floor(CAP1 / 60), CAP1 % 60) )


Job done without glugging drinkable water or using power solving already solve problems.
 

Posted Mon 04 Nov 24 @ 9:47 am
locoDogPRO InfinityModeratorMember since 2013
Truth be told, GPT got it wrong, unless your second track started 2 hours into the mix.
My regex is right.
 

Posted Mon 04 Nov 24 @ 11:31 am
Worked yesterday with timecode that work. Today it didn't do the same with the same input. Strange.. Thought it would do the same as yesterday.

I need to do course A in computer programming before I can use the code you shared @logodog. Thanx anyway
 

Posted Mon 04 Nov 24 @ 12:10 pm
I've also done this with a Python script to upload the tracklist to Mixcloud (also with the ability to adjust times if joining recordings together in audacity).

IMO ChatGPT almost always gets the most important details wrong for any non-trivial problem you throw at it (it's even hallucinated API calls to me at times...try it for any non trivial vdjscript operation). It's always good to know what you want to do, have a general idea of how it could be done and definitely know when it's done wrong, otherwise you'll be in for some disappointment with ChatGPT or any other Generative AI tool.
 

Posted Mon 04 Nov 24 @ 1:41 pm
locoDogPRO InfinityModeratorMember since 2013
I might make it as a c++ thing if I get bored over the quite times. I'm not 100% sure it can be done with just regex, the whole MMM:SS > HH:MM:SS feels tricky,
I think I could do it with a brute force of a few hundred passes.

it probably can but needs some cursed 100 char incantation to be done right,

Actually I might hack a crack at a np++ plugin, there's a couple of things I wish it could do, finding 3 digits and doing a bit of math to replace feels entry level enough.
 

Posted Mon 04 Nov 24 @ 2:06 pm
Got it to work when logging in
Using This link

Since I'm not a programmer and don't have the skills to work with code, I'm only trying find tools to skip the manual editing.

Starting 1983 with basic and my only education
10 print "deejayskye";
20 goto 10
Run
 

Posted Mon 04 Nov 24 @ 4:02 pm
locoDogPRO InfinityModeratorMember since 2013
My code update with corrections
 

Posted 4 days ago @ 12:33 am