stc / HackWeek

Repository from Github https://github.comstc/HackWeekRepository from Github https://github.comstc/HackWeek

HackWeek

Thoughts, experiments, code, fun

RNN Music Engine

Terraforming Earth exports music parameters every second to $SAVE_DIR/music.json, serve this over a simple HTTP server, along with the music-rnn directory. The save dir can be found by this doc. On macOS it's "$HOME/Library/Application Support/LOVE/Terraforming-Earth" if running in dev mode, and "$HOME/Library/Application Support/Terraforming-Earth" if running the production build.

HOME=~
SAVE_DIR="$HOME/Library/Application Support/LOVE/Terraforming-Earth"
REPO_DIR=$(pwd)
ln -s "$REPO_DIR/music-rnn" "$SAVE_DIR/genmusic"
cd "$SAVE_DIR"
python -m SimpleHTTPServer &
open http://localhost:8000/genmusic

Sometimes the simple HTTP server doesn't fetch the fresh music.json or something. If the music engine doesn't react to the game, open music.json in your browser.

open http://localhost:8000/music.json

MusicVAE UI

You can find a quick fork of https://teampieshop.github.io/latent-loops/ to explore MusicVAE's abilities interpolating between melodies with a nice ui. Go to Readme for setup instructions.

Generator

Headless VAE based melody interpolator, based on this. To be used with the video-background-music generator app. To test: launch local server and open index.html

About


Languages

Language:JavaScript 100.0%Language:HTML 0.0%Language:CSS 0.0%