Skip to content
Fourohtwo

Estimate the tempo (BPM) and the musical key of a music file

ton.halowerk.com/v1/bpm-key-detect

Estimate the tempo (BPM) and the musical key of a music file: onset autocorrelation for tempo, peak chroma with Krumhansl-Kessler profiles for key, with confidence values. Decodes up to 10 minutes (mono mix, 22.05 kHz) with ffmpeg and analyses it in JavaScript.

BaseAnswering
POSThttps://ton.halowerk.com/v1/bpm-key-detect

Uptime100% of 4 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://ton.halowerk.com/v1/bpm-key-detect", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"audio_url":"https://ton.halowerk.com/beispiel/bpm-key-detect-audio.flac"}),
});
console.log(await res.json());

Example input

{
  "audio_url": "https://ton.halowerk.com/beispiel/bpm-key-detect-audio.flac"
}