monking / tunewich

Like a spice clock for your ears, or a place without time.
0 stars 0 forks source link

Tunewich

A music player built on loops and samples extracted on the fly. Supports HTML5-playable audio and YouTube videos.

Features

Installation

Copy library.example.json to library.json, and populate it with your own music. For audio files, create the /audio directory and place your files at whatever depth in this directory. For YouTube videos, enter only the video ID (the bit after "http://www.youtube.com/watch?v=" in the video URL).

Library

Tracks in the library have the following attributes:

Rules

Rules determine whether a track will be allowed to play at a given time. Tracks without rules are treated as if they always have an active regular rule.

Format:

    "rules":"<priority (optional)>{<start time>-<end time>} ..."

e.g. "rules":"{08:00-05:00} +{18:00-18:30}"

Each rule string can contain multiple rule definitions. Time periods are <start time> inclusive, <end time> exclusive. Rules which span midnight will behave as expected (e.g. {23:00-01:00} will be in the playlist for two hours).

Priorities:

Negative rules trump regular rules, and exclusive rules trump both others.

Credit

This project was inspired by the realtime Animal Crossing playlist at http://tane.us/ac/, which I found by its mention in an interview with animator Mariel Cartwright.