Audio to MIDI
Processes an audio file and converts it into a MIDI file. Optionally, it can also generate a sonified .wav file and a CSV of note events. This request is handled asynchronously.
Convert an audio file into a MIDI file using AI-driven audio analysis and transcription.
The Audio to MIDI endpoint processes audio files to generate MIDI sequences. It can optionally create a sonified .wav
file of the MIDI output and export note events into a .csv
file for further analysis or editing.
Ideal for music production, remixing, and advanced audio content creation.
๐ก Endpoint
This is the primary endpoint for initiating audio-to-MIDI conversion tasks.
โถ๏ธ Sample Output
Generated MIDI and optional outputs from a sample audio file:
Download MIDI(.mid) Download Sonified MIDI(.wav)๐งช Try it Yourself
Visit the Audio to MIDI Endpoint Explorer to test it live. Upload an audio file, and get back the MIDI version!
๐ ๏ธ Request Parameters
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
audio_path | String | โ Yes | - | The S3 path of the input audio file to convert. |
sonify_midi | Boolean | Optional | true | If true , generates a .wav file that plays the MIDI output. |
save_note_events | Boolean | Optional | true | If true , saves predicted note events as a .csv file. |
webhook_url | String | Optional | "" | Callback URL for asynchronous result delivery. |
๐ก Note:
audio_path
must be a valid and accessible S3 URL.
๐ค Sample Request
๐ cURL
๐ Python
๐ Replace
api_key
,audio_path
, andwebhook_url
with your own values before sending.
๐ฅ Sample Response
โ Success (200 OK)
โ Common Errors
- 400 Bad Request: Invalid
audio_path
or missing required parameters. - 404 Not Found: Provided audio file not found in S3.
- 422 Unprocessable Entity: Unsupported audio format.
- 500 Internal Server Error: An unexpected error occurred while processing.
๐ Webhook Response
When the conversion process completes, if a webhook_url
was provided, the system sends a POST request:
You can download your generated files using the provided URLs.
Payload and Request Formation
Make sure the JSON payload is well-formed and all mandatory fields are included when sending the request.
Authorizations
Body
Response
MIDI conversion task initiated successfully
The response is of type object
.