BPM analyzer for AudioClips - please be aware that currently the detection isn't very accurate. NOTE: partially based on: https://github.com/WestHillApps/UniBpmAnalyzer More...

Inheritance diagram for Crosstales.DJ.Tool.BPMAnalyzer:

Classes

struct  BpmMatchData
 

Public Member Functions

int AnalyzeBPM ()
 Analyze BPM from the set AudioSource. More...
 

Static Public Member Functions

static int AnalyzeBPM (float[] data, int frequency=44100, int channels=2, int sampleSplit=100)
 Analyze BPM from the given PCM audio data. More...
 
static int AnalyzeBPM (AudioClip clip, int sampleSplit=100)
 Analyze BPM from the given audio clip. More...
 

Public Attributes

AudioSource Source
 
int SampleSplit = 100
 
bool AutoAnalyze = false
 
Crosstales.DJ.BasePlayer Player
 

Properties

int LastBPM [get]
 

Detailed Description

BPM analyzer for AudioClips - please be aware that currently the detection isn't very accurate. NOTE: partially based on: https://github.com/WestHillApps/UniBpmAnalyzer

Member Function Documentation

◆ AnalyzeBPM() [1/3]

int Crosstales.DJ.Tool.BPMAnalyzer.AnalyzeBPM ( )

Analyze BPM from the set AudioSource.

Returns
Beats per minute

◆ AnalyzeBPM() [2/3]

static int Crosstales.DJ.Tool.BPMAnalyzer.AnalyzeBPM ( AudioClip  clip,
int  sampleSplit = 100 
)
static

Analyze BPM from the given audio clip.

Parameters
clipTarget audio clip
sampleSplitSplit for the samples. A higher value increases the accuracy but needs more time (default: 100, optional).
Returns
Beats per minute

◆ AnalyzeBPM() [3/3]

static int Crosstales.DJ.Tool.BPMAnalyzer.AnalyzeBPM ( float[]  data,
int  frequency = 44100,
int  channels = 2,
int  sampleSplit = 100 
)
static

Analyze BPM from the given PCM audio data.

Parameters
dataAudio data as PCM-float array.
frequencyFrequency of the audio data (default: 44100, optional).
channelsFrequency of the audio data (default: 2, optional).
sampleSplitSplit for the samples. A higher value increases the accuracy but needs more time (default: 100, optional).
Returns
Beats per minute

The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/DJPro/DJPro/Assets/Plugins/crosstales/DJ/Extras/BPMAnalyzer/Scripts/BPMAnalyzer.cs