Some time ago I wrote this little script (I called it beatcalculator).

Pretty straightforward command line utility, use the switch –help to get help.

Here is the script, exported from emacs with htmlize-buffer: beatcalculator.

Copy and paste this code into a file called beatcalculator, put that file in your $PATH and give it execution privileges with chmod +x.

Then you can use it on the command line as simple calculator, providing the bpm you want to examine, or you can ask to analyze a wave file. you have to specify the number of bars contained in the wav file and optionally the meter (defaults to 4/4)

Here’s an example of the output you get (with a file with 2 bars of music):

 $ beatcalculator -f afroeira123.6.wav -B 2 Meter is 4/4 --------------------------------------------------------------------------- afroeira123.6.wav is 3883 milliseconds Bpm of afroeira123.6.wav is 123.62 123.62 beats per minute (bpm): Note Delay time…

Ver la entrada original 95 palabras más


Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s

A %d blogueros les gusta esto: