- Creating a Unique Electronic Musical Instrument: The Sound WallPosted 22 hours ago
- Building a Laser MicroscopePosted 23 hours ago
- Grand Piano Keys with ArduinoPosted 4 days ago
- Wireless Power TransferPosted 5 days ago
- Robot Punchers with ArduinoPosted 6 days ago
- A minimal 3D-printed scalePosted 1 week ago
- Expanding the pins of a microcontrollerPosted 2 weeks ago
- Let’s create a small level with a matrix displayPosted 2 weeks ago
- ChatGPT: Writing Code with Artificial IntelligencePosted 2 weeks ago
- Free Webinar: Arduino IoT Cloud and ESP32 DemoboardPosted 2 weeks ago
Bind MIDI inputs to LED lights using a Raspberry Pi
Controlling lights with MIDI commands
Tentatively titled Py-Lights, Aaron’s project allows users to assign light patterns to MIDI actions, creating a rather lovely blinky light display.
For his example, Aaron connected a MIDI keyboard to a strip of RGB LEDs via a Raspberry Pi that ran his custom Python code.
The program I made lets me bind “actions” (strobe white, flash blue, disable all colors, etc.) to any input and any input type (hold, knob, trigger, etc.). And each action type has a set of parameters that I bind to the input. For example, I have a knob that changes a strobe’s intensity, and another knob that changes its speed.
The program updates each action, pulls its resulting color, and adds them together, then sends that to the LEDs. I’m using
rtmidifor reading the midi device and
pigpiofor handling the LED output.
Aaron has updated the Py-Lights GitHub repo for the project to include a handy
readme file and a more stable build.
The post Bind MIDI inputs to LED lights using a Raspberry Pi appeared first on Raspberry Pi.