|
bpmdetect 0.8.11
Automatic BPM detection tool
|
#include <QtCore/QMap>#include <QtCore/QVariant>
Go to the source code of this file.
Functions | |
| bool | isDecodableFile (const QString &file) |
| bool | storeBpmInFile (const QString &fileName, const QString &sBpm) |
| bool | removeBpmFromFile (const QString &fileName) |
| QMap< QString, QVariant > | readTagsFromFile (const QString &fileName) |
| QString | getLastError () |
| QString getLastError | ( | ) |
Get the last error message.
| bool isDecodableFile | ( | const QString & | file | ) |
Check if a file can be decoded using ffmpeg.
Tag reader using ffmpeg. Gets artist, title, bpm and length (in milliseconds) and puts them in a map.
| fileName | The path to the audio file. |
| bool removeBpmFromFile | ( | const QString & | fileName | ) |
Remove BPM metadata from audio file.
If this is a MP3 file, the TBPM tag of ID3v2 will be removed. Other formats will have the generic "BPM" tag removed.
| fileName | The path to the audio file. |
Store BPM to audio file.
If this is a MP3 file, the BPM will be stored in the TBPM tag of ID3v2. Other formats will have the BPM saved in a generic "BPM" tag. This will return false in those cases as well as for any errors.
| fileName | The path to the audio file. |
| sBpm | The BPM value to store. |