# Rounding BPM value up or down

**URL:** https://community.mp3tag.de/t/rounding-bpm-value-up-or-down/8980
**Category:** Support
**Created:** [September 19, 2009, 5:26pm UTC](https://community.mp3tag.de/t/rounding-bpm-value-up-or-down/8980 "2009-09-19T17:26:46Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Windjammer](https://community.mp3tag.de/user_avatar/community.mp3tag.de/windjammer/32/68_2.png) [@Windjammer](https://community.mp3tag.de/u/Windjammer)
#### Post date: [September 19, 2009, 5:26pm UTC](https://community.mp3tag.de/t/rounding-bpm-value-up-or-down/8980/1 "2009-09-19T17:26:46Z")

</div>

Hi Forum,

I use MixMeister to add BPM (Beats per Minute) information to all my tracks in the %BPM%-tag. This BPM value always comes out as a 2 decimal number in this format xxx.xx (ex. 123.45 or 12.34). iTunes will always only read the 2 or 3 first numbers before the . and just ignore the decimal points. This means that 123.99 will be read as 123 BPM and not 124 BPM which of cause is a lot closer to the true BPM.

I need a script to fix this problem for me. A script that rounds up/down to the closest integer. .00 to .49 rounded down and .50 to .99 rounded up to the next integer. Actually I only need the second part since iTunes just truncates the decimals anyway, but doing both will look nicer as a solution.

I'm pretty sure this can be done, just I'm not proficient enough to do it.

Kind Regards,

Matthias

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 19, 2009, 5:52pm UTC](https://community.mp3tag.de/t/rounding-bpm-value-up-or-down/8980/2 "2009-09-19T17:52:43Z")

</div>

I found some threads:  
[/t/7295/1](https://community.mp3tag.de/t/7295/1)  
[/t/4368/1](https://community.mp3tag.de/t/4368/1)

---

<div class="post-metadata">

### Author: ![Windjammer](https://community.mp3tag.de/user_avatar/community.mp3tag.de/windjammer/32/68_2.png) [@Windjammer](https://community.mp3tag.de/u/Windjammer)
#### Post date: [September 19, 2009, 7:16pm UTC](https://community.mp3tag.de/t/rounding-bpm-value-up-or-down/8980/3 "2009-09-19T19:16:20Z")

</div>

Thank you Dano for pointing that out, I did search for BPM using the search top right on this page but came up with no hits, guess I did something wrong...

//Matthias

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [September 19, 2009, 7:28pm UTC](https://community.mp3tag.de/t/rounding-bpm-value-up-or-down/8980/4 "2009-09-19T19:28:21Z")

</div>

The search engine does not support words with less than 4 characters.  
I used "round" as search term.  
But you can also try Google with  
site:community.mp3tag.de bpm

---

<div class="post-metadata">

### Author: ![Grant](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/a5b964/32.png) [@Grant](https://community.mp3tag.de/u/Grant)
#### Post date: [September 20, 2009, 3:22pm UTC](https://community.mp3tag.de/t/rounding-bpm-value-up-or-down/8980/5 "2009-09-20T15:22:39Z")

</div>

I use MixMeister to add BPM as well. I haven't found a way to round, but I created an action to truncate/drop off the rounding. I mean, 0.25 BPM is meaningless anyway.

Go to Convert Menu.  
Go to Action Group.

Make a new Action Group say, BPM Format.  
Start a new Action.  
Dialog box will read, "Select Action Type."  
Scroll to Format Value.

Format Value dialog box appears.  
Change Field to BPM (scroll down on the drop-down box).  
Set the format string to $num(%bpm%,3)

Click OK, Ok, Ok, and you're done.

Reply to this thread and let me know if this worked for you.

---

<div class="post-metadata">

### Author: ![EMCO](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/f14d63/32.png) [@EMCO](https://community.mp3tag.de/u/EMCO)
#### Post date: [December 7, 2024, 9:41pm UTC](https://community.mp3tag.de/t/rounding-bpm-value-up-or-down/8980/6 "2024-12-07T21:41:09Z")

</div>

Thanks it works fine.  
u can use also $num(%bpm%,2) for 10.?? to 99.?? also

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [January 6, 2025, 9:41pm UTC](https://community.mp3tag.de/t/rounding-bpm-value-up-or-down/8980/7 "2025-01-06T21:41:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
