import { computeTempoBuckets } from './compute-tempo-buckets';
export const analyze = (channelData, sampleRate, tempoSettings) => {
    const tempoBuckets = computeTempoBuckets(channelData, sampleRate, tempoSettings);
    if (tempoBuckets.length === 0) {
        throw new Error('The given channelData does not contain any detectable beats.');
    }
    return tempoBuckets[0].tempo;
};
//# sourceMappingURL=analyze.js.map