Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casassg/sonome
Random melody generation from a text or from Twitter users
https://github.com/casassg/sonome
music sentiment twitter
Last synced: 9 days ago
JSON representation
Random melody generation from a text or from Twitter users
- Host: GitHub
- URL: https://github.com/casassg/sonome
- Owner: casassg
- License: mit
- Created: 2017-12-09T02:09:39.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T23:48:08.000Z (almost 2 years ago)
- Last Synced: 2024-10-08T08:41:03.840Z (about 1 month ago)
- Topics: music, sentiment, twitter
- Language: Python
- Homepage:
- Size: 26.7 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](http://www.fluidsynth.org/)1. `git clone https://github.com/casassg/sonome && cd sonome`
2. `virtualenv env`
3. Activate virtualenv: `. ./env/bin/activate` or `./env/Scripts/activate` (if you are on Windows)
4. `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:
1. Register a new [twitter app](https://apps.twitter.com/)
2. 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 secretThis repository already includes tweets from: @maggierogers, @cnn, @terns and @realDonaldTrump
## Run
1. Activate virtualenv: `. ./env/bin/activate` or `./env/Scripts/activate` (if you are on Windows)
2. `python main.py`## Commands available
- `text `: Creates song based on text_to_analyze
- `user `: 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 explanatory
- `about`: Prints about information## LICENSE
MIT © Gerard Casas