Media
Génère des notes et gammes tempérées exactes à La=440, La=432 ou selon un diapason personnalisé.
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'http://127.0.0.1:3003/fr/api/tools/audio-tuning-reference-generator' \
-H 'Content-Type: application/json' \
-d '{"mode":"sustained","rootNote":"A","octave":4,"tuningA4Hz":440,"noteDurationSeconds":2,"outputFormat":"wav"}'Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
POST http://127.0.0.1:3003/fr/api/tools/audio-tuning-reference-generator| Nom | Type | Requis | Description |
|---|---|---|---|
| mode | select | Oui | — |
| rootNote | select | Oui | — |
| octave | number | Oui | — |
| tuningA4Hz | number | Oui | — |
| noteDurationSeconds | number | Oui | — |
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-audio-tuning-reference-generator": {
"name": "audio-tuning-reference-generator",
"description": "Génère des notes et gammes tempérées exactes à La=440, La=432 ou selon un diapason personnalisé.",
"baseUrl": "http://127.0.0.1:3003/mcp/sse?toolId=audio-tuning-reference-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "audio-tuning-reference-generator",
"arguments": {
"mode": "sustained",
"rootNote": "A",
"octave": 4,
"tuningA4Hz": 440,
"noteDurationSeconds": 2,
"outputFormat": "wav"
}
}
}Des questions ou un problème ? Contactez [email protected]
| outputFormat |
| select |
| Oui |
| — |
Résultat fichier
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}