/v1/scale
Scale notes from root + type
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/musicnote-api/v1/scale" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/musicnote-api/v1/scale", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/musicnote-api/v1/scale");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/musicnote-api/v1/scale",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"root": "C4",
"notes": [
{
"midi": 60,
"note": "C4",
"enharmonic": null,
"frequency_hz": 261.6256
},
{
"midi": 62,
"note": "D4",
"enharmonic": null,
"frequency_hz": 293.6648
},
{
"midi": 64,
"note": "E4",
"enharmonic": null,
"frequency_hz": 329.6276
},
{
"midi": 65,
"note": "F4",
"enharmonic": null,
"frequency_hz": 349.2282
},
{
"midi": 67,
"note": "G4",
"enharmonic": null,
"frequency_hz": 391.9954
},
{
"midi": 69,
"note": "A4",
"enharmonic": null,
"frequency_hz": 440
},
{
"midi": 71,
"note": "B4",
"enharmonic": null,
"frequency_hz": 493.8833
},
{
"midi": 72,
"note": "C5",
"enharmonic": null,
"frequency_hz": 523.2511
}
],
"scale": "major",
"intervals": [
0,
2,
4,
5,
7,
9,
11
]
},
"meta": {
"timestamp": "2026-06-03T17:42:12.147Z",
"request_id": "3e8ab023-933d-44dc-913d-728ab490da28"
},
"status": "ok",
"message": "Scale",
"success": true
}