如何在php中检测歌曲的BPM [英] How to detect the BPM of a song in php

查看:22
本文介绍了如何在php中检测歌曲的BPM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何以编程方式确定歌曲的速度/BPM?常用的算法有哪些,需要注意哪些?

How can the tempo/BPM of a song be determined programmatically? What algorithms are commonly used, and what considerations must be made?

推荐答案

在一篇 StackOverflow 帖子中很难解释这一点.一般来说,最简单的节拍检测算法通过定位声能中的峰值来工作,这很容易检测.更复杂的方法使用梳状滤波器和其他统计/波形方法.有关包括代码示例在内的详细说明,请查看这篇 GameDev 文章 出.

This is challenging to explain in a single StackOverflow post. In general, the simplest beat-detection algorithms work by locating peaks in sound energy, which is easy to detect. More sophisticated methods use comb filters and other statistical/waveform methods. For a detailed explication including code samples, check this GameDev article out.

这篇关于如何在php中检测歌曲的BPM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆