Giter Site home page Giter Site logo

gauthammk / chord-progression-generator-api Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 2.0 3.96 MB

A handy tool to automatically generate chord progressions based on a selected mood.

Python 81.17% Shell 18.83%
python3 flask rest-api chords spotify-api hooktheory-api

chord-progression-generator-api's Introduction

Chord Progression Generator

A handy tool to automatically generate chord progressions based on a selected mood. Built with the Hooktheory API and Spotipy.

Dataset creation

  1. Get an API key from https://www.hooktheory.com and add it to a file called APIKey.txt.

  2. Obtain authentication to the Spotify API by creating the SPOTIPY_CLIENT_ID AND SPOTIPY_CLIENT_SECRET environment variables. They are availaible on the Spotify for Developers Dashboard

  3. Run the dataset creation script:

    python3 fetch_progressions.py
    

    The dataset is created by first finding one chord progressions, discarding the progressions with low probability(< 0.05), finding two chord progressions from the previously obtained one chord progressions, discarding the low probability ones, and so on.

  4. Run the database creation script with the following command:

    python3 mine_emotions.py
    

    Note: only emotions for four chord progressions have been considered for ease of usage.

Live Version

Heroku

A simplified version with 50 chord progressions has been deployed to https://chord-progression-generator.herokuapp.com

Resources

chord-progression-generator-api's People

Contributors

gauthammk avatar iyengargaru avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.