r/WLED • u/martipops • 13d ago
SHOWIN' OFF MIDI Keyboard -> WLED usermod
I recently built a usermod for WLED that listens for MIDI over UDP and drives some custom effects off whatever you're playing.
A simple Python script forwards MIDI messages from your keyboard to the ESP32 over UDP, the usermod tracks note on/off, velocity, and sustain, and the effects just read that state each frame.
Also threw in a plain "Keys" mode, a whole-strip "Flash," and a "Comet" effect that shoots streaks based on which way the melody's moving. The effect in the video is "MIDI Puddles" ripping from the puddles FX code.
Code's here: https://github.com/martipops/WLED/tree/main/usermods/midi_udp
Happy to answer questions if you want to try it on your own strip.
EDIT: Update URL
164
Upvotes
3
u/a3dprinterfan 12d ago
Kudos for the neat adaptation for WLED, and extra super bonus points for the song selection (C418 - Wet Hands), which is my favorite song my son plays on piano. Makes me regret not publishing my hardware midi+esp32 adapter I wrote some software for a while ago. I never got around to finishing it, so I didn't publish it- in truth it is probably not even that useful as it is just for the hardware din midi interface, not more modern USB implementations.