jhurliman/allinone-targetbpm
Analyzes music structure (BPM, beats, segments) with optional BPM locking to fix tempo misdetection
Run jhurliman/allinone-targetbpm with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| audio |
string
|
Audio file to analyze (WAV, MP3, AIFF, FLAC, OGG, etc.)
|
|
| target_bpm |
number
|
Target BPM to lock analysis to. If provided, sets bpm_min=target_bpm-1 and bpm_max=target_bpm+1.
|
|
| bpm_min |
number
|
Minimum BPM constraint for beat tracking. Ignored if target_bpm is set. Default: 55 BPM.
|
|
| bpm_max |
number
|
Maximum BPM constraint for beat tracking. Ignored if target_bpm is set. Default: 240 BPM.
|
|
| model |
None
|
harmonix-all
|
Pretrained model to use. 'harmonix-all' is an ensemble of all 8 folds (recommended).
|
{
"type": "object",
"title": "Input",
"required": [
"audio"
],
"properties": {
"audio": {
"type": "string",
"title": "Audio",
"format": "uri",
"x-order": 0,
"description": "Audio file to analyze (WAV, MP3, AIFF, FLAC, OGG, etc.)"
},
"model": {
"enum": [
"harmonix-all",
"harmonix-fold0",
"harmonix-fold1",
"harmonix-fold2",
"harmonix-fold3",
"harmonix-fold4",
"harmonix-fold5",
"harmonix-fold6",
"harmonix-fold7"
],
"type": "string",
"title": "model",
"description": "Pretrained model to use. 'harmonix-all' is an ensemble of all 8 folds (recommended).",
"default": "harmonix-all",
"x-order": 4
},
"bpm_max": {
"type": "number",
"title": "Bpm Max",
"x-order": 3,
"nullable": true,
"description": "Maximum BPM constraint for beat tracking. Ignored if target_bpm is set. Default: 240 BPM."
},
"bpm_min": {
"type": "number",
"title": "Bpm Min",
"x-order": 2,
"nullable": true,
"description": "Minimum BPM constraint for beat tracking. Ignored if target_bpm is set. Default: 55 BPM."
},
"target_bpm": {
"type": "number",
"title": "Target Bpm",
"x-order": 1,
"nullable": true,
"description": "Target BPM to lock analysis to. If provided, sets bpm_min=target_bpm-1 and bpm_max=target_bpm+1."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output"
}