bpmdetect 0.8.11
Automatic BPM detection tool
Loading...
Searching...
No Matches
utils.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-3.0-or-later
3#pragma once
4
5#include <QtCore/QCommandLineParser>
6#include <QtCore/QCoreApplication>
7#include <QtCore/QSpan>
8#include <QtCore/QString>
9
10#pragma clang unsafe_buffer_usage begin
17template <typename T>
18QSpan<T> unsafeSpan(T *pointer, qsizetype size) {
19 return QSpan(pointer, size);
20}
21#pragma clang unsafe_buffer_usage end
22
24typedef double bpmtype;
25
31bpmtype stringToBpm(const QString &sBpm);
32
40QString bpmToString(bpmtype dBpm, const QString &format = QStringLiteral("0.00"));
41
ssize_t qsizetype
void parseCommandLine(QCommandLineParser &parser, const QCoreApplication &app)
Definition utils.cpp:31
QString bpmToString(bpmtype dBpm, const QString &format=QStringLiteral("0.00"))
Definition utils.cpp:12
bpmtype stringToBpm(const QString &sBpm)
Definition utils.cpp:4
double bpmtype
Definition utils.h:24
QSpan< T > unsafeSpan(T *pointer, qsizetype size)
Definition utils.h:18