A musical Rubik's Cube. Plays generative loop-based music based on the solvedness of a Rubik's Cube.
Will soon combine with Arduinos to make a physical cube with LEDs.
- Sonic Pi to play the audio, along with
sonic-pi-cli
- node.js to run the controller
- Arduino or other microcontroller with serial-port communication if you want to build it physically
yarn && gem install sonic-pi-cli
First make sure Sonic Pi is running. On a Mac, this means opening it as an application.
Then run one of the commands below. If a usage method expects input, send one of the strings listed under available rotations below (one per message).
yarn random [-- OVERRIDE_INTERVAL]
yarn udp [-- OVERRIDE_PORT]
yarn serial
(not working for now)
F
: Rotate front face clockwisef
: Rotate front face counterclockwiseB
: Rotate back face clockwiseb
: Rotate back face counterclockwiseU
: Rotate up face clockwiseu
: Rotate up face counterclockwiseD
: Rotate down face clockwised
: Rotate down face counterclockwiseL
: Rotate left face clockwisel
: Rotate left face counterclockwiseR
: Rotate right face clockwiser
: Rotate right face counterclockwise?
: Random rotation