findDownbeatPhase
findDownbeatPhase(
audioData,beats,tempo,sampleRate):object
Defined in: packages/pleco-xa/src/scripts/xa-downbeat.js:18
Find the true downbeat phase by analyzing onset patterns Much simpler and more reliable than complex spectral analysis
Parameters
Section titled “Parameters”audioData
Section titled “audioData”any
any
any
sampleRate
Section titled “sampleRate”any
Returns
Section titled “Returns”object
downbeats
Section titled “downbeats”downbeats:
any[] =correctedBeats
phase:
number=bestPhase
phaseScores
Section titled “phaseScores”phaseScores:
number[]