/v1/transpose
Transpose notes
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/musictheory-api/v1/transpose" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/musictheory-api/v1/transpose", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/musictheory-api/v1/transpose");
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/musictheory-api/v1/transpose",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Each note shifted by the given number of semitones (negative transposes down). C +7 → G.",
"inputs": {
"notes": [
"C",
"E",
"G"
],
"semitones": 7
},
"transposed": [
"G",
"B",
"D"
],
"transposed_string": "G B D"
},
"meta": {
"timestamp": "2026-06-05T19:50:12.131Z",
"request_id": "deade6c3-59ca-4eb2-aa17-5b0d0da4a33b"
},
"status": "ok",
"message": "Transpose",
"success": true
}