Karaoke Scene's Karaoke Forums
https://mail.karaokescenemagazine.net/forums/

Software - make a list of all mids and kars
https://mail.karaokescenemagazine.net/forums/viewtopic.php?f=1&t=17033
Page 1 of 1

Author:  utnalove [ Mon Jul 06, 2009 2:05 am ]
Post subject:  Software - make a list of all mids and kars

Hello,
I have MANY karaoke files. I would like to make an ordered list of all the songs, at least ordered by author.

Then I would like to print this list, so that people can choose by author the song they want.

Is there a fast way to achieve this?
Thanks

Author:  JSM1 [ Mon Jul 06, 2009 4:46 am ]
Post subject:  Re: Software - make a list of all mids and kars

Other than typing in all the tracks into an microsoft excel sheet (or similar) then printing I have no idea. Either way, it is likely to be a long laborious job.

Author:  mckyj57 [ Mon Jul 06, 2009 5:52 am ]
Post subject:  Re: Software - make a list of all mids and kars

utnalove @ Mon Jul 06, 2009 5:05 am wrote:
Hello,
I have MANY karaoke files. I would like to make an ordered list of all the songs, at least ordered by author.

Then I would like to print this list, so that people can choose by author the song they want.

Is there a fast way to achieve this?
Thanks

I just write a script using the "find" command. But I am a programmer.

You can get Latshaw's Song List Generator and it will do things like that. Though I am not sure about kar and mid files. No one here really deals with those much.

Author:  utnalove [ Mon Jul 06, 2009 6:33 am ]
Post subject:  Re: Software - make a list of all mids and kars

And what do you use instead of .mid and .kar?

Do you share the script or you keep it private?

Author:  mckyj57 [ Mon Jul 06, 2009 6:37 am ]
Post subject:  Re: Software - make a list of all mids and kars

utnalove @ Mon Jul 06, 2009 9:33 am wrote:
And what do you use instead of .mid and .kar?

Do you share the script or you keep it private?

I would share it, but it uses Perl and find and not 1 of 100 people has the ability to run it. I could obviously modify it to handle .kar and .mid -- it looks for .zip right now.

Author:  utnalove [ Mon Jul 06, 2009 6:43 am ]
Post subject:  Re: Software - make a list of all mids and kars

My specialization is Networking, but I think I can make it run.

What does this script do? Makes the list from the filename or from the informations about author and title inside the files?

Author:  mckyj57 [ Mon Jul 06, 2009 6:57 am ]
Post subject:  Re: Software - make a list of all mids and kars

utnalove @ Mon Jul 06, 2009 9:43 am wrote:
My specialization is Networking, but I think I can make it run.

You can if you install Cygwin or maybe perl. Not otherwise.

First of all, it relies on the files being named consistently. The standard in mp3+g files, at least the most common one, is

DD1234-01 - Artist, The - Title, The.zip

It's as simple as:

cd /karaoke
find . -name '*.zip' | perl -pe 's:.*/::; s/\.zip$//; s/ - /\t/;'

An all-perl version would be:

Code:
#!/usr/bin/perl

    use File::Find;

    my $wanted = sub {
        return unless -f $_;
        s/\.(zip|kar|mid)$//i or return;
        s/ - /\t/g;
        print "$_\n";
    };

    my $dir = shift || '.';

    File::Find::find($wanted, $dir);


You can install Strawberry Perl pretty easily (it's free, search Google).

Author:  Lone Wolf [ Mon Jul 06, 2009 7:01 am ]
Post subject:  Re: Software - make a list of all mids and kars

If all your files are in one folder and the artist (author) is the first name n the file you could use a simple directory print program. There are lots of free ones on the web.

If that didn't fit the your needs I agree with Latshaw's songbook generator but then again you have to have them named properly.

Author:  utnalove [ Mon Jul 13, 2009 5:18 am ]
Post subject:  Re: Software - make a list of all mids and kars

mckyj57 @ Mon Jul 06, 2009 3:57 pm wrote:
utnalove @ Mon Jul 06, 2009 9:43 am wrote:

cd /karaoke
find . -name '*.zip' | perl -pe 's:.*/::; s/\.zip$//; s/ - /\t/;'


You can install Strawberry Perl pretty easily (it's free, search Google).


Hello,
I have just installed strawberry perl...

This is the command and error that I am getting:

Code:
C:\Documents and Settings\me\My Documents\downloads\test>find . -name '*.zip' | C:\strawberry\perl\bin\perl.exe -pe 's:.*/::; s/\.zip$//; s/ - /\t/;'
Can't find string terminator "'" anywhere before EOF at -e line 1.
File not found - '*.zip'

Author:  mckyj57 [ Mon Jul 13, 2009 5:32 am ]
Post subject:  Re: Software - make a list of all mids and kars

utnalove @ Mon Jul 13, 2009 8:18 am wrote:
mckyj57 @ Mon Jul 06, 2009 3:57 pm wrote:
utnalove @ Mon Jul 06, 2009 9:43 am wrote:

cd /karaoke
find . -name '*.zip' | perl -pe 's:.*/::; s/\.zip$//; s/ - /\t/;'


You can install Strawberry Perl pretty easily (it's free, search Google).


Hello,
I have just installed strawberry perl...

This is the command and error that I am getting:

Code:
C:\Documents and Settings\me\My Documents\downloads\test>find . -name '*.zip' | C:\strawberry\perl\bin\perl.exe -pe 's:.*/::; s/\.zip$//; s/ - /\t/;'
Can't find string terminator "'" anywhere before EOF at -e line 1.
File not found - '*.zip'

You don't have the "find" command unless you have Cygwin or the equivalent. You are going to have to use my self-contained script.

Author:  exweedfarmer [ Mon Jul 13, 2009 8:38 am ]
Post subject:  Re: Software - make a list of all mids and kars

If you still haven't got this sorted out I would be happy to help. You can get a list of files by using the command line interface in windows.
Start->Run type ""command or "cmd"
if your files are in many different directories type
cd\ <enter>
dir *.mid /s /b>mid.txt <enter>
this will give you a listing of all midi files on your computer in a file called mid.txt
if you have them all in one directory, navigate to that directory and then type:
dir *.mid /b>mid.txt
do the same thing with the kar files but instead of *.mid make it *.kar and of course the output file should be named kar.txt.

Attach these two files to an e-mail and shoot it my way along of an example of what you would like the result to look like. Use "Karaoke" as the subject so I don't delete it as junk. My e-mail address is outintheweeds-AT-hotmail.com and I'll send them back in your format. Or I'll give it a shot anyway.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/