Skip to content
Track any word or hashtag into Twitter and have each tweet converted into MIDI, or musical information, that is sent to a port on your computer which can then be read by any program reading MIDI information that port number.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
TwittMus.py

README.md

TwittMus - Tweet to Midi Conversion

Track any word or hashtag into Twitter and have each tweet converted into MIDI, or musical information, that is sent to a port on your computer which can then be read by any program reading MIDI information via that port number.

Installation

1. Download

You can download this repository directly from GitHub and place the files where you want to run the program from.

2. Tweepy

TwittMus uses the Tweepy library to execute to scan for and stream tweets to the program. You must also install the Tweepy module. See available instructions on how to install here.

3. Obtaining Twitter Access

API authentication is required. Twitter doesn't like anonymous people taking their stuff, so you will need to get special credentials by creating your own app using a Twitter acccount you have accces to. This allow you to fill in the values assigned to the variables ckey, csecret, atoken, and asecret to the file. You can create an using your Twitter account here.

3. Opening up a port to receive MIDI

There are number of ways to accomplish this. Refer to Ableton's guide for Mac and Windows here

4. RtMidi

TwittMus requires one more module to send MIDI information to the desired port. You can find and install it here.

Notes

TwittMus is programmatically set to play the notes assigned to each character in a one-by-one fashion. See the code's comments to learn where you can edit parameters to create your own parameters.

You can’t perform that action at this time.