Coder Social home page Coder Social logo

lucy-in-the-sky-with-emotion's Introduction

Lucy In The Sky With Emotion

COMP241-17A project for visualizing emotions in songs

This project was split into two halves, an emotion detection and a visualiser.

The emotion project can be found at /Emotion/. This contains the python files to run the emotion side.

The visualiser project can be found at /Visualiser/. This contains the necessary files to build the visualiser in unity

To run the project, the visualiser project will need to be built and the python emotion detection script will need to be given the location of the built visualiser.

Authors

Project Managers

Emotion Detection In Music

Settings.json

Remember to edit settings.json

Go to https://developer.spotify.com/my-applications/ and make an app to get your keys as we are not allowed to distribute our own keys.

Layout

  • main.py: Imports GUI and links modules, does all functions
  • GUI.py: Stores GUI code
  • emotion_helper.py: Modules needed to do large activities in main.py

Requirements

Installation Instructions

  1. Install python 3.5 (3.5.2 if you want to know a specific version, but it can be any).
  2. If using Windows, run install_dependencies.bat. If not using windows, run the pip commands in the bat file. This will install most of the modules.
  3. Install scipy by first dowloading it at http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy and then running 'pip install '.
  4. Install numpy+mkl by first dowloading it at http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy and then running 'pip install '.
  5. Copy the folder /Emotion/ as this is the main project file.
  6. Build the visualiser and edit the paths in the following files in main.py:
    • Lines 123 and 125 to the locations of the desired output (123 for song files and 125 for the CSV file)
    • Line 156 to the executabe to star the visualiser
  7. Read about issues
  8. Run main.py

If you have any issues, feel free to contact Brent.

Issues

Currently the visualiser cannot take in dynamic input for audio. CSV files are still read in dynamically and will change based on what song is selected when the visualise button is clicked.

This means music that was used in the building of the visualiser will be the only audio that the vislaiser plays, however the data that the visualiser reads from the CSV to manipulate some functions will still be used.

To temprarily fix this so incorrect data is not displayed can be easily fixed by commenting out lines 153 to 155 in main.py. This will disable the CSV wrting so the original CSV file will still be passing the correct data.

Visualisation of Music

Instructions need to be added

lucy-in-the-sky-with-emotion's People

Contributors

basedrhys avatar brentvollebregt avatar dylanexton avatar ryanlequesne avatar sashsinha avatar swikrit avatar woodsy1fd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.