GithubHelp home page GithubHelp logo

sicchio / terpsicode-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sarahghp/terpsicode

0.0 1.0 0.0 7.47 MB

a live coding language for dance

License: Creative Commons Zero v1.0 Universal

JavaScript 97.74% CSS 2.02% HTML 0.24%

terpsicode-1's Introduction

terpsicode

a live coding language for dance

How It Works

The core of the language is the move, which comprises a number and a move name:

5 jump

The move name can be any folder name within the tagged directory. If the number of moves given exceeds the total possible number of moves, the maximum moves will be returned. The maximum moves can also be called for with the all modifier.

all jump

Typing a move into the input and hitting enter adds the move to the end of the current cycle. Using the โ†‘ and โ†“ keys cycles through previous commands.

Timing

Each image in a cycle shows by default for 2.5s. This timing can be changed using the speed command:

speed 3

where the value is the number of seconds for which the image displays. This can also be a decimal:

speed 0.3

Special speed commands with a default value are also available: staccato (.5s), sudden (1s), and sustain (5s).

Commands

Commands can be used to affect the order in which images are displayed and how often they are displayed. Many commands can be run on both a specific move or on the list of moves as a whole.

Global and Local Commands

random
random 5 jump
accumulation shows first image, then first and second, then 1, 2, 3, etc.
deceleration the reverse of accumulation; shows all images, then all but last, all but last two, etc.
rondo shows first image + second image, first image + third image, etc.
random shows a random image from a list
scramble shows all images from a list in a random order

Local-Only Commands

Local-only commands can only be run on a specific move or set of options.

sometimes 2 jump
abba 2 jump 5 lunge
often shows given move 50% of the time often 2 lunge
sometimes shows given move 25% of the time sometimes 3 run
coin_flip chooses between two moves coin_flip 1 reach 2 run
abba shows moves in the pattern abba abba 2 jump 5 lunge

These can all be combined with elements from the list of global and local commands:

often retrograde 5 jump

Global-Only Commands

Global-only commands can only be run on the list of moves as a whole. Only timings are global-only.

Running the App

To run the app:

  1. Download the code in this repo as a bundle or fork the repo and use your local version.
  2. In the root directory, run npm i to install the packages.
  3. Run npm start to launch the app.

Want to learn more about how the language is architected? See the architecture docs

Want to make a live coding language? Look here https://worldmaking.github.io/workshop_nime_2017/

terpsicode-1's People

Contributors

sarahghp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.