Generate sheet music in MuseScore from Twitch chat, like TwitchPlaysPokemon
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 5 commits ahead, 1 commit behind hzoo:master.
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.
app
.editorconfig
.gitignore
.jscsrc
.jshintrc
LICENSE
README.md
package.json

README.md

Twitch Plays Music

(inspired by TwitchPlaysPokemon and made with TwitchPlaysX)

Sends live Twitch chat into a Python script, generating on-the-fly sheet music with MuseScore.

This uses the IRC from a Twitch channel, processes it with music21, and outputs with MuseScore.

Tested on Mac, and should also work on Linux machines. Probably works on Windows machines.

Installation (node, etc)

git clone https://github.com/hzoo/TwitchPlaysX.git
cd TwitchPlaysX
npm install

Setup

Create config.json

Create a config.json file in the root directory of this project. To get your Oauth token, go to http://www.twitchapps.com/tmi.

The config options are used in the config.js file.

// example config.json
// you can also set the environment variables in node (for heroku)
{

    "TWITCH_OAUTH": "OAUTH_HERE",
    "TWITCH_USERNAME": "TWITCH_NAME_HERE",
    "TWITCH_CHANNEL": "#CHANNEL_HERE",
    "CONFIG_MAX_CHAR_NAME": 9,
    "CONFIG_MAX_CHAR_COMMAND": 20,
    "CONFIG_SEND_KEY": true,
    "CONFIG_SHEET_MUSIC_GENERATION_TIME": 4000,
    "CONFIG_FILTERED_COMMANDS": [],
    "CONFIG_THROTTLED_COMMANDS": [],
    "CONFIG_REGEXCOMMANDS": "^[A-G][b#-]?[1-7]?$"
}

Running It!

# go to the root folder, make sure you did `npm install`, then
npm start

Contributions

Feel free to give suggestions or report bugs