Meet Melodybot, Drumbot's cousin. Melodybot loves two things: APIs and Keytars.
Melodybot played in the many bands during the heyday of the keytar, until the greatest instrument in all the world inexplicably fell out of favor. When the gigs dried up, Melodybot was reduced to playing alone in a basement with no audience for its beautiful keytarian stylings.
After hitting rock bottom, Melodybot enrolled in a coding bootcamp. Immediately upon graduation it went to work creating this API to serve you endless keytar lines. 🔥
Melodybot's API has two endpoints.
GET https://api.noopschallenge.com/melodybot/patterns
{
"generator": "random",
"stepCount": 32,
"key": {
"name": "A Major", "root": "A", "relativeMajorRoot": "A", "type": "major"
},
"notes": [
{
"start": 0,
"duration": 2,
"value": 64,
"name": "E4",
"noteName": "E",
"octave": 4,
"frequency": 329.6275569128699
},
...
]
}
Melodybot has different generators used to create these sizzling keytar lines.
GET https://api.noopschallenge.com/melodybot/generators
[
{ "name": "chaos", "description": "Chaotic Neutral Melody Generator" },
{ "name": "arpeggio", "description": "Generate Arpeggios" },
{ "name": "walk", "description": "Random Walk" }
]
You can specify the key and/or the generator used to generate the melody
GET /melodybot/random?generator=arpeggio&key=D%20Minor
Read the API documentation for all the details!
To get you started, Melodybot has provided you with a web synthesizer that talks to the API and plays melodies in the browser.
If you're on a mobile device, you might need to plug in headphones.
See who has recently forked this repository...
Want to hear about new challenges and updates?