19 May '13 - 18:47 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: ID3v2, TBPM Frame  (Read 2728 times)
dehamm
Guest
« on: 11 Dec '05 - 12:11 »
Reply with quoteQuote

Hello Community,   

I know, Audiogenie's OCX are an usefully tool to write id3v2.4 tags. But I will only write the TBPM Frame into the mp3 file (not more, not less).

I think, its to much to buy an complete OCX for only one frame.

Have someone little sourcecode (vb6) to write the tbpm-frame?

thx

Dennis
Logged
Steve Grant
Posts: 76


« Reply #1 on: 11 Dec '05 - 16:44 »
Reply with quoteQuote

Try This

Private Type TagInfo
    Tag As String * 3
    Songname As String * 30
    artist As String * 30
    album As String * 30
    year As String * 4
    comment As String * 30
    genre As String * 1
End Type

Dim CurrentTag As TagInfo

Private Sub CmdWrite_Click()
    FileName = Text1.Text
    Open FileName For Binary As #1
    With CurrentTag
        .Songname = ""
        .artist = ""
        .album = ""
        .year = ""
        .comment = TxtComment.Text 'Place your BPM count here.
        .genre = 255
        Get #1, FileLen(FileName) - 127, .Tag
        If Not .Tag = "TAG" Then
            Put #1, FileLen(FileName) + 1, "TAG"
        Else
            Put #1, FileLen(FileName) - 127, "TAG"
        End If
        Put #1, , .Songname
        Put #1, , .artist
        Put #1, , .album
        Put #1, , .year
        Put #1, , .comment
        Put #1, , .genre
        Close #1
    End With
End Sub

Steve. Cool
Logged
dehamm
Guest
« Reply #2 on: 11 Dec '05 - 17:09 »
Reply with quoteQuote

Your solution is not unfortunately what I like.


I will don't write the BPM in the comment - field, because there are an tbpm-frame.

IMHO will read Traktor, Atomix, VirtualDJ (and so on) the tbpm-frame to display the BPM and not the comment-field. Wink Cheesy

thx

Dennis
Logged
Keyman
Posts: 167


« Reply #3 on: 11 Dec '05 - 17:47 »
Reply with quoteQuote

The TBPM frame only exists in ID3-V2.x tags (not V1!).

It is not possible to write just the TBPM frame unless such a frame allready exists in the tag. I think that in roughly 90% this frame does not yet exists.

To add a new frame to a tag you need to completely rewrite the ID3 tags.
To be able to do that you also need to be able to parse the bigger part of the tags.
Also bear in mind that even if the TBPM tags exists, it still takes quit some code to find and update the TBPM frame.

I've written my own ID3 implementation and it took me a couple of weeks... it's a hell of a job. So in the end I think it's not so stupid to buy an OCX to do the work for you.

« Last Edit: 11 Dec '05 - 23:07 by Keyman » Logged
dehamm
Guest
« Reply #4 on: 11 Dec '05 - 18:51 »
Reply with quoteQuote

Hi Keyman,

thx for your answer. I kind of thought, that its an easy thing to write one frame, because the tbpm-frame is availible in the id3v2.4 documentation. I didn't know, that I must complete rewrite all tags.

bye

Dennis
Logged
radio42
Posts: 4012


« Reply #5 on: 11 Dec '05 - 19:06 »
Reply with quoteQuote

If you are simply interested in writing ID3v2 and possibly WMA tags - you might even try the WM SDK...this allows you to pretty much simply read and write all WMA and ID3v2 tags...you can download all for free from the Microsoft pages...
Logged
3delite
Posts: 623


« Reply #6 on: 11 Dec '05 - 20:27 »
Reply with quoteQuote

 
If you can use Delphi, great Delphi ID3v2 unit: http://www.audioxl.com/idl-download.html
 
Logged
dehamm
Guest
« Reply #7 on: 12 Dec '05 - 05:59 »
Reply with quoteQuote

@3delite,

thx, but i have buy the great OCX from AudioGenie, its simple and works fine.

Dennis

Logged
hanachacha
Posts: 16


« Reply #8 on: 3 Jan '06 - 06:11 »
Reply with quoteQuote

dehamm ,
You can go to www.planet-source-code.com and find ID3v2.x.x VB 6.0 project of Glent  Scott it use full ,free and open source.
Logged
DeHamm
Guest
« Reply #9 on: 4 Jan '06 - 06:30 »
Reply with quoteQuote

Hi hanachacha,

thx for your Tipp, but the Source from Glenn Scott can't read/write the TBPM Frame. Anyway, nice Code.

Dennis
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines