twinklr_pde
is a Processing application that is the core of "Twinklr", a physical, digital musicbox.
It's designed to be run fullscreen on a Raspberry Pi with touchscreen, though it'll work on any desktop computer running Processing.
Twinklr is written for Processing 3.0.
You'll need the following libraries, installable through the Processing library manager:
- Beads
- The MidiBus
- Ani
- IO
You'll also need Pui installed in your libraries
directory.
Once Twinklr has loaded, you can either use it with a mousewheel, or, if running it on a Pi, a quadrature encoder connected to pins 17 and 27.
To make Twinklr run on a Raspberry Pi with 7" touchscreen, there are a few obvious tweaks you'll need to do.
- Uncomment the import of
processing.io.*
in the main file - Comment out the
size
directive in the same file - Uncomment the
fullScreen
andnoCursor
directives in the same file - Uncomment all the
GPIO
directives in the same file - rename
io.pde.pi
toio.pde
Then, the whole application should compile and run fullscreen on the Raspberry Pi.
shutdown.py
should be run at startup on the Pi. It waits for pin 18 to go low, and when
it does, it shuts the Pi down.
See license.txt
for details.
This software was written by Tom Armitage, tom [at] infovore dot org
Copyright 2016 Tom Armitage.