Convert separated audio tracks into MIDI format with detailed note information for each instrument.
| Name | Type | Description |
|---|---|---|
taskId | string | Required. Task ID from a completed vocal separation. |
callBackUrl | string | Optional. URL to receive MIDI generation completion notifications. |
audioId | string | Required. Specifies which separated audio track to generate MIDI from. This audioId can be obtained from the originData array in the separation task result (Get Task Details). Each item in originData contains an id field that can be used here. |
pitch (MIDI note number), start (seconds), end (seconds), velocity (0-1).curl --location 'https://api.emix.ai/api/v1/client/tasks' \
--header 'Content-Type: application/json' \
--data '{
"model": "suno/generate-midi-from-audio",
"callBackUrl": "https://example.callback",
"input": {
"taskId": "5c79****be8e",
"audioId": "8ca376e7-******-08aaf2c6dd27"
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "5c79****be8e"
}
}