topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday March 29, 2024, 8:45 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: MP3 HTML Generator  (Read 10436 times)

DJ-Sonic

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
IDEA: MP3 HTML Generator
« on: February 07, 2006, 05:42 AM »
Hi there,

I came across this software and was finding it pretty useful. Wonder if someone could code something like this.

::Software Download URL:: http://www.exacttrend.com/mp3gen.exe
::Software Description URL:: http://www.exacttrend.com/MP3Generator/index.html

Warm regards
« Last Edit: March 07, 2006, 01:40 AM by brotherS »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: MP3 HTML Generator
« Reply #1 on: February 07, 2006, 05:45 AM »
there are probably too many features to code as a coding snack but maybe you could describe the minimal features you think are most important that would make a good coding snack?

DJ-Sonic

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: MP3 HTML Generator
« Reply #2 on: February 07, 2006, 05:52 AM »
The thing I need is a software that can

1) generate MP3 list by tags
2) Sort it according to User defined order of Album, genre, artist, etc
3) generate an meaningful output or say organized output on html or text, html prefferd.
4) more over just go through the screenshots of the software and see how it produces lists. I just want a soft copy of my mp3s in a list just a list not want to develop a webpage as MP3 HTML Generator is good for making a webpage.


Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
    • View Profile
    • Get my Freestyle Basic Script Language + compiler!
    • Donate to Member
Re: MP3 HTML Generator
« Reply #3 on: February 07, 2006, 06:46 AM »
Hi,

The thing I need is a software that can

1) generate MP3 list by tags
2) Sort it according to User defined order of Album, genre, artist, etc
3) generate an meaningful output or say organized output on html or text, html prefferd.
4) more over just go through the screenshots of the software and see how it produces lists. I just want a soft copy of my mp3s in a list just a list not want to develop a webpage as MP3 HTML Generator is good for making a webpage.



This can be done easily using FBSL with :
- Reading MP3s and extracting their TAGs
- Storing each MP3 tag into a, fbsl String Collection
- Once the directory has been crossed, we can Qsort our collection(s) and output the content into a CSV file or into an XML file or HTML file :)
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)

DJ-Sonic

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: MP3 HTML Generator
« Reply #4 on: February 07, 2006, 12:25 PM »
went through your site Gerome its a great thing you have made. I am not used to FBSL though, but i'll give it a shot. But surely I wouldnt be able to develop a code in time. Could you please code something for me?

warm regards

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
    • View Profile
    • Get my Freestyle Basic Script Language + compiler!
    • Donate to Member
Re: MP3 HTML Generator
« Reply #5 on: February 08, 2006, 08:54 AM »
Hi,

went through your site Gerome its a great thing you have made. I am not used to FBSL though, but i'll give it a shot. But surely I wouldnt be able to develop a code in time. Could you please code something for me?

warm regards

Ok, i'll try to make a basic skeletton, and you'll dive into the language after, as you'll probably see, it is simple to develop things like that using Fbsl ;)
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
    • View Profile
    • Get my Freestyle Basic Script Language + compiler!
    • Donate to Member
Re: MP3 HTML Generator
« Reply #6 on: February 08, 2006, 10:26 AM »
Hello,

The following code will :
- Look for all .mp3 files located into 'MYDIR'
- Pipe the output of the request into a String variable
- Replace portions of directory from the string variable
- Transpose the string variable into a String Collection
- Qsort the String collection
- Output the result into a text file

It's a simple program that should show the ease that Fbsl has to manipulate external programs, string collection and IO manip...

$AppType Console
Macro OEMACCENTS(s) = WideToAnsi( AnsiToWide(s, CP_OEMCP), CP_ACP )

Begin Const
    '!! Change the directory there !!
    MYDIR = "C:\Music\"
    MYEXT = "*.mp3"
End Const

? "Scan in progress..."
GetMp3List( MYDIR & MYEXT, MYDIR )
? "Done!"
Pause

Sub GetMp3List( Byval $szDir, Byval $szRemove )
    Dim $lpBuffer = OEMACCENTS( StrPipe("CMD.exe /C dir " & szDir & " /s /O /B /N" ) )
    lpBuffer = Ucase(lpBuffer)
    szRemove = Ucase(szRemove)
    lpBuffer = Replace( lpBuffer, szRemove, "" )
    Dim %Sc = Scnew()
        ScImport( Sc, lpBuffer, Lf )
    ScQsort( Sc )
    Dim %fp = FileOpen( ".\_List_Sorted.m3u", Output )
       FilePrint( fp, ScExport( Sc, Lf, 1 ) )
    FileClose( fp )
    ScFinalize( Sc )
End Sub

Enjoy ;)
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)

kfitting

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 593
    • View Profile
    • Donate to Member
Re: MP3 HTML Generator
« Reply #7 on: February 08, 2006, 11:33 AM »
Is the qsort an API call?  Does it do a natural sort?  Or does it sort like Excel by default 0,1,10,2,3,4,5 etc?  (Natural sort would go 0,1,2,3,4,5,6,7,8,9,10)

Kevin

Gerome

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 154
    • View Profile
    • Get my Freestyle Basic Script Language + compiler!
    • Donate to Member
Re: MP3 HTML Generator
« Reply #8 on: February 08, 2006, 01:14 PM »
Hi,

Is the qsort an API call?  Does it do a natural sort?  Or does it sort like Excel by default 0,1,10,2,3,4,5 etc?  (Natural sort would go 0,1,2,3,4,5,6,7,8,9,10)

Kevin

ScQsort() internally uses QSort system API, it is aimed at qsorting SC == String Collection.
Yours,
(¯`·._.·[Gerome GUILLEMIN]·._.·´¯)
http://www.fbsl.net [FBSL Author]
http://gedd123.free.fr/FBSLv3.zip [FBSL Help file]
(¯`·._.·[If you need help... just ask]·._.·´¯)

DJ-Sonic

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 4
    • View Profile
    • Donate to Member
Re: IDEA: MP3 HTML Generator
« Reply #9 on: March 17, 2006, 08:34 PM »
Just got back home from a long trip. Glad to see your reply Gerome, with the code :P thanks man I will put my head into it and will try to make it work.

By the way I have something else in mind. Please contact me Gerome.