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:
- The MidiBus
You'll also need Pui installed in your
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
sizedirective in the same file
- Uncomment the
noCursordirectives in the same file
- Uncomment all the
GPIOdirectives in the same file
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.
license.txt for details.
This software was written by Tom Armitage, tom [at] infovore dot org
Copyright 2016 Tom Armitage.