Vai al contenuto principale
SUNO ci consente di effettuare una seconda creazione sulla musica generata, ottenendo il MIDI della musica. Questo documento spiega come integrare le API correlate. Il parametro di input principale di questa API è audio_id, che è l’ID della canzone generata ufficialmente, generalmente è l’ID della canzone con tracce separate (corrispondente al parametro action in generazione canzone impostato su all_stems). È facoltativo anche supportare callback_url come indirizzo di callback asincrono. Qui l’audio_id che inseriamo è c65e6ffd-ead3-4926-9c8c-a42ce202946b.
Il risultato è il seguente:
{ “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 },
Si può vedere che i campi in data sono le informazioni MIDI della canzone dopo la separazione dell’intera traccia.