Skip to content

marwahaha/TwitchPlaysMusic

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 5 commits ahead, 23 commits behind hzoo:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Generate sheet music in MuseScore from Twitch chat, like TwitchPlaysPokemon

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 79.4%
  • Python 20.6%