Getting chords for a song structure
Now that you've got your song's foundation in place, it's time to add some harmony with chords! To do this, make a POST request to the /addChordsToSong
endpoint with the
following parameters:
Get chords for a song structure
POST /addChordsToSong HTTP/1.1
Host: staging.casperaki.com
{
"style": "edm",
"tempo": "120",
"key": "G",
"songStructure": [
{
"segment": "intro",
"lengthInBars": 4
},
{
"segment": "verse1",
"lengthInBars": 16
},
{
"segment": "preChorus1",
"lengthInBars": 8
},
{
"segment": "chorus1",
"lengthInBars": 16
},
{
"segment": "verse2",
"lengthInBars": 16
},
{
"segment": "preChorus2",
"lengthInBars": 8
},
{
"segment": "chorus2",
"lengthInBars": 16
},
{
"segment": "bridge",
"lengthInBars": 8
},
{
"segment": "chorus3",
"lengthInBars": 16
},
{
"segment": "outro",
"lengthInBars": 8
}
]
}
This will give you the chords for your song structure based on the specified style, tempo, key, and song structure. You can customize your chord progression by specifying additional parameters to create a unique sound that reflects your artistic vision.