# BPM tag field

**URL:** https://community.mp3tag.de/t/bpm-tag-field/722
**Category:** General Discussion
**Created:** [January 12, 2004, 2:50am UTC](https://community.mp3tag.de/t/bpm-tag-field/722 "2004-01-12T02:50:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![djRickMitchell](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@djRickMitchell](https://community.mp3tag.de/u/djRickMitchell)
#### Post date: [January 12, 2004, 2:50am UTC](https://community.mp3tag.de/t/bpm-tag-field/722/1 "2004-01-12T02:50:09Z")

</div>

In regards to the ALT-T function in the development build, if I want to put in a bpm field .. and want that field to be recognized by other programs who go by the tag definitions as provided in a recent post, I would call the tagfield "TBPM" correct?

Is there a limit on the size of that tag field?

The reason I ask is that most people use a three digit bpm (like 128) for bpms. I calculate out my bpms so that 7 character spaces are needed (like 128.145).

Right now I also put those as the first 7 positions of a filename:

128 185 Donna Summer - State of Independence (DMC Mix).mp3

Can you help me with the syntax needed to convert the bpm to a bpm field .. and then the artist name to the artist field (the rest is easy, of course).

Any help with this would certainly help me figure out some other little personal preferences that I want to work into my mp3tag installation.

btw at this moment I have about 20,000 mp3 files on my hard drives that I'm preparing to archive onto dvd. I want to get as much info in the right place as possible so I can have the final disk listings put into a database for easy lookup and retrieval in the future.

Also, only about 500 of the 20,000 have the bpm situation at the top of the filename, but its's a format that I use on every WAV I play .. but have been lazy at transferring over to the mp3s because I've never had a way to easily manipulate the information into a useful tag format .. until now!)

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 12, 2004, 7:25am UTC](https://community.mp3tag.de/t/bpm-tag-field/722/2 "2004-01-12T07:25:16Z")

</div>

Rick,

please wait until the next development build before saving a BPM field in your files. At the moment the mapping between ID3v2 frames and user-defined input does not create a TBPM ID3v2 frame when entering BPM or TBPM in the advanced tag dialog (it'll result in an user-defined TXXX frame).

I'll complete the work on the mapping mechanism to the next development build and will notice you via this thread.

Regarding your question about the BPM field size limitation I want to quote the ID3v2 standard:

> [@](#):
>
> The 'BPM' frame contains the number of beats per minute in the mainpart of the audio. The BPM is an integer and represented as a numerical string.

So it's only allowed to store whole bpm vlaues to the field.

Best regards,  
~ Florian

[AMG\_ext\_by\_url.src](https://community.mp3tag.de/uploads/default/original/2X/0/07254a6badd823f0d37300192121086675e37988.src) (11.5 KB)

---

<div class="post-metadata">

### Author: ![djRickMitchell](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@djRickMitchell](https://community.mp3tag.de/u/djRickMitchell)
#### Post date: [January 14, 2004, 8:37am UTC](https://community.mp3tag.de/t/bpm-tag-field/722/3 "2004-01-14T08:37:55Z")

</div>

Heck, I might as well just use the custom field option you've created instead of waiting to put in a number that will short change me by up to .999 in bpm accuracy.

One followup question: Can I automate the transfer of my bpm information into a custom field -- if the bpm info is in the filename as shown below:

**128 725 DEBORAH COX - Who Do You Love (New Mix).mp3**

Note: the bpm would be 128.725, but I put it in the filename with a space instead of the '.'

Thanks for your speedy reply on my first post -- and congrats on creating such a great piece of software. I try out all sorts of various utilities and software ... and in the past 6 to 9 months your program is the only one I've tried and now cannot live without.

![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:") RICK

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [January 15, 2004, 3:36pm UTC](https://community.mp3tag.de/t/bpm-tag-field/722/4 "2004-01-15T15:36:48Z")

</div>

Rick,

the latest development build of Mp3tag creates a TBPM ID3v2 frame, when you enter **BPM** as fieldname at View, Tags. This field can be displayed and edited by other ID3v2 capable programs as well.

To import the BPM value from the filename to the tag, please follow these steps:

1. create a new action group via ALT+5 and name it "BPM filename".

2. create a new action Replace with regular expressions with _Field_ **\_FILENAME** , _Regular expression_ **(\d+) (\d+) (.+)** and _Replace matches with_ $1 $2 $3This will add a secondary blank after the bpm part in the filename.

3. import the BMP value to the tag via Converter, Filename - Tag using the formatstring %bpm% %artist% - %title%

4. create a new action group via ALT+5 and name it "BPM remove blanks".

5. create a new action Replace with _Field_ **BPM** , _Original_ filled with one blank and _Replace with_ filled with one dot.

6. create a new action Replace with _Field_ **\_FILENAME** , _Original_ filled with tow blanks and _Replace with_ filled with one blank.

7. try to understand the above steps 🙂

Best regards,  
~ Florian

[Standard.mta](https://community.mp3tag.de/uploads/default/original/2X/c/c1c98694e90eed277ce3f09f79d9492035189308.mta) (4.25 KB)

---

<div class="post-metadata">

### Author: ![djRickMitchell](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/85e7bf/32.png) [@djRickMitchell](https://community.mp3tag.de/u/djRickMitchell)
#### Post date: [January 15, 2004, 7:57pm UTC](https://community.mp3tag.de/t/bpm-tag-field/722/5 "2004-01-15T19:57:32Z")

</div>

Fantastic!!! Thanks for the info .. I'm off now to make this work before I archive 2003 and prior mp3s to DVD.

I'll let you know how it goes.

RICK
