Sonome
Random melody generation from a text or from Twitter users. Developed as an assigment for CSCI 5839 at CU Boulder. It may be unstable, please fill issues if you find any errors :)
Set up
Requirements: python, virtualenv, fluidsynth
git clone https://github.com/casassg/sonome && cd sonome
virtualenv env
- Activate virtualenv:
. ./env/bin/activate
or./env/Scripts/activate
(if you are on Windows) pip install -r requirements.txt
Download new Twitter users
This project allows you to download the latest 3200 tweets of a user. To do so you will need to do the following:
- Register a new twitter app
- Add the following enviroment variables:
- ACCESS_TOKEN = Your application access token
- ACCESS_TOKEN_SECRET = Your application access token secret
- CONSUMER_KEY = Your consumer key
- CONSUMER_SECRET = Your consumer secret
This repository already includes tweets from: @maggierogers, @cnn, @terns and @realDonaldTrump
Run
- Activate virtualenv:
. ./env/bin/activate
or./env/Scripts/activate
(if you are on Windows) python main.py
Commands available
text <text_to_analyze>
: Creates song based on text_to_analyzeuser <twitter_user_to_analyze>
: Gets a random tweet from specified user and creates song. Will download tweets from user timeline if it hasn't been downloaded before. Requires the previously mentioned environment variables to run.quit
: Self explanatoryabout
: Prints about information
LICENSE
MIT © Gerard Casas