Saltar al contenido principal
SUNO nos permite realizar una segunda creación de la música generada, obteniendo el MIDI de la música. Este documento explica cómo integrar la API relacionada. El parámetro de entrada principal de esta API es audio_id, que es el ID de la canción generada oficialmente, generalmente es el ID de la canción con todas las pistas separadas (correspondiente al generación de canciones donde el parámetro action es all_stems). Opcionalmente, también se admite la dirección de callback callback_url para la devolución de llamada asíncrona. El audio_id que ingresamos aquí es c65e6ffd-ead3-4926-9c8c-a42ce202946b.
El resultado es el siguiente:
{ “pitch”: 60, “start”: 52.104166666666664, “end”: 52.234375, “velocity”: 0.49606299212598426 }, { “pitch”: 62, “start”: 52.505208333333336, “end”: 52.635416666666664, “velocity”: 0.49606299212598426 }, { “pitch”: 60, “start”: 53.046875, “end”: 53.239583333333336, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 53.447916666666664, “end”: 54.036458333333336, “velocity”: 0.49606299212598426 }, { “pitch”: 60, “start”: 54.229166666666664, “end”: 54.359375, “velocity”: 0.49606299212598426 }, { “pitch”: 60, “start”: 54.630208333333336, “end”: 54.760416666666664, “velocity”: 0.49606299212598426 }, { “pitch”: 60, “start”: 55.03125, “end”: 55.161458333333336, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 55.651041666666664, “end”: 55.796875, “velocity”: 0.49606299212598426 }, { “pitch”: 55, “start”: 56.067708333333336, “end”: 56.197916666666664, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 56.46875, “end”: 56.598958333333336, “velocity”: 0.49606299212598426 }, { “pitch”: 69, “start”: 56.869791666666664, “end”: 57.130208333333336, “velocity”: 0.49606299212598426 }, { “pitch”: 64, “start”: 57.130208333333336, “end”: 57.921875, “velocity”: 0.49606299212598426 }, { “pitch”: 64, “start”: 58.213541666666664, “end”: 58.34375, “velocity”: 0.49606299212598426 }, { “pitch”: 62, “start”: 58.614583333333336, “end”: 58.744791666666664, “velocity”: 0.49606299212598426 }, { “pitch”: 60, “start”: 59.015625, “end”: 59.145833333333336, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 59.416666666666664, “end”: 59.942708333333336, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 61.510416666666664, “end”: 61.640625, “velocity”: 0.49606299212598426 }, { “pitch”: 55, “start”: 61.640625, “end”: 62.036458333333336, “velocity”: 0.49606299212598426 }, { “pitch”: 55, “start”: 62.234375, “end”: 62.364583333333336, “velocity”: 0.49606299212598426 }, { “pitch”: 60, “start”: 62.635416666666664, “end”: 62.765625, “velocity”: 0.49606299212598426 }, { “pitch”: 62, “start”: 62.765625, “end”: 63.557291666666664, “velocity”: 0.49606299212598426 }, { “pitch”: 62, “start”: 63.71875, “end”: 63.854166666666664, “velocity”: 0.49606299212598426 }, { “pitch”: 64, “start”: 64.11458333333333, “end”: 64.25520833333333, “velocity”: 0.49606299212598426 }, { “pitch”: 62, “start”: 64.51041666666667, “end”: 64.65625, “velocity”: 0.49606299212598426 }, { “pitch”: 60, “start”: 64.91145833333333, “end”: 65.05729166666667, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 65.3125, “end”: 65.85416666666667, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 67.35416666666667, “end”: 67.484375, “velocity”: 0.49606299212598426 }, { “pitch”: 55, “start”: 67.75520833333333, “end”: 67.88541666666667, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 68.15104166666667, “end”: 68.28125, “velocity”: 0.49606299212598426 }, { “pitch”: 69, “start”: 68.546875, “end”: 68.80729166666667, “velocity”: 0.49606299212598426 }, { “pitch”: 64, “start”: 68.80729166666667, “end”: 68.9375, “velocity”: 0.49606299212598426 }, { “pitch”: 64, “start”: 69.203125, “end”: 69.72916666666667, “velocity”: 0.49606299212598426 }, { “pitch”: 64, “start”: 69.92708333333333, “end”: 70.05729166666667, “velocity”: 0.49606299212598426 }, { “pitch”: 62, “start”: 70.328125, “end”: 70.45833333333333, “velocity”: 0.49606299212598426 }, { “pitch”: 60, “start”: 70.72916666666667, “end”: 70.859375, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 71.13020833333333, “end”: 71.65625, “velocity”: 0.49606299212598426 }, { “pitch”: 57, “start”: 73.203125, “end”: 73.47395833333333, “velocity”: 0.49606299212598426 }, { “pitch”: 55, “start”: 73.46875, “end”: 73.60416666666667, “velocity”: 0.49606299212598426 }, { “pitch”: 55, “start”: 73.609375, “end”: 73.73958333333333, “velocity”: 0.49606299212598426 }, { “pitch”: 55, “start”: 73.86979166666667, “end”: 74.265625, “velocity”: 0.49606299212598426 },
Se puede ver que los campos en data son la información MIDI de la canción después de la separación de la pista completa.