nullzer0's profile picture

Published by

published
updated

Category: Web, HTML, Tech

Well shit, first post

Haven't properly blogged in ages. uhhh. Hi! What  have I  been  up to  lately...

Mostly  fucking  around,  ngl. Oh I know! Disco lights! I made disco lights! Well, I made... most  of  the work  was done by a  different  coder, I just created my own visualizer  code and method  for  sideloading  visualizers in it. Lazy splitting  of  color  channel to  show how kick and snare are  visually distinct in  the  mix. EPILEPSY WARNING BEFORE YOU  PLAY IT


It  maps frequency buckets to  hues, picks the  peak  at  any given time, and amplitude translates to  brightness. There's some lerping  so  when peaks jump  around a lot  it  loses saturation

https://github.com/read-0nly/HappyLighting-py/tree/MusicVis

What  really  matters here is  that  it's  cheap as hell - you just  need lights compatible with  the HappyLighting  app,  strips  go  anywhere from 5$ to 20$. And I  trust  it a  lot  more. Using  some powershell  scripts  and task  scheduler, it  usually  just  changes color  every 15  minutes based  off a bitmap to simulate something  like  flux (so  blue/white  in the  morning, yellow in the  evening,  red at  night) with  flashing  light  alarm to  help wake  my lazy  ass up in the  morning.

It does  need qtgui  sadly, but  if  there's  literally  any  interest at all I  can remove that  dependency, I  don't  like it  either, that's  from  the  original  project owner.

ps. I'm sorry for the  weird spacing  my keyboard needs healthcare


0 Kudos

Comments

Displaying 0 of 0 comments ( View all | Add Comment )