emlyn / sonic-pixels Goto Github PK
View Code? Open in Web Editor NEWInteractive lighting effects for Sonic Pi
Interactive lighting effects for Sonic Pi
Effects should register themselves so you don't also need to add a case statement for each new FX.
There's some token attempt at support in places, but it's by no means complete.
It would also need the fake pixels to use curses or similar to be able to update multiple lines.
Lots (e.g. keeping track of previous image, start time etc) is handled by each derived effect. Should move this to base class to make writing new FX easier.
Make getDisplay
set properties, then call an 'abstract' render
method in derived FX.
Also abstract out argument parsing (handling optional args etc).
LEDs get very bright very quickly, colours will probably look less washed-out with some gamma correction.
As of version 4.0.0 rpi_ws281x drops the "neopixel" module from its package, canonicalising instead on "rpi_ws281x", see: https://github.com/rpi-ws281x/rpi-ws281x-python/releases/tag/v4.0.0
So you would need to change:
from neopixel import Adafruit_NeoPixel, Color, ws
to
from rpi_ws281x import Adafruit_NeoPixel, Color, ws
And then - once rpi-ws281x/rpi-ws281x-python@75f4b64 makes it into a release - you should be able to use the rpi_ws281x
package.
Can use PIL.ImageColor to do colour string parsing. Will need to implement equivalent of spectra.scale though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.