Skip to content

A Slackbot that uses the Amper Music API to generate and share customized AI music, written in Haskell using the Servant library

License

Notifications You must be signed in to change notification settings

thealexgraham/slack-composer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

slack-composer

slack-composer is a Slack bot for creating and sharing AI music using the Amper API.

Built to deploy on a Heroku instance using the following buildpack:

https://github.com/thealexgraham/heroku-buildpack-ghc

To deploy, set an environment variable called API_KEY to your Amper API key and push the app to Heroku. If you would like to store the compositional information for later use, you can add the optional DATABASE_URL as a third argument (see Procfile).

To run in another environment, run the amperbot executable with the following arguments:

slack-composer --port {PORT} --api-key {API_KEY} --database {DATABASE_URI}

To set up the Slack bot, create an app with a slash command that points to https://your-url.com/compose.

Note: This is a personal project and is not affliated officially with Amper Music. All code in this project was written independantly based off of publicly available information from http://docs.ampermusic.com/.

About

A Slackbot that uses the Amper Music API to generate and share customized AI music, written in Haskell using the Servant library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages